1998-08-15 08:43:34 -04:00
|
|
|
#
|
|
|
|
# File: makefile.nt
|
|
|
|
# Author: Julian Smart
|
|
|
|
# Created: 1993
|
1999-10-20 12:51:42 -04:00
|
|
|
# Updated:
|
1998-08-15 08:43:34 -04:00
|
|
|
# Copyright: (c) 1993, AIAI, University of Edinburgh
|
|
|
|
#
|
|
|
|
# "%W% %G%"
|
|
|
|
#
|
|
|
|
# Makefile : Builds GLCanvas class library (MS VC++).
|
|
|
|
# Use FINAL=1 argument to nmake to build final version with no debugging
|
|
|
|
# info
|
|
|
|
|
|
|
|
# Set WXDIR for your system
|
|
|
|
WXDIR = $(WXWIN)
|
|
|
|
GLDIR = $(WXDIR)\utils\glcanvas
|
|
|
|
THISDIR = $(GLDIR)\win
|
|
|
|
EXTRALIBS=$(WXDIR)\lib\glcanvas.lib
|
|
|
|
DOCDIR=$(WXDIR)\docs
|
|
|
|
LOCALDOCDIR=$(WXDIR)\utils\glcanvas\docs
|
|
|
|
|
|
|
|
|
1999-10-20 12:51:42 -04:00
|
|
|
!include $(WXDIR)\src\makevc.env
|
1998-08-15 08:43:34 -04:00
|
|
|
|
1999-10-20 12:51:42 -04:00
|
|
|
LIBTARGET=$(WXDIR)\lib\glcanvas$(LIBEXT).lib
|
|
|
|
OBJECTS = $(D)\glcanvas.obj
|
|
|
|
|
|
|
|
all: $(D) $(LIBTARGET)
|
|
|
|
|
|
|
|
$(D) :
|
|
|
|
mkdir $(D)
|
|
|
|
|
|
|
|
$(LIBTARGET): $(OBJECTS)
|
|
|
|
-erase $(LIBTARGET)
|
|
|
|
$(implib) @<<
|
|
|
|
-out:$(LIBTARGET)
|
|
|
|
-machine:$(CPU)
|
|
|
|
$(OBJECTS)
|
|
|
|
<<
|
|
|
|
|
|
|
|
$(D)\glcanvas.obj: glcanvas.h glcanvas.$(SRCSUFF) $(DUMMYOBJ)
|
1998-08-15 08:43:34 -04:00
|
|
|
$(cc) @<<
|
1999-10-20 12:51:42 -04:00
|
|
|
$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
|
1998-08-15 08:43:34 -04:00
|
|
|
<<
|
|
|
|
|
1999-10-20 12:51:42 -04:00
|
|
|
|
1999-10-20 12:53:01 -04:00
|
|
|
clean:
|
|
|
|
-erase $(D)\*.obj
|
|
|
|
-erase *.sbr
|
|
|
|
-erase *.exe
|
|
|
|
-erase *.res
|
|
|
|
-erase *.map
|
|
|
|
-erase *.pdb
|
|
|
|
-erase $(LIBTARGET)
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-10-20 12:51:42 -04:00
|
|
|
|
|
|
|
|
1998-08-15 08:43:34 -04:00
|
|
|
DOCSOURCES=$(LOCALDOCDIR)\manual.tex $(LOCALDOCDIR)\classes.tex
|
|
|
|
|
|
|
|
html: $(DOCDIR)\html\glcanvas\glcanvas.htm
|
|
|
|
hlp: $(DOCDIR)\winhelp\glcanvas.hlp
|
|
|
|
ps: $(WXDIR)\docs\ps\glcanvas.ps
|
|
|
|
|
|
|
|
$(DOCDIR)\winhelp\glcanvas.hlp: $(LOCALDOCDIR)\glcanvas.rtf $(LOCALDOCDIR)\glcanvas.hpj
|
|
|
|
cd $(LOCALDOCDIR)
|
|
|
|
-erase glcanvas.ph
|
|
|
|
hc glcanvas
|
|
|
|
move glcanvas.hlp $(DOCDIR)\winhelp\glcanvas.hlp
|
|
|
|
move glcanvas.cnt $(DOCDIR)\winhelp\glcanvas.cnt
|
|
|
|
cd $(THISDIR)
|
|
|
|
|
|
|
|
$(LOCALDOCDIR)\glcanvas.rtf: $(DOCSOURCES)
|
|
|
|
cd $(LOCALDOCDIR)
|
|
|
|
-start /w tex2rtf $(LOCALDOCDIR)\manual.tex $(LOCALDOCDIR)\glcanvas.rtf -twice -winhelp
|
|
|
|
cd $(THISDIR)
|
|
|
|
|
|
|
|
$(DOCDIR)\html\glcanvas\glcanvas.htm: $(DOCSOURCES)
|
|
|
|
cd $(LOCALDOCDIR)
|
|
|
|
-mkdir $(DOCDIR)\html\glcanvas
|
|
|
|
-start /w tex2rtf $(LOCALDOCDIR)\manual.tex $(DOCDIR)\html\glcanvas\glcanvas.htm -twice -html
|
|
|
|
-erase $(DOCDIR)\html\glcanvas\*.con
|
|
|
|
-erase $(DOCDIR)\html\glcanvas\*.ref
|
|
|
|
cd $(THISDIR)
|
|
|
|
|
|
|
|
$(LOCALDOCDIR)\manual.dvi: $(DOCSOURCES)
|
|
|
|
cd $(LOCALDOCDIR)
|
|
|
|
-latex manual
|
|
|
|
-latex manual
|
|
|
|
-makeindx manual
|
|
|
|
-bibtex manual
|
|
|
|
-latex manual
|
|
|
|
-latex manual
|
|
|
|
cd $(THISDIR)
|
|
|
|
|
|
|
|
$(WXDIR)\docs\ps\glcanvas.ps: $(LOCALDOCDIR)\manual.dvi
|
|
|
|
cd $(LOCALDOCDIR)
|
|
|
|
-dvips32 -o glcanvas.ps manual
|
|
|
|
move glcanvas.ps $(WXDIR)\docs\ps\glcanvas.ps
|
|
|
|
cd $(THISDIR)
|
|
|
|
|
|
|
|
|