2
# Declare the sub-directories to be built here
9
# Get the 'head' of the build environment. This includes default targets and
13
include $(APR_WORK)\build\NWGNUhead.inc
16
# build this level's files
18
FILES_prebuild_headers = \
19
$(APR)/include/apr.h \
20
$(APRUTIL)/include/apu.h \
21
$(APRUTIL)/include/apu_want.h \
22
$(APRUTIL)/include/apr_ldap.h \
23
$(APRUTIL)/include/private/apu_config.h \
24
$(APRUTIL)/include/private/apu_select_dbm.h \
25
$(APRUTIL)/xml/expat/lib/expat.h \
26
$(APRUTIL)/xml/expat/lib/config.h \
29
nlms :: $(APR)/aprlib.imp
31
$(APR)/aprlib.imp : make_nw_export.awk nw_export.i
32
@echo Generating $(subst /,\,$@)
33
awk -f make_nw_export.awk nw_export.i | sort >$(APR)/aprlib.imp
35
nw_export.i : nw_export.inc $(FILES_prebuild_headers) $(NLM_NAME)_cc.opt
36
@echo Generating $(subst /,\,$@)
37
$(CC) $< @$(NLM_NAME)_cc.opt
39
$(NLM_NAME)_cc.opt : NWGNUmakefile $(APR_WORK)\build\NWGNUenvironment.inc $(APR_WORK)\build\NWGNUhead.inc $(APR_WORK)\build\NWGNUtail.inc $(CUSTOM_INI)
43
@echo -nosyspath >> $@
44
@echo -w nocmdline >> $@
45
@echo $(DEFINES) -DGENEXPORTS >> $@
46
@echo -I$(APR)\include >> $@
47
@echo -I$(APR)\include\arch\netware >> $@
48
@echo -I$(APR)\include\arch\unix >> $@
49
@echo -I$(APRUTIL)\include >> $@
50
@echo -ir $(NOVELLLIBC) >> $@
52
@echo -ir $(LDAPSDK) >> $@
55
$(APR)/include/%.h: $(subst /,\,$(APR))\include\%.hnw
56
@echo Creating $(subst /,\,$@)
57
copy $< $(subst /,\,$(APR))\include\$(@F)
59
$(APRUTIL)/include/%.h: $(subst /,\,$(APRUTIL))\include\%.hnw
60
@echo Creating $(subst /,\,$@)
61
copy $< $(subst /,\,$(APRUTIL))\include\$(@F)
63
$(APRUTIL)/include/private/%.h: $(subst /,\,$(APRUTIL))\include\private\%.hw
64
@echo Creating $(subst /,\,$@)
65
copy $< $(subst /,\,$(APRUTIL))\include\private\$(@F)
67
$(APRUTIL)/xml/expat/lib/%.h: $(subst /,\,$(APRUTIL))\xml\expat\lib\%.hnw
68
@echo Creating $(subst /,\,$@)
69
copy $< $(subst /,\,$(APRUTIL))\xml\expat\lib\$(@F)
71
$(APRUTIL)/xml/expat/lib/%.h: $(subst /,\,$(APRUTIL))\xml\expat\lib\%.h.in
72
@echo Creating $(subst /,\,$@)
73
copy $< $(subst /,\,$(APRUTIL))\xml\expat\lib\$(@F)
76
# You can use this target if all that is needed is to copy files to the
83
$(CHK) nw_export.i $(DEL) nw_export.i
84
$(CHK) $(NLM_NAME)_cc.opt $(DEL) $(NLM_NAME)_cc.opt
85
$(CHK) NWGNUversion.inc $(DEL) NWGNUversion.inc
86
$(CHK) $(subst /,\,$(APR))\include\apr.h $(DEL) $(subst /,\,$(APR))\include\apr.h
87
$(CHK) $(subst /,\,$(APRUTIL))\include\apu.h $(DEL) $(subst /,\,$(APRUTIL))\include\apu.h
88
$(CHK) $(subst /,\,$(APRUTIL))\include\apr_ldap.h $(DEL) $(subst /,\,$(APRUTIL))\include\apr_ldap.h
89
$(CHK) $(subst /,\,$(APRUTIL))\include\private\apu_config.h $(DEL) $(subst /,\,$(APRUTIL))\include\private\apu_config.h
90
$(CHK) $(subst /,\,$(APRUTIL))\include\private\apu_select_dbm.h $(DEL) $(subst /,\,$(APRUTIL))\include\private\apu_select_dbm.h
91
$(CHK) $(subst /,\,$(APRUTIL))\xml\expat\lib\expat.h $(DEL) $(subst /,\,$(APRUTIL))\xml\expat\lib\expat.h
92
$(CHK) $(subst /,\,$(APRUTIL))\xml\expat\lib\config.h $(DEL) $(subst /,\,$(APRUTIL))\xml\expat\lib\config.h
93
$(CHK) $(subst /,\,$(APR))\aprlib.imp $(DEL) $(subst /,\,$(APR))\aprlib.imp