bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / build / NWGNUmakefile
1 #
2 # Declare the sub-directories to be built here
3 #
4
5 SUBDIRS = \
6         $(EOLIST) 
7
8 #
9 # Get the 'head' of the build environment.  This includes default targets and
10 # paths to tools
11 #
12
13 include $(AP_WORK)\build\NWGNUhead.inc
14
15 #
16 # build this level's files
17
18 FILES_prebuild_headers = \
19         $(APR)/include/apr.h \
20         $(APRUTIL)/include/apu.h \
21         $(APRUTIL)/include/apr_ldap.h \
22         $(NWOS)/test_char.h \
23         $(PCRE)/config.h \
24         $(PCRE)/pcre.h \
25         $(EOLIST) 
26     
27 nlms :: $(NWOS)/httpd.imp $(NWOS)/chartables.c
28
29 $(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
30         @echo Generating $(subst /,\,$@)
31         awk -f make_nw_export.awk nw_export.i | sort >$(NWOS)/httpd.imp
32     
33 nw_export.i : nw_export.inc $(FILES_prebuild_headers) $(NLM_NAME)_cc.opt
34         @echo Generating $(subst /,\,$@)
35         $(CC) $< @$(NLM_NAME)_cc.opt
36         
37 $(NLM_NAME)_cc.opt : NWGNUmakefile $(AP_WORK)\build\NWGNUenvironment.inc $(AP_WORK)\build\NWGNUtail.inc $(AP_WORK)\build\NWGNUhead.inc
38         $(CHK) $@ $(DEL) $@
39         @echo -P >> $@
40         @echo -EP >> $@
41         @echo -nosyspath >> $@
42         @echo -w nocmdline >> $@
43         @echo -DNETWARE >> $@
44         @echo -DCORE_PRIVATE >> $@
45         @echo -I..\include >> $@
46         @echo -I..\modules\http >> $@
47         @echo -I..\modules\aaa >> $@
48         @echo -I..\os\netware >> $@
49         @echo -I..\server\mpm\netware >> $@
50         @echo -I$(APR)\include >> $@
51         @echo -I$(APRUTIL)\include >> $@
52         @echo -ir $(NOVELLLIBC) >> $@
53
54 $(APR)/include/%.h: $(subst /,\,$(APR))\include\%.hnw
55         @echo Creating $(subst /,\,$@)
56         copy $< $(subst /,\,$(APR))\include\$(@F)
57
58 $(APRUTIL)/include/%.h: $(subst /,\,$(APRUTIL))\include\%.hnw
59         @echo Creating $(subst /,\,$@)
60         copy $< $(subst /,\,$(APRUTIL))\include\$(@F)
61
62 $(PCRE)/%.h: $(subst /,\,$(PCRE))\%.hw
63         @echo Creating $(subst /,\,$@)
64         copy $< $(subst /,\,$(PCRE))\$(@F)
65
66 ifneq "$(BUILDTOOL_AS_NLM)" "1"
67
68 $(NWOS)/chartables.c: dftables.exe $(PCRE)/dftables.c $(FILES_prebuild_headers)
69         @echo Creating $(subst /,\,$@)
70         @$< > $@
71
72 %.exe: $(PCRE)/%.c
73         @echo Creating Build Helper $@
74         @$(WIN_CC) $(WIN_CFLAGS) $< -o $@
75
76 $(NWOS)/test_char.h: gen_test_char.exe $(AP_WORK)/server/gen_test_char.c
77         @echo Creating $(subst /,\,$@)
78         @$< > $@
79
80 %.exe: $(AP_WORK)/server/%.c
81         @echo Creating Build Helper $@
82         @$(WIN_CC) $(WIN_CFLAGS) -DCROSS_COMPILE $< -o $@
83
84 else
85
86 ifneq "$(wildcard $(NWOS)/chartables.c)" "$(NWOS)/chartables.c"
87 $(error Error: required source $(NWOS)/chartables.c not found!)
88 endif
89
90 ifneq "$(wildcard $(NWOS)/test_char.h)" "$(NWOS)/test_char.h"
91 $(error Error: required header $(NWOS)/test_char.h not found!)
92 endif
93
94 endif
95
96 #
97 # You can use this target if all that is needed is to copy files to the
98 # installation area
99 #
100 install :: nlms FORCE
101
102
103 clean ::
104         $(CHK) nw_export.i                                  $(DEL) nw_export.i
105         $(CHK) $(NLM_NAME)_cc.opt                           $(DEL) $(NLM_NAME)_cc.opt
106         $(CHK) NWGNUversion.inc                             $(DEL) NWGNUversion.inc
107         $(CHK) $(subst /,\,$(APR))\include\apr.h            $(DEL) $(subst /,\,$(APR))\include\apr.h
108         $(CHK) $(subst /,\,$(APRUTIL))\include\apu.h        $(DEL) $(subst /,\,$(APRUTIL))\include\apu.h
109         $(CHK) $(subst /,\,$(APRUTIL))\include\apr_ldap.h   $(DEL) $(subst /,\,$(APRUTIL))\include\apr_ldap.h
110         $(CHK) $(subst /,\,$(PCRE))\config.h                $(DEL) $(subst /,\,$(PCRE))\config.h
111         $(CHK) $(subst /,\,$(PCRE))\pcre.h                  $(DEL) $(subst /,\,$(PCRE))\pcre.h
112         $(CHK) $(subst /,\,$(NWOS))\httpd.imp               $(DEL) $(subst /,\,$(NWOS))\httpd.imp
113 ifneq "$(BUILDTOOL_AS_NLM)" "1"
114         $(CHK) $(subst /,\,$(NWOS))\chartables.c            $(DEL) $(subst /,\,$(NWOS))\chartables.c
115         $(CHK) $(subst /,\,$(NWOS))\test_char.h             $(DEL) $(subst /,\,$(NWOS))\test_char.h
116         $(CHK) dftables.exe                                 $(DEL) dftables.exe
117         $(CHK) gen_test_char.exe                            $(DEL) gen_test_char.exe
118 endif
119