-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile.win32
52 lines (36 loc) · 1.09 KB
/
Makefile.win32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# Makefile - makefile for Win32 Native HlDig
#
# TODO: Clean up remove references to RNT & OLPP
#
RNTBASE = .
LIBDIRS = db htlib htcommon htnet htword hlfuzzy
EXEDIRS = hldig hlsearch httools
MAKE += -f Makefile.win32
all: $(addsuffix .build, $(OLPPDIR) $(LIBDIRS) $(EXEDIRS) $(MODDIRS))
%.build:
$(MAKE) -C $*
clean: $(addsuffix .clean, $(OLPPDIR) $(LIBDIRS) $(EXEDIRS) $(MODDIRS))
$(RM) -r bin/$(BUILDTARGET)
$(RM) -r lib/$(BUILDTARGET)
%.clean:
$(MAKE) -C $* clean
ctags:
-rm -f tags
-(find `abspath $(LIBDIRS) $(EXEDIRS) $(INCLDIRS)` -name '*.[chly]' -o -name '*.cpp' | grep -v ' ' | xargs $@ -a; sort -o tags tags)
etags:
-rm -f TAGS
-(find ../ -name "*.[ch]" | xargs $@ -a)
-(find ../ -name "*.cpp" | xargs $@ -a)
-(find ../ -name "*.php" | xargs $@ -a)
-(find ../ -name "*.phph" | xargs $@ -a)
cxref: $(CXREFDIRDEP) $(addsuffix .cxref, $(EXEDIRS) $(LIBDIRS))
@echo Indexing
@(cxref -index-all -O$(CXREFDIR) -Nrnw -html)
%.cxref:
$(MAKE) -C $* cxref
lint: $(addsuffix .lint, $(LIBDIRS) $(EXEDIRS))
%.lint:
$(MAKE) -C $* lint
depend:
-(find $(RNTBASE) -name "*.d" -exec rm {} \;)