Changeset 6


Ignore:
Timestamp:
Aug 25, 2009, 7:12:06 PM (16 years ago)
Author:
diver
Message:

reorg part 2

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.rc
     1@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  
    2525
    2626uni_SOURCES = \
    27         rc/uni.rc \
    2827        uni.def \
    2928        uni.c
     29
     30# english source
     31DLLS += uni_en
     32uni_en_EXTENDS = uni
     33uni_en_NAME = uni
     34uni_en_INST = bin/en/
     35uni_en_SOURCES = $(uni_SOURCES) en/uni.rc
     36uni_en_CLEAN = $(PATH_BIN)/en/uni.pdr
     37
     38# german source
     39DLLS += uni_de
     40uni_de_EXTENDS = uni
     41uni_de_NAME = uni
     42uni_de_INST = bin/de/
     43uni_de_SOURCES = $(uni_SOURCES) de/uni.rc
     44uni_de_CLEAN = $(PATH_BIN)/de/uni.pdr
    3045
    3146uni_CFLAGS = -Zomf
     
    3752
    3853uni_DEFS =
    39 uni_INCS = ./h ./rc
     54uni_INCS = ./h
    4055
    4156uni_DLLSUFF = .pdr
    4257
    43 uni_CLEAN = /rc/description.rc $(PATH_BIN)/uni.pdr
     58uni_CLEAN = description.rc $(PATH_BIN)/uni.pdr
    4459
    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)
     61OTHERS = /en/uni.ipf $(PATH_BIN)/en/uni.hlp $(PATH_BIN)/en/readme.txt
     62OTHER_CLEAN = $(PATH_BIN)/en/uni.hlp $(PATH_BIN)/en/readme.txt
     63
     64#build other files de (e.g. help)
     65OTHERS += /de/uni.ipf $(PATH_BIN)/de/uni.hlp $(PATH_BIN)/de/readme.txt
     66OTHER_CLEAN += $(PATH_BIN)/de/uni.hlp $(PATH_BIN)/de/readme.txt
     67
    4868
    4969#install some more files
     
    6888
    6989# add new dependancy on build level info
    70 rc/uni.rc : rc/description.rc
     90en/uni.rc : description.rc
     91de/uni.rc : description.rc
    7192
    7293# update bldlevel info
    73 rc/description.rc: config.kmk
     94description.rc: config.kmk
    7495        @echo Writing build level informations
    75         @cp rc/description.rc_ rc/description.rc
     96        @cp description.rc_ description.rc
    7697        @BldLevelInf0.cmd $(VERSION) $(BUILD)
    7798
    78 # substitute macros in ipf file
    79 /rc/uni.ipf: Config.kmk ./rc/uni.ipf
    80         $(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 \
    81102                | $(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
    83110
    84111# compile english help file
    85 $(PATH_BIN)/uni.hlp: uni.ipf ./uni.h ./H/hmacros.h config.kmk
    86         -gcc -E -I./h -I./rc -x c uni.ipf > uni.i
     112$(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
    87114        -@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
    89117        rm uni.i
    90         rm uni.ipf
     118        rm uni_en.ipf
    91119
     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
    92128
    93 # substitute macros in docs
    94 $(PATH_BIN)/readme.txt: Config.kmk readme.txt
    95         $(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 \
    96132                | $(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
    98141
    99142# final: zip all files!
     
    102145        $(QUIET)$(MKDIR) -p $(PATH_ROOT)/dist                             
    103146        $(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
    105149        $(QUIET)zip -9 -j $@ $(PATH_BIN)/*
    106150
Note: See TracChangeset for help on using the changeset viewer.