-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
executable file
·41 lines (30 loc) · 1.09 KB
/
Makefile
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
INETDIR = $(HOME)/inet4
GENERAL_BUILD_OPTIONS = -f --deep -I$(INETDIR)/src/ -L$(INETDIR)/src/ -o SLAW
.PHONY: all clean cleanall makefiles makefiles-dbg makefiles-so makefiles-so-dbg checkmakefiles
all: checkmakefiles
cd src && $(MAKE)
clean: checkmakefiles
cd src && $(MAKE) clean
clean-dbg: checkmakefiles
cd src && $(MAKE) MODE=debug clean
cleanall: checkmakefiles
cd src && $(MAKE) MODE=release clean
cd src && $(MAKE) MODE=debug clean
rm -f src/Makefile
makefiles:
cd src && opp_makemake $(GENERAL_BUILD_OPTIONS) -lINET
makefiles-dbg:
cd src && opp_makemake $(GENERAL_BUILD_OPTIONS) -lINET_dbg
makefiles-so:
cd src && opp_makemake --make-so $(GENERAL_BUILD_OPTIONS) -lINET
makefiles-so-dbg:
cd src && opp_makemake --make-so $(GENERAL_BUILD_OPTIONS) -lINET_dbg
checkmakefiles:
@if [ ! -f src/Makefile ]; then \
echo; \
echo '======================================================================='; \
echo 'src/Makefile does not exist. Please use "make makefiles" to generate it!'; \
echo '======================================================================='; \
echo; \
exit 1; \
fi