1998-07-29 06:43:51 -04:00
|
|
|
#
|
1999-01-24 14:13:55 -05:00
|
|
|
# File: makefile.vc
|
1998-07-29 06:43:51 -04:00
|
|
|
# Author: Julian Smart
|
|
|
|
# Created: 1993
|
1999-09-12 23:08:57 -04:00
|
|
|
# Updated:
|
1998-07-29 06:43:51 -04:00
|
|
|
# Copyright: (c) 1993, AIAI, University of Edinburgh
|
|
|
|
#
|
|
|
|
# "%W% %G%"
|
|
|
|
#
|
|
|
|
# Makefile : Builds docview example (MS VC++).
|
|
|
|
# Use FINAL=1 argument to nmake to build final version with no debugging
|
|
|
|
# info
|
|
|
|
|
|
|
|
# Set WXDIR for your system
|
|
|
|
WXDIR = $(WXWIN)
|
|
|
|
|
1999-01-24 14:13:55 -05:00
|
|
|
!include $(WXDIR)\src\makevc.env
|
1998-07-29 06:43:51 -04:00
|
|
|
|
|
|
|
THISDIR = $(WXDIR)\utils\ogl\samples\ogledit
|
|
|
|
|
|
|
|
OGLDIR = $(WXDIR)\utils\ogl
|
|
|
|
OGLINC = $(OGLDIR)\src
|
1999-09-12 23:08:57 -04:00
|
|
|
OGLLIB = $(WXDIR)\lib\ogl$(LIBEXT).lib
|
1998-07-29 06:43:51 -04:00
|
|
|
|
|
|
|
PROGRAM=ogledit
|
|
|
|
|
|
|
|
EXTRALIBS=$(OGLLIB)
|
|
|
|
EXTRAINC=/I$(OGLINC)
|
|
|
|
|
|
|
|
OBJECTS = $(PROGRAM).obj doc.obj view.obj palette.obj
|
|
|
|
|
|
|
|
$(PROGRAM): $(PROGRAM).exe
|
|
|
|
|
|
|
|
all: $(PROGRAM).exe
|
|
|
|
|
|
|
|
wx:
|
|
|
|
cd $(WXDIR)\src\msw
|
1999-01-24 14:13:55 -05:00
|
|
|
nmake -f makefile.vc FINAL=$(FINAL)
|
1998-07-29 06:43:51 -04:00
|
|
|
cd $(THISDIR)
|
|
|
|
|
|
|
|
wxclean:
|
|
|
|
cd $(WXDIR)\src\msw
|
1999-01-24 14:13:55 -05:00
|
|
|
nmake -f makefile.vc clean
|
1998-07-29 06:43:51 -04:00
|
|
|
cd $(THISDIR)
|
|
|
|
|
|
|
|
ogl:
|
|
|
|
cd $(OGLDIR)\src
|
1999-01-24 14:13:55 -05:00
|
|
|
nmake -f makefile.vc FINAL=$(FINAL)
|
1998-07-29 06:43:51 -04:00
|
|
|
cd $(THISDIR)
|
|
|
|
|
|
|
|
$(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(OGLLIB) $(PROGRAM).res
|
|
|
|
$(link) @<<
|
|
|
|
-out:$(PROGRAM).exe
|
|
|
|
$(LINKFLAGS)
|
|
|
|
$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
|
|
|
|
$(LIBS)
|
|
|
|
<<
|
|
|
|
|
|
|
|
$(PROGRAM).obj: $(PROGRAM).h doc.h view.h palette.h $(PROGRAM).$(SRCSUFF) $(DUMMYOBJ)
|
|
|
|
$(cc) @<<
|
|
|
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
|
|
|
<<
|
|
|
|
|
|
|
|
doc.obj: view.h doc.h doc.$(SRCSUFF) ogledit.h $(DUMMYOBJ)
|
|
|
|
$(cc) @<<
|
|
|
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
|
|
|
<<
|
|
|
|
|
|
|
|
view.obj: view.h doc.h view.$(SRCSUFF) ogledit.h $(DUMMYOBJ)
|
|
|
|
$(cc) @<<
|
|
|
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
|
|
|
<<
|
|
|
|
|
|
|
|
palette.obj: view.h doc.h ogledit.h palette.$(SRCSUFF) $(DUMMYOBJ)
|
|
|
|
$(cc) @<<
|
|
|
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
|
|
|
<<
|
|
|
|
|
|
|
|
$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc ogl.ico
|
|
|
|
$(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
|
|
|
|
|
|
|
|
|
|
|
|
cleanogl:
|
|
|
|
cd $(OGLDIR)\src
|
1999-01-24 14:13:55 -05:00
|
|
|
nmake -f makefile.vc clean
|
1998-07-29 06:43:51 -04:00
|
|
|
cd $(THISDIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-erase *.obj
|
|
|
|
-erase *.sbr
|
|
|
|
-erase *.exe
|
|
|
|
-erase *.res
|
|
|
|
-erase *.map
|
|
|
|
-erase *.pdb
|
|
|
|
|