Changeset 6
- Timestamp:
- Aug 25, 2009, 7:12:06 PM (16 years ago)
- Location:
- branches/1.0/src
- Files:
-
- 6 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/src/BldLevelInf0.cmd
r2 r6 1 @BldLevelInf.cmd -V"%1" -N"Netlabs.org" -D"UNIPDR - Universal Port Driver Build %2" -Len rc\\description.rc1 @BldLevelInf.cmd -V"%1" -N"Netlabs.org" -D"UNIPDR - Universal Port Driver Build %2" -Len description.rc -
branches/1.0/src/makefile.kmk
r5 r6 25 25 26 26 uni_SOURCES = \ 27 rc/uni.rc \28 27 uni.def \ 29 28 uni.c 29 30 # english source 31 DLLS += uni_en 32 uni_en_EXTENDS = uni 33 uni_en_NAME = uni 34 uni_en_INST = bin/en/ 35 uni_en_SOURCES = $(uni_SOURCES) en/uni.rc 36 uni_en_CLEAN = $(PATH_BIN)/en/uni.pdr 37 38 # german source 39 DLLS += uni_de 40 uni_de_EXTENDS = uni 41 uni_de_NAME = uni 42 uni_de_INST = bin/de/ 43 uni_de_SOURCES = $(uni_SOURCES) de/uni.rc 44 uni_de_CLEAN = $(PATH_BIN)/de/uni.pdr 30 45 31 46 uni_CFLAGS = -Zomf … … 37 52 38 53 uni_DEFS = 39 uni_INCS = ./h ./rc54 uni_INCS = ./h 40 55 41 56 uni_DLLSUFF = .pdr 42 57 43 uni_CLEAN = /rc/description.rc $(PATH_BIN)/uni.pdr58 uni_CLEAN = description.rc $(PATH_BIN)/uni.pdr 44 59 45 #build other files (e.g. help) 46 OTHERS = /rc/uni.ipf $(PATH_BIN)/uni.hlp $(PATH_BIN)/readme.txt 47 OTHER_CLEAN = $(PATH_BIN)/uni.hlp $(PATH_BIN)/readme.txt 60 #build other files en (e.g. help) 61 OTHERS = /en/uni.ipf $(PATH_BIN)/en/uni.hlp $(PATH_BIN)/en/readme.txt 62 OTHER_CLEAN = $(PATH_BIN)/en/uni.hlp $(PATH_BIN)/en/readme.txt 63 64 #build other files de (e.g. help) 65 OTHERS += /de/uni.ipf $(PATH_BIN)/de/uni.hlp $(PATH_BIN)/de/readme.txt 66 OTHER_CLEAN += $(PATH_BIN)/de/uni.hlp $(PATH_BIN)/de/readme.txt 67 48 68 49 69 #install some more files … … 68 88 69 89 # add new dependancy on build level info 70 rc/uni.rc : rc/description.rc 90 en/uni.rc : description.rc 91 de/uni.rc : description.rc 71 92 72 93 # update bldlevel info 73 rc/description.rc: config.kmk94 description.rc: config.kmk 74 95 @echo Writing build level informations 75 @cp rc/description.rc_ rc/description.rc96 @cp description.rc_ description.rc 76 97 @BldLevelInf0.cmd $(VERSION) $(BUILD) 77 98 78 # substitute macros in ipf file 79 / rc/uni.ipf: Config.kmk ./rc/uni.ipf80 $(QUIET)$(SED) "s;_VERSION_;$(VERSION);g" ./ rc/uni.ipf \99 # substitute macros in ipf file en 100 /en/uni.ipf: Config.kmk ./en/uni.ipf 101 $(QUIET)$(SED) "s;_VERSION_;$(VERSION);g" ./en/uni.ipf \ 81 102 | $(SED) "s;_BUILD_;$(BUILD);g" \ 82 > uni.ipf 103 > uni_en.ipf 104 105 # substitute macros in ipf file de 106 /de/uni.ipf: Config.kmk ./de/uni.ipf 107 $(QUIET)$(SED) "s;_VERSION_;$(VERSION);g" ./de/uni.ipf \ 108 | $(SED) "s;_BUILD_;$(BUILD);g" \ 109 > uni_de.ipf 83 110 84 111 # compile english help file 85 $(PATH_BIN)/ uni.hlp:uni.ipf ./uni.h ./H/hmacros.h config.kmk86 -gcc -E -I./h -I./ rc -x c uni.ipf > uni.i112 $(PATH_BIN)/en/uni.hlp: en/uni.ipf ./uni.h ./H/hmacros.h config.kmk 113 -gcc -E -I./h -I./en -x c uni_en.ipf > uni_en.i 87 114 -@mkdir $(PATH_BIN) 88 $(TOOLKIT)\bin\ipfc.exe uni.i $(PATH_BIN)/uni.hlp /COUNTRY=001 /CODEPAGE=850 115 -@mkdir $(PATH_BIN)/en 116 $(TOOLKIT)\bin\ipfc.exe uni_en.i $(PATH_BIN)/en/uni.hlp /COUNTRY=001 /CODEPAGE=850 89 117 rm uni.i 90 rm uni .ipf118 rm uni_en.ipf 91 119 120 # compile german help file 121 $(PATH_BIN)/de/uni.hlp: de/uni.ipf ./uni.h ./H/hmacros.h config.kmk 122 -gcc -E -I./h -I./de -x c uni_de.ipf > uni_de.i 123 -@mkdir $(PATH_BIN) 124 -@mkdir $(PATH_BIN)/de 125 $(TOOLKIT)\bin\ipfc.exe uni_de.i $(PATH_BIN)/de/uni.hlp /COUNTRY=001 /CODEPAGE=850 126 rm uni_de.i 127 rm uni_de.ipf 92 128 93 # substitute macros in docs 94 $(PATH_BIN)/ readme.txt: Config.kmkreadme.txt95 $(QUIET)$(SED) "s;_VERSION_;$(VERSION);g" readme.txt \129 # substitute macros in docs en 130 $(PATH_BIN)/en/readme.txt: Config.kmk en/readme.txt 131 $(QUIET)$(SED) "s;_VERSION_;$(VERSION);g" en/readme.txt \ 96 132 | $(SED) "s;_BUILD_;$(BUILD);g" \ 97 > $(PATH_BIN)/readme.txt 133 > $(PATH_BIN)/en/readme.txt 134 135 # substitute macros in docs de 136 $(PATH_BIN)/de/readme.txt: Config.kmk de/readme.txt 137 $(QUIET)$(SED) "s;_VERSION_;$(VERSION);g" de/readme.txt \ 138 | $(SED) "s;_BUILD_;$(BUILD);g" \ 139 > $(PATH_BIN)/de/readme.txt 140 98 141 99 142 # final: zip all files! … … 102 145 $(QUIET)$(MKDIR) -p $(PATH_ROOT)/dist 103 146 $(QUIET)$(RM) -f $@ 104 -ea2.cmd -e DEFAULT_PORT=UNI $(PATH_BIN)/uni.pdr 147 -ea2.cmd -e DEFAULT_PORT=UNI $(PATH_BIN)/en/uni.pdr 148 -ea2.cmd -e DEFAULT_PORT=UNI $(PATH_BIN)/de/uni.pdr 105 149 $(QUIET)zip -9 -j $@ $(PATH_BIN)/* 106 150
Note:
See TracChangeset
for help on using the changeset viewer.