]> git.saurik.com Git - wxWidgets.git/blob - src/makeprog.va
6cc7218ea03fe963fb4873c0cce2e3052d20593a
[wxWidgets.git] / src / makeprog.va
1 #
2 # File: makeprog.va
3 # Author: David Webster
4 # Created: 1999
5 # Updated:
6 # Copyright: (c) David Webster
7 #
8 # Makefile environment for building samples. Include this from
9 # your own makefile.
10 # Use FINAL=1 argument to nmake to build final version with no debugging
11 # info
12
13 # Set and environment variable to point to WXDIR for your system
14 WXDIR = $(WXWIN)
15
16 WXUSINGDLL=0
17
18 !include $(WXDIR)\src\makeva.env
19
20 all: $(PROGRAM).exe
21
22 wx:
23 cd $(WXDIR)\src\os2
24 nmake -f makefile.va FINAL=$(FINAL)
25 # cd $(THISDIR)
26
27 wxclean:
28 cd $(WXDIR)\src\os2
29 nmake -f makefile.va clean
30 # cd $(THISDIR)
31
32 $(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res
33 @echo " Link::Linker "
34 $(LINK) @<<
35 /B" $(LINKFLAGS)" /Fe$@
36 $(LINKLIBS)
37 $(OBJECTS)
38 $(LIBS)
39 <<
40 $(RC) $(PROGRAM).res $(PROGRAM).exe
41
42 $(PROGRAM).res : $(PROGRAM).rcO $(WXDIR)\include\wx\os2\wx.rc
43 $(RC) -I $(WXDIR)\include -D __VISAGECPP__ -r $(PROGRAM).rcO $(PROGRAM).res
44
45 clean:
46 -erase $(OBJECTS)
47 -erase *.exe
48 -erase *.obj
49 -erase *.res
50 -erase *.map
51