Ignore:
Timestamp:
Aug 19, 2002, 11:23:17 PM (23 years ago)
Author:
umoeller
Message:

Dialog formatter rewrite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/makefile

    r201 r209  
    142142    @echo ----- Leaving $(MAKEDIR)
    143143
     144# Define the main dependency between the output HELPERS.LIB and
     145# all the object files.
     146# $? represents the names of all dependent files that are
     147# out-of-date with respect to the target file.
     148# The exclamation point ( ! ) preceding the LIB command causes NMAKE
     149# to execute the LIB command once for each dependent file in the list.
     150
     151$(OUTPUTDIR)\helpers.lib: $(OBJS)
     152!ifdef EMX
     153    !emxomfar cr $* $?
     154!else
     155    !ilib /nol /nob $* -+$?;
     156!endif
     157
     158# same thing for cp.lib
     159$(OUTPUTDIR)\cp.lib: $(CPOBJS)
     160!ifdef EMX
     161    !emxomfar cr $* $?
     162!else
     163    !ilib /nol /nob $* -+$?;
     164!endif
     165
     166# same thing for plainc.lib
     167$(OUTPUTDIR)\plainc.lib: $(PLAINCOBJS)
     168!ifdef EMX
     169    !emxomfar cr $* $?
     170!else
     171    !ilib /nol /nob $* -+$?;
     172!endif
     173
     174!include helpers_post.in
     175
     176###################################################
     177#
    144178# "test" target: for test cases
     179#
     180###################################################
     181
    145182TESTCASE_DIR = testcase
    146183
    147 TESTCASE_CC = icc /c /ti+ /w2 /ss /se /i$(HELPERS_BASE)\include /Fo$(TESTCASE_DIR)\$(@B).obj $(@B).c
     184DEBUGDIALOG =
     185!ifdef DBGDLG
     186DEBUGDIALOG = /DDEBUG_DIALOG_WINDOWS=1
     187!endif
     188
     189TESTCASE_CC = icc /c /ti+ /w2 /ss /se /D__DEBUG__=1 $(DEBUGDIALOG) /i$(HELPERS_BASE)\include /Fo$(TESTCASE_DIR)\$(@B).obj $(@B).c
    148190
    149191.c.{$(TESTCASE_DIR)}.obj:
    150192    @echo $(MAKEDIR)\makefile: Compiling $(@B).c
     193    @echo INCLUDE is $(INCLUDE)
    151194    $(TESTCASE_CC)
    152195
     
    155198    dosh.exe \
    156199    dialog.exe \
    157     vcard.exe \
     200    exeh.exe \
    158201    fdlg.exe \
    159 
    160 # dosh.exe
    161 DOSH_TEST_OBJS = \
    162     $(TESTCASE_DIR)\dosh.obj \
    163     $(TESTCASE_DIR)\_test_dosh.obj
    164 
    165 dosh.exe: $(DOSH_TEST_OBJS)
    166     ilink /debug /optfunc /pmtype:vio $(DOSH_TEST_OBJS) /o:$@
    167 
    168 $(TESTCASE_DIR)\dialog.obj: ..\..\include\helpers\dialog.h
    169 $(TESTCASE_DIR)\_test_dialog.obj: ..\..\include\helpers\dialog.h
     202    vcard.exe
    170203
    171204# dialog.exe
     
    190223    $(TESTCASE_DIR)\gpih.obj
    191224
     225$(TESTCASE_DIR)\dialog.obj: ..\..\include\helpers\dialog.h
     226$(TESTCASE_DIR)\_test_dialog.obj: ..\..\include\helpers\dialog.h
     227
    192228dialog.exe: $(DIALOG_TEST_OBJS)
    193     ilink /debug /optfunc /pmtype:pm $(DIALOG_TEST_OBJS) /o:$@
     229    ilink /debug /optfunc /pmtype:pm $(DIALOG_TEST_OBJS) pmprintf.lib /o:$@
     230
     231# dosh.exe
     232DOSH_TEST_OBJS = \
     233    $(TESTCASE_DIR)\dosh.obj \
     234    $(TESTCASE_DIR)\_test_dosh.obj
     235
     236dosh.exe: $(DOSH_TEST_OBJS)
     237    ilink /debug /optfunc /pmtype:vio $(DOSH_TEST_OBJS) pmprintf.lib /o:$@
     238
     239# exeh.exe
     240EXEH_TEST_OBJS = \
     241    $(TESTCASE_DIR)\dosh.obj \
     242    $(TESTCASE_DIR)\exeh.obj \
     243    $(TESTCASE_DIR)\stringh.obj \
     244    $(TESTCASE_DIR)\xstring.obj \
     245    $(TESTCASE_DIR)\_test_exeh.obj
     246
     247exeh.exe: $(EXEH_TEST_OBJS)
     248    ilink /debug /optfunc /pmtype:vio $(EXEH_TEST_OBJS) pmprintf.lib /o:$@
     249
     250# fdlg.exe
     251FDLG_TEST_OBJS = \
     252    $(TESTCASE_DIR)\_call_filedlg.obj
     253
     254fdlg.exe: $(FDLG_TEST_OBJS)
     255    ilink /debug /pmtype:pm $(FDLG_TEST_OBJS) /o:$@
    194256
    195257# vcard.exe
     
    210272    ilink /debug /pmtype:vio $(VCARD_TEST_OBJS) /o:$@
    211273
    212 # vcard.exe
    213 VCARD_TEST_OBJS = \
    214     $(TESTCASE_DIR)\_call_filedlg.obj
    215 
    216 fdlg.exe: $(VCARD_TEST_OBJS)
    217     ilink /debug /pmtype:pm $(VCARD_TEST_OBJS) /o:$@
    218 
    219274test: $(TESTCASE_TARGETS)
    220275
    221 # Define the main dependency between the output HELPERS.LIB and
    222 # all the object files.
    223 # $? represents the names of all dependent files that are
    224 # out-of-date with respect to the target file.
    225 # The exclamation point ( ! ) preceding the LIB command causes NMAKE
    226 # to execute the LIB command once for each dependent file in the list.
    227 
    228 $(OUTPUTDIR)\helpers.lib: $(OBJS)
    229 !ifdef EMX
    230     !emxomfar cr $* $?
    231 !else
    232     !ilib /nol /nob $* -+$?;
    233 !endif
    234 
    235 # same thing for cp.lib
    236 $(OUTPUTDIR)\cp.lib: $(CPOBJS)
    237 !ifdef EMX
    238     !emxomfar cr $* $?
    239 !else
    240     !ilib /nol /nob $* -+$?;
    241 !endif
    242 
    243 # same thing for plainc.lib
    244 $(OUTPUTDIR)\plainc.lib: $(PLAINCOBJS)
    245 !ifdef EMX
    246     !emxomfar cr $* $?
    247 !else
    248     !ilib /nol /nob $* -+$?;
    249 !endif
    250 
    251 !include helpers_post.in
    252 
    253 
     276
Note: See TracChangeset for help on using the changeset viewer.