]> git.saurik.com Git - wxWidgets.git/blame - src/makelib.wat
Correct fix to the compile time assert under OW. Kudos to Vadim to the tip.
[wxWidgets.git] / src / makelib.wat
CommitLineData
ddea7eb6
CE
1#
2# Changelist: 2003-02-25 - Juergen Ulbts - update from wxWindows 2.5.x/HEAD branch
3#
4
df2309ba 5
ddea7eb6
CE
6THISDIR = $+ $(%cdrive):$(%cwd) $-
7# set OUTPUTDIR to the directory to be used for the .obj files created during
8# the build (under $THISDIR)
9!ifndef OUTPUTDIR
10OUTPUTDIR=$(THISDIR)\$(BASEDIRPREFIX)$(CONFIGURATION)Watcom
11# no trailing slash for win98
12!endif
13
d51f2e65 14!include $(WXDIR)\src\makewat.env
dbda9e86 15
dbda9e86 16
ddea7eb6 17
ddea7eb6 18all: MAKDIR $(LIBTARGET) .SYMBOLIC
ddea7eb6 19
ddea7eb6
CE
20MAKDIR: .SYMBOLIC
21 @if not exist $(OUTPUTDIR) mkdir $(OUTPUTDIR)
dbda9e86 22
efa7066d 23# the name of the file containing the objects to be put in the library
ddea7eb6 24LBCFILE=$(LIBTARGET).lbc
dbda9e86 25$(LIBTARGET) : $(OBJECTS)
efa7066d
VZ
26 %create $(LBCFILE)
27 @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i
28 $(LIB) /b /c /n /p=512 $^@ @$(LBCFILE)
dbda9e86
JS
29
30clean: .SYMBOLIC
ddea7eb6
CE
31 -erase $(OUTPUTDIR)\*.obj
32 -erase $(OUTPUTDIR)\*.bak
33 -erase $(OUTPUTDIR)\*.err
34 -erase $(OUTPUTDIR)\*.pch
35 -erase $(OUTPUTDIR)\*.lib
36 -erase $(OUTPUTDIR)\*.lbc
37 -erase $(OUTPUTDIR)\*.res
38 -erase $(OUTPUTDIR)\*.exe
39 -erase $(OUTPUTDIR)\*.lbc
dbda9e86
JS
40 -erase $(LIBTARGET)
41