]> git.saurik.com Git - wxWidgets.git/blob - src/makeprog.va
commented out annoying wxLogDebug
[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 #
14 # Define inference rules for compiling C++ files.
15 #
16 {$(THISDIR)}.cpp{$(OPATH)}.obj:
17 @echo $<
18 icc @<<
19 $(CPPFLAGS) /Fo$@ /Tp $<
20 $(THISDIR)\$(@B).cpp
21 <<
22
23 all: $(PROGTARGET)
24
25 wx:
26 cd $(WXDIR)\src\os2
27 nmake -f makefile.va FINAL=$(FINAL)
28 cd $(THISDIR)
29
30 wxclean:
31 cd $(WXDIR)\src\os2
32 nmake -f makefile.va clean
33 cd $(THISDIR)
34
35 $(PROGRAM).obj:: $(OPATH)\$(PROGRAM).obj
36 $(OPATH)\$(PROGRAM).obj: $(THISDIR)\$(PROGRAM).cpp
37
38 $(PROGRAM).res:: $(PROGRES)
39 $(PROGRES):
40 $(RC) -I $(WXDIR)\include\wx\os2 -D __VISAGECPP__ -r $(PROGRC) $(PROGRES)
41
42 $(PROGRAM).exe:: $(PROGTARGET)
43 $(PROGTARGET): $(OBJECTS) $(PROGRES) $(DUMMYOBJ) $(WXLIB)
44 @echo " Link::Linker "
45 $(LINK) @<<
46 /B" $(LINKFLAGS)" /Fe$@
47 $(LINKLIBS)
48 $(OBJECTS)
49 $(LIBS)
50 <<
51 $(RC) $(PROGRES) $(PROGTARGET)
52
53 clean:
54 -erase $(OBJECTS)
55 -erase $(OPATH)\*.exe
56 -erase $(OPATH)\*.obj
57 -erase $(OPATH)\*.res
58 -erase $(OPATH)\*.map
59