]> git.saurik.com Git - wxWidgets.git/blob - samples/joytest/makefile.nt
Simplified BC++ makefiles; C++Builder 1.0 compilation seems to work;
[wxWidgets.git] / samples / joytest / makefile.nt
1 #
2 # File: makefile.nt
3 # Author: Julian Smart
4 # Created: 1993
5 # Updated:
6 # Copyright: (c) 1993, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds joytest example (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
12 # info
13
14 # Set WXDIR for your system
15 WXDIR = $(WXWIN)
16 WXUSINGDLL=0
17
18 !include $(WXDIR)\src\ntwxwin.mak
19
20 THISDIR = $(WXDIR)\samples\joytest
21 PROGRAM=joytest
22
23 OBJECTS = $(PROGRAM).obj
24
25 $(PROGRAM): $(PROGRAM).exe
26
27 all: wx $(PROGRAM).exe
28
29 wx:
30 cd $(WXDIR)\src\msw
31 nmake -f makefile.nt FINAL=$(FINAL)
32 cd $(THISDIR)
33
34 wxclean:
35 cd $(WXDIR)\src\msw
36 nmake -f makefile.nt clean
37 cd $(THISDIR)
38
39 $(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res
40 $(link) @<<
41 -out:$(PROGRAM).exe
42 $(LINKFLAGS)
43 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
44 $(LIBS)
45 <<
46
47
48 $(PROGRAM).obj: $(PROGRAM).$(SRCSUFF) $(DUMMYOBJ)
49 $(cc) @<<
50 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
51 <<
52
53 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
54 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
55
56
57 clean:
58 -erase *.obj
59 -erase *.exe
60 -erase *.res
61 -erase *.map
62 -erase *.sbr
63 -erase *.pdb