1998-12-18 23:18:59 +00:00
|
|
|
WXDIR = $(%WXWIN)
|
|
|
|
|
|
|
|
!include $(WXDIR)\src\makewat.env
|
|
|
|
|
|
|
|
WXLIB = $(WXDIR)\lib
|
|
|
|
LNK = $(PROGRAM).lnk
|
|
|
|
|
1999-02-09 16:00:23 +00:00
|
|
|
all: $(PROGRAM).exe $(EXTRATARGETS)
|
1998-12-18 23:18:59 +00:00
|
|
|
|
|
|
|
$(PROGRAM).exe : $(OBJECTS) $(PROGRAM).res $(LNK) $(WXLIB)\wx.lib
|
|
|
|
wlink @$(LNK)
|
|
|
|
$(BINDCOMMAND) $(PROGRAM).res
|
|
|
|
|
|
|
|
$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
|
|
|
|
$(RC) $(RESFLAGS1) $(PROGRAM).rc
|
|
|
|
|
|
|
|
$(LNK) : makefile.wat
|
|
|
|
%create $(LNK)
|
|
|
|
@%append $(LNK) debug all
|
|
|
|
@%append $(LNK) system $(LINKOPTION)
|
|
|
|
@%append $(LNK) $(STACK)
|
|
|
|
@%append $(LNK) name $(PROGRAM).exe
|
1999-02-09 16:00:23 +00:00
|
|
|
@for %i in ($(LIBS)) do @%append $(LNK) file %i
|
1999-01-07 15:22:05 +00:00
|
|
|
@for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i
|
1998-12-18 23:18:59 +00:00
|
|
|
@for %i in ($(OBJECTS)) do @%append $(LNK) file %i
|
|
|
|
# @%append $(LNK) $(MINDATA)
|
|
|
|
# @%append $(LNK) $(MAXDATA)
|
|
|
|
|
|
|
|
clean: .SYMBOLIC
|
1999-01-07 15:22:05 +00:00
|
|
|
-erase *.obj
|
|
|
|
-erase *.bak
|
|
|
|
-erase *.err
|
|
|
|
-erase *.pch
|
|
|
|
-erase *.lib
|
1999-01-19 11:00:22 +00:00
|
|
|
-erase $(LNK)
|
1999-01-07 15:22:05 +00:00
|
|
|
-erase *.res
|
|
|
|
-erase *.exe
|
|
|
|
-erase *.lbc
|
1998-12-18 23:18:59 +00:00
|
|
|
|