]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.wat
added CreateDDB() and CreatePalette()
[wxWidgets.git] / src / makeprog.wat
CommitLineData
7be1f0d9
JS
1WXDIR = $(%WXWIN)
2
3!include $(WXDIR)\src\makewat.env
4
5WXLIB = $(WXDIR)\lib
a0499e2f 6LNK = $(OUTPUTDIR)$(PROGRAM).lnk
7be1f0d9 7
a0499e2f 8all: $(OUTPUTDIR) $(OUTPUTDIR)$(PROGRAM).exe $(EXTRATARGETS) .SYMBOLIC
7be1f0d9 9
a0499e2f
VZ
10$(OUTPUTDIR):
11 @if not exist $^@ mkdir $^@
12
13!ifeq wxUSE_GUI 0
14RESFILE=
15!else
16RESFILE=$(OUTPUTDIR)$(PROGRAM).res
17!endif
18
19$(OUTPUTDIR)$(PROGRAM).exe : $(OBJECTS) $(RESFILE) $(LNK) $(WXLIB)\$(LIBNAME).lib
7be1f0d9 20 wlink @$(LNK)
a0499e2f
VZ
21!ifneq wxUSE_GUI 0
22 $(BINDCOMMAND) $(RESFILE)
23!endif
7be1f0d9 24
a0499e2f
VZ
25!ifneq wxUSE_GUI 0
26$(RESFILE): $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
27 $(RC) $(RESFLAGS) /fo=$(RESFILE) $(PROGRAM).rc
28!endif
7be1f0d9
JS
29
30$(LNK) : makefile.wat
31 %create $(LNK)
205b0c9c 32 @%append $(LNK) $(LDFLAGS)
a0499e2f 33 @%append $(LNK) $(DEBUGINFO)
205b0c9c 34 @%append $(LNK) system $(LINKSYSTEM)
7be1f0d9 35 @%append $(LNK) $(STACK)
a0499e2f 36 @%append $(LNK) name $(OUTPUTDIR)$(PROGRAM).exe
7be1f0d9 37 @for %i in ($(OBJECTS)) do @%append $(LNK) file %i
9e9b65c1
JS
38 @for %i in ($(LIBS)) do @%append $(LNK) lib %i
39 @for %i in ($(EXTRALIBS)) do @%append $(LNK) lib %i
7be1f0d9
JS
40
41clean: .SYMBOLIC
a0499e2f
VZ
42 -erase $(OUTPUTDIR)*.obj
43 -erase $(OUTPUTDIR)*.bak
44 -erase $(OUTPUTDIR)*.err
45 -erase $(OUTPUTDIR)*.pch
46 -erase $(OUTPUTDIR)*.lib
ce3ed50d 47 -erase $(LNK)
a0499e2f
VZ
48 -erase $(OUTPUTDIR)*.res
49 -erase $(OUTPUTDIR)*.exe
50 -erase $(OUTPUTDIR)*.lbc
51 -rmdir $(OUTPUTDIR)
7be1f0d9 52