]> git.saurik.com Git - wxWidgets.git/blob - src/makeprog.wat
Compilation fixes for SUN CC.
[wxWidgets.git] / src / makeprog.wat
1 WXDIR = $(%WXWIN)
2
3 !include $(WXDIR)\src\makewat.env
4
5 WXLIB = $(WXDIR)\lib
6 LNK = $(PROGRAM).lnk
7
8 all: $(PROGRAM).exe
9
10 $(PROGRAM).exe : $(OBJECTS) $(PROGRAM).res $(LNK) $(WXLIB)\wx.lib
11 wlink @$(LNK)
12 $(BINDCOMMAND) $(PROGRAM).res
13
14 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
15 $(RC) $(RESFLAGS1) $(PROGRAM).rc
16
17 $(LNK) : makefile.wat
18 %create $(LNK)
19 @%append $(LNK) debug all
20 @%append $(LNK) system $(LINKOPTION)
21 @%append $(LNK) $(STACK)
22 @%append $(LNK) name $(PROGRAM).exe
23 @%append $(LNK) file $(WXLIB)\wx.lib
24 @for %i in ($(OBJECTS)) do @%append $(LNK) file %i
25
26 # @for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i
27 # @%append $(LNK) $(MINDATA)
28 # @%append $(LNK) $(MAXDATA)
29
30 clean: .SYMBOLIC
31 -erase *.obj *.bak *.err *.pch *.lib *.lnk *.res *.exe
32