Ignore:
Timestamp:
Sep 1, 2009, 5:40:59 PM (16 years ago)
Author:
Yuri Dario
Message:

New build rules for help files.

Location:
branches/client-1.5/src
Files:
3 added
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/client-1.5/src/Makefile.kmk

    r195 r322  
    1919DLLS = ndpsmb
    2020
     21# required to get IPFC compiler to work correctly
     22export IPFC=$(TOOLKIT)\IPFC
     23
    2124ndpsmb_RCTOOL =OPENWATCOM
    2225TOOL_OPENWATCOM_RCFLAGS += -i=$(TOOLKIT)/h
    2326
    2427ndpsmb_SOURCES = \
     28        version.h \
    2529        rc/rc.rc \
    2630        ndpsmb.def \
     
    3236
    3337ndpsmb_CFLAGS = -Zomf
    34 ndpsmb_CFLAGS.release = -s -O3 -march=pentium -mcpu=pentium4
     38# YD -O2/O3 triggers stack variable alignment bug in gcc 4.3.2/4.4.0!
     39ndpsmb_CFLAGS.release = -g -O1 -march=pentium -mtune=pentium4
    3540ndpsmb_CFLAGS.debug = -g -O0 -DDEBUG_PRINTF
    3641ndpsmb_LDFLAGS = -Zomf -Zno-fork -Zmap -Zbin-files
     
    5661
    5762#build other files (e.g. help)
    58 OTHERS = /rc/rc.ipf $(PATH_BIN)/ndpsmb.hlp $(PATH_BIN)/readme.txt
    59 OTHER_CLEAN = $(PATH_BIN)/ndpsmb.hlp $(PATH_BIN)/readme.txt
     63OTHERS = $(PATH_BIN)/ndpsmb.hlp $(PATH_BIN)/readme.txt
     64OTHER_CLEAN = $(PATH_BIN)/ndpsmb.hlp $(PATH_OBJ)/ndpsmb.ipf $(PATH_BIN)/readme.txt
    6065
    6166
     
    9095        @BldLevelInf0.cmd $(VERSION) $(BUILD)
    9196
    92 # substitute macros in ipf file
    93 /rc/rc.ipf: Config.kmk ./rc/rc.ipf
    94         $(QUIET)$(SED) "s;_VERSION_;$(VERSION);g" ./rc/rc.ipf \
     97# compile help file
     98$(PATH_BIN)/ndpsmb.hlp: ./help/ndpsmb.ipf version.h Config.kmk
     99        @ppwizard.cmd ./help/ndpsmb.ipf /Pack:N /output:$(PATH_OBJ)/ndpsmb.ipf /other /WarningsRc:0
     100        -@mkdir $(PATH_BIN)
     101        $(TOOLKIT)\bin\ipfc.exe $(PATH_OBJ)/ndpsmb.ipf $(PATH_BIN)/ndpsmb.hlp /COUNTRY=001 /CODEPAGE=850
     102
     103# substitute macros in version.h
     104version.h: Config.kmk version.h_
     105        $(SED) "s;_VERSION_;$(VERSION);g" version.h_ \
     106                | $(SED) "s;_WPIVERSION_;$(subst .,\\\,$(VERSION));g" \
    95107                | $(SED) "s;_BUILD_;$(BUILD);g" \
    96                 > rc.ipf
    97 
    98 # compile help file
    99 $(PATH_BIN)/ndpsmb.hlp: rc.ipf ./rc/rc.h ./H/hmacros.h config.kmk
    100         -gcc -E -I./h -I./rc -x c rc.ipf > rc.i
    101         -@mkdir $(PATH_BIN)
    102         $(TOOLKIT)\bin\ipfc.exe rc.i $(PATH_BIN)/ndpsmb.hlp /COUNTRY=001 /CODEPAGE=850
    103         rm rc.i
    104         rm rc.ipf
     108                > version.h
    105109
    106110# substitute macros in docs
  • branches/client-1.5/src/help/ndpsmb.ipf

    r321 r322  
    1 #include <hmacros.h>
    2 #include "rc.h"
     1#include "version.h"
    32
    43:userdoc.
     
    109.nameit symbol=ressmb text='Samba Resource Properties'
    1110.nameit symbol=usage text='Usage'
    12 .nameit symbol=build text='Samba client for &os. version _VERSION_ build _BUILD_'
     11.nameit symbol=build text='Samba client for &os. version <$NDPSMB_VERSION> build <$NDPSMB_BUILD>'
    1312
    1413:title.NetDrive for &os. Control Panel Help
     
    5150:eul.
    5251.*******************************************************
    53 HEADING(1,DLG_ID)&ressmb.
    54 PINDEX(ressmb)&ressmb.
     52:h1 res=1000 group=2 x=left y=top width=100% height=100% scroll=both.&ressmb.
     53:i1 id=ressmb.&ressmb.
    5554:ul.
    5655:li.:link reftype=hd res=100.&ressmb.:elink.
Note: See TracChangeset for help on using the changeset viewer.