2 # Changelist: 2003-02-25 - Juergen Ulbts - update from wxWindows 2.5.x/HEAD branch
4 # $+ .. $- means we get the result directly
5 THISDIR = $+ $(%cdrive):$(%cwd) $-
9 OUTPUTDIR = $(THISDIR)\Watcom
11 OUTPUTDIR = $(THISDIR)\$(EXEDIR)
13 OUTPUTDIR = $(THISDIR)
17 !include $(WXDIR)\src\makewat.env
20 LNK = $(OUTPUTDIR)\$(PROGRAM).lnk
22 all: MAKEDIR $(OUTPUTDIR)\$(PROGRAM).exe $(EXTRATARGETS) .SYMBOLIC
25 @if not exist $(OUTPUTDIR) mkdir $(OUTPUTDIR)
30 RESFILE=$(OUTPUTDIR)\$(PROGRAM).res
33 $(OUTPUTDIR)\$(PROGRAM).exe : $(OBJECTS) $(RESFILE) $(LNK) $(WXLIB)\$(LIBNAME).lib
36 $(BINDCOMMAND) $(RESFILE)
40 $(RESFILE): $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
41 $(RC) $(RESFLAGS) /fo=$(RESFILE) $(PROGRAM).rc
46 @%append $(LNK) $(LDFLAGS)
47 @%append $(LNK) $(DEBUGINFO)
48 @%append $(LNK) system $(LINKSYSTEM)
49 @%append $(LNK) $(STACK)
50 @%append $(LNK) name $(OUTPUTDIR)\$(PROGRAM).exe
51 @for %i in ($(OBJECTS)) do @%append $(LNK) file %i
52 @for %i in ($(LIBS)) do @%append $(LNK) lib %i
53 @for %i in ($(EXTRALIBS)) do @%append $(LNK) lib %i
56 -erase $(OUTPUTDIR)\*.obj
57 -erase $(OUTPUTDIR)\*.bak
58 -erase $(OUTPUTDIR)\*.err
59 -erase $(OUTPUTDIR)\*.pch
60 -erase $(OUTPUTDIR)\*.lib
62 -erase $(OUTPUTDIR)\*.res
63 -erase $(OUTPUTDIR)\*.exe
64 -erase $(OUTPUTDIR)\*.lbc