]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/ogl/samples/ogledit/makefile.nt
Compile and build fixes for wxGTK and wxMotif
[wxWidgets.git] / utils / ogl / samples / ogledit / makefile.nt
... / ...
CommitLineData
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 docview 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
15WXDIR = $(WXWIN)
16
17!include $(WXDIR)\src\ntwxwin.mak
18
19THISDIR = $(WXDIR)\utils\ogl\samples\ogledit
20
21OGLDIR = $(WXDIR)\utils\ogl
22OGLINC = $(OGLDIR)\src
23OGLLIB = $(WXDIR)\lib\ogl.lib
24
25PROGRAM=ogledit
26
27EXTRALIBS=$(OGLLIB)
28EXTRAINC=/I$(OGLINC)
29
30OBJECTS = $(PROGRAM).obj doc.obj view.obj palette.obj
31
32$(PROGRAM): $(PROGRAM).exe
33
34all: $(PROGRAM).exe
35
36wx:
37 cd $(WXDIR)\src\msw
38 nmake -f makefile.nt FINAL=$(FINAL)
39 cd $(THISDIR)
40
41wxclean:
42 cd $(WXDIR)\src\msw
43 nmake -f makefile.nt clean
44 cd $(THISDIR)
45
46ogl:
47 cd $(OGLDIR)\src
48 nmake -f makefile.nt FINAL=$(FINAL)
49 cd $(THISDIR)
50
51$(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(OGLLIB) $(PROGRAM).res
52 $(link) @<<
53-out:$(PROGRAM).exe
54$(LINKFLAGS)
55$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
56$(LIBS)
57<<
58
59$(PROGRAM).obj: $(PROGRAM).h doc.h view.h palette.h $(PROGRAM).$(SRCSUFF) $(DUMMYOBJ)
60 $(cc) @<<
61$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
62<<
63
64doc.obj: view.h doc.h doc.$(SRCSUFF) ogledit.h $(DUMMYOBJ)
65 $(cc) @<<
66$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
67<<
68
69view.obj: view.h doc.h view.$(SRCSUFF) ogledit.h $(DUMMYOBJ)
70 $(cc) @<<
71$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
72<<
73
74palette.obj: view.h doc.h ogledit.h palette.$(SRCSUFF) $(DUMMYOBJ)
75 $(cc) @<<
76$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
77<<
78
79$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc ogl.ico
80 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
81
82
83cleanogl:
84 cd $(OGLDIR)\src
85 nmake -f makefile.nt clean
86 cd $(THISDIR)
87
88clean:
89 -erase *.obj
90 -erase *.sbr
91 -erase *.exe
92 -erase *.res
93 -erase *.map
94 -erase *.pdb
95