1# 2# Declare the sub-directories to be built here 3# 4 5SUBDIRS = \ 6 $(EOLIST) 7 8# 9# Get the 'head' of the build environment. This includes default targets and 10# paths to tools 11# 12 13include $(APR_WORK)/build/NWGNUhead.inc 14 15# 16# build this level's files 17 18FILES_prebuild_headers = \ 19 $(APR)/include/apr.h \ 20 $(APU)/include/apu.h \ 21 $(APU)/include/apu_want.h \ 22 $(APU)/include/apr_ldap.h \ 23 $(APU)/include/private/apu_config.h \ 24 $(APU)/include/private/apu_select_dbm.h \ 25 $(APUXML)/expat/lib/expat_config.h \ 26 $(APR)/include/private/apr_escape_test_char.h \ 27 $(EOLIST) 28 29nlms :: $(APR)/aprlib.imp 30 31$(APR)/aprlib.imp : make_nw_export.awk nw_export.i 32 @echo $(DL)GEN $@$(DL) 33 $(AWK) -v EXPPREFIX=APR$(VERSION_MAJMIN) -f $^ >$@ 34 35nw_export.i : nw_export.inc $(APU)/build/nw_apu_export.inc $(FILES_prebuild_headers) cc.opt 36 @echo $(DL)GEN $@$(DL) 37 $(CC) $< @cc.opt 38 39cc.opt : NWGNUmakefile $(APR_WORK)/build/NWGNUenvironment.inc $(APR_WORK)/build/NWGNUhead.inc $(APRBUILD)/NWGNUtail.inc $(CUSTOM_INI) 40 @echo $(DL)-P$(DL)> $@ 41 @echo $(DL)-EP$(DL)>> $@ 42 @echo $(DL)-nosyspath$(DL)>> $@ 43 @echo $(DL)-w nocmdline$(DL)>> $@ 44 @echo $(DL)$(DEFINES) -DGENEXPORTS$(DL)>> $@ 45 @echo $(DL)-I$(APR)/include$(DL)>> $@ 46 @echo $(DL)-I$(APR)/include/arch/netware$(DL)>> $@ 47 @echo $(DL)-I$(APR)/include/arch/unix$(DL)>> $@ 48 @echo $(DL)-I$(APU)/include$(DL)>> $@ 49 @echo $(DL)-I$(APU)/include/private$(DL)>> $@ 50 @echo $(DL)-I$(APU)/build$(DL)>> $@ 51 @echo $(DL)-ir $(NOVELLLIBC)$(DL)>> $@ 52ifneq "$(LDAPSDK)" "" 53 @echo $(DL)-ir $(LDAPSDK)$(DL)>> $@ 54endif 55 56 57ifndef WITH_LDAP 58WITH_LDAP = $(shell $(AWK) '/^\#define APR_HAS_LDAP /{print $$3}' $(APU)/include/apr_ldap.hnw) 59endif 60 61$(APU)/include/apr_ldap.h: $(APR)/build/nw_make_header.awk $(APU)/include/apr_ldap.hnw 62 @echo $(DL)Creating $@$(DL) 63 $(AWK) -v WITH_LDAP=$(WITH_LDAP) -f $^ >$@ 64 65%.h: %.hnw 66 @echo $(DL)Creating $@$(DL) 67 $(call COPY,$<,$@) 68 69%.h: %.hw 70 @echo $(DL)Creating $@$(DL) 71 $(call COPY,$<,$@) 72 73$(APR)/include/private/apr_escape_test_char.h: gen_test_char.exe $(APR)/tools/gen_test_char.c 74 @echo $(DL)GEN $@$(DL) 75 $< > $@ 76 77%.exe: $(APR)/tools/%.c 78 @echo $(DL)Creating Build Helper $@$(DL) 79 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -DCROSS_COMPILE $< -o $@ 80 81# 82# You can use this target if all that is needed is to copy files to the 83# installation area 84# 85install :: nlms FORCE 86 87clean :: 88 $(call DEL,nw_export.i) 89 $(call DEL,cc.opt) 90 $(call DEL,NWGNUversion.inc) 91 $(call DEL,$(APR)/aprlib.imp) 92 $(foreach file,$(FILES_prebuild_headers),$(call DEL,$(file))) 93 $(call DEL,gen_test_char.exe) 94 95# 96# Include the 'tail' makefile that has targets that depend on variables defined 97# in this makefile 98# 99 100include $(APRBUILD)/NWGNUtail.inc 101 102