1 | #
|
---|
2 | # Makefile
|
---|
3 | #
|
---|
4 | # Copyright (C) 1996 Limit Point Systems, Inc.
|
---|
5 | #
|
---|
6 | # Author: Curtis Janssen <cljanss@ca.sandia.gov>
|
---|
7 | # Maintainer: LPS
|
---|
8 | #
|
---|
9 | # This file is part of the SC Toolkit.
|
---|
10 | #
|
---|
11 | # The SC Toolkit is free software; you can redistribute it and/or modify
|
---|
12 | # it under the terms of the GNU Library General Public License as published by
|
---|
13 | # the Free Software Foundation; either version 2, or (at your option)
|
---|
14 | # any later version.
|
---|
15 | #
|
---|
16 | # The SC Toolkit is distributed in the hope that it will be useful,
|
---|
17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
19 | # GNU Library General Public License for more details.
|
---|
20 | #
|
---|
21 | # You should have received a copy of the GNU Library General Public License
|
---|
22 | # along with the SC Toolkit; see the file COPYING.LIB. If not, write to
|
---|
23 | # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
24 | #
|
---|
25 | # The U.S. Government is granted a limited license as per AL 91-7.
|
---|
26 | #
|
---|
27 |
|
---|
28 | TOPDIR=../../../..
|
---|
29 | ifndef SRCDIR
|
---|
30 | SRCDIR=$(shell pwd)
|
---|
31 | endif
|
---|
32 |
|
---|
33 | include $(SRCDIR)/$(TOPDIR)/lib/GlobalMakefile
|
---|
34 |
|
---|
35 | CXXSRC = render.cc oogl.cc object.cc polygons.cc polysphere.cc \
|
---|
36 | transform.cc appearance.cc material.cc sphere.cc algebra3.cc \
|
---|
37 | color.cc polylines.cc tempinst.cc animate.cc
|
---|
38 |
|
---|
39 | LIBOBJ = $(CXXSRC:%.cc=%.$(OBJSUF))
|
---|
40 |
|
---|
41 | INC = render.h oogl.h object.h sphere.h color.h \
|
---|
42 | algebra3.h parameter.h find.h stack.h polygons.h polysphere.h \
|
---|
43 | polylines.h animate.h
|
---|
44 |
|
---|
45 | DEPENDINCLUDE = $(INC)
|
---|
46 |
|
---|
47 | BIN_OR_LIB = LIB
|
---|
48 | TARGET_TO_MAKE = libSCrender
|
---|
49 |
|
---|
50 | TESTSRC = rentest.cc
|
---|
51 | TESTOBJ = $(TESTSRC:%.cc=%.$(OBJSUF))
|
---|
52 | TESTFILES =
|
---|
53 |
|
---|
54 | TESTPROGS = rentest
|
---|
55 |
|
---|
56 | DISTFILES = $(CXXSRC) $(INC) Makefile $(TESTSRC) $(TESTFILES)
|
---|
57 |
|
---|
58 | default:: $(DEPENDINCLUDE)
|
---|
59 |
|
---|
60 | interface:: $(DEPENDINCLUDE)
|
---|
61 |
|
---|
62 | LD = $(CXX)
|
---|
63 | rentest: $(TESTOBJ) \
|
---|
64 | $(shell $(LISTLIBS) $(INCLUDE) $(SRCDIR)/LIBS.h)
|
---|
65 | $(LTLINK) $(LD) $(LDFLAGS) -o rentest $^ $(SYSLIBS) $(LTLINKBINOPTS)
|
---|
66 |
|
---|
67 | rentest.$(OBJSUF): rentest.cc
|
---|
68 | $(LTCOMP) $(CXX) -DSRCDIR=\"$(SRCDIR)\" $(CPPFLAGS) $(CXXFLAGS) -c $<
|
---|
69 |
|
---|
70 | include $(SRCDIR)/$(TOPDIR)/lib/GlobalRules
|
---|
71 |
|
---|
72 | $(LIBOBJ:.$(OBJSUF)=.d): $(DEPENDINCLUDE)
|
---|
73 | ifneq ($(DODEPEND),no)
|
---|
74 | include $(LIBOBJ:.$(OBJSUF)=.d) $(TESTOBJ:%.$(OBJSUF)=%.d)
|
---|
75 | endif
|
---|