1999-01-10 07:04:02 -05:00
|
|
|
#
|
|
|
|
# File: makefile.nt
|
|
|
|
# Author: Julian Smart
|
|
|
|
# Created: 1997
|
|
|
|
# Updated:
|
|
|
|
#
|
|
|
|
# "%W% %G%"
|
|
|
|
#
|
|
|
|
# Makefile : Builds penguin example (MS VC++).
|
|
|
|
# Use FINAL=1 argument to nmake to build final version with no debugging
|
|
|
|
# info
|
|
|
|
|
|
|
|
# Set WXDIR for your system
|
|
|
|
WXDIR = $(WXWIN)
|
|
|
|
|
|
|
|
WXUSINGDLL=0
|
|
|
|
|
|
|
|
EXTRAINC=-I..\..\win
|
|
|
|
EXTRALIBS=$(WXDIR)\lib\glcanvas.lib glu32.lib opengl32.lib
|
|
|
|
|
|
|
|
!include $(WXDIR)\src\ntwxwin.mak
|
|
|
|
|
|
|
|
THISDIR = $(WXDIR)\utils\glcanvas\samples\penguin
|
|
|
|
PROGRAM=penguin
|
|
|
|
|
|
|
|
OBJECTS = $(PROGRAM).obj trackball.obj lw.obj
|
|
|
|
|
|
|
|
$(PROGRAM): $(PROGRAM).exe
|
|
|
|
|
|
|
|
all: wx $(PROGRAM).exe
|
|
|
|
|
|
|
|
wx:
|
|
|
|
cd $(WXDIR)\src\msw
|
|
|
|
nmake -f makefile.nt FINAL=$(FINAL)
|
|
|
|
cd $(THISDIR)
|
|
|
|
|
|
|
|
wxclean:
|
|
|
|
cd $(WXDIR)\src\msw
|
|
|
|
nmake -f makefile.nt clean
|
|
|
|
cd $(THISDIR)
|
|
|
|
|
|
|
|
$(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res
|
|
|
|
$(link) @<<
|
|
|
|
-out:$(PROGRAM).exe
|
|
|
|
$(LINKFLAGS)
|
|
|
|
$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
|
|
|
|
$(LIBS)
|
|
|
|
<<
|
|
|
|
|
|
|
|
|
|
|
|
$(PROGRAM).obj: $(PROGRAM).$(SRCSUFF) $(PROGRAM).h $(DUMMYOBJ)
|
|
|
|
$(cc) @<<
|
|
|
|
$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
|
|
|
|
<<
|
|
|
|
|
1999-01-10 13:45:51 -05:00
|
|
|
lw.obj: lw.cpp lw.h
|
1999-01-10 07:04:02 -05:00
|
|
|
$(cc) @<<
|
|
|
|
$(CPPFLAGS2) /c $*.$(SRCSUFF)
|
|
|
|
<<
|
|
|
|
|
|
|
|
$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
|
|
|
|
$(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-erase *.obj
|
|
|
|
-erase *.exe
|
|
|
|
-erase *.res
|
|
|
|
-erase *.map
|
|
|
|
-erase *.sbr
|
|
|
|
-erase *.pdb
|