10 # Makefile : Builds Forty Thieves example (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
14 # Set WXDIR for your system
17 !include $(WXDIR)\src\ntwxwin.mak
19 THISDIR = $(WXDIR)\samples\forty
22 OBJECTS = $(PROGRAM).obj canvas.obj card.obj game.obj pile.obj playerdg.obj scoredg.obj scorefil.obj
24 $(PROGRAM): $(PROGRAM).exe
26 all: wx $(PROGRAM).exe
30 nmake -f makefile.nt FINAL=$(FINAL)
35 nmake -f makefile.nt clean
38 $(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res
42 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
47 $(PROGRAM).obj: $(PROGRAM).h $(PROGRAM).$(SRCSUFF) $(DUMMYOBJ)
49 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
52 canvas.obj: forty.h canvas.h canvas.$(SRCSUFF) $(DUMMYOBJ)
54 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
57 card.obj: forty.h card.h card.$(SRCSUFF) $(DUMMYOBJ)
59 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
62 pile.obj: forty.h pile.h pile.$(SRCSUFF) $(DUMMYOBJ)
64 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
67 game.obj: forty.h game.h game.$(SRCSUFF) $(DUMMYOBJ)
69 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
72 playerdg.obj: forty.h playerdg.h playerdg.$(SRCSUFF) $(DUMMYOBJ)
74 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
77 scoredg.obj: forty.h scoredg.h scoredg.$(SRCSUFF) $(DUMMYOBJ)
79 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
82 scorefil.obj: forty.h scorefil.h scorefil.$(SRCSUFF) $(DUMMYOBJ)
84 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
87 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
88 $(rc) -r /i$(WXDIR)\include /i$(WXDIR)\contrib\fafa -fo$@ $(PROGRAM).rc