home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-08-02 | 2.0 KB | 75 lines |
- #!smake
- # The previous magic comment will cause the parallel make utility
- # 'smake' to be used.
-
- include $(ROOT)/usr/include/make/commondefs
-
- # C++ source files:
- C++FILES = ivcalc.c++
-
- # The name of the executable to be created:
- C++TARGETS = $(C++FILES:.c++=)
-
- TARGETS = $(C++TARGETS)
-
- # Symbol needed by X for proper function prototypes
- LC++DEFS = -DFUNCPROTO
-
- # Options to C++; see the CC manual page for what they do
- LC++OPTS = +p -Wf,-XNp10000
-
- SOXT = -lInventorXt
-
- # Libraries to link with:
- C++LLDLIBS = -lInventor -lfm -limage -lgl -laudio -laudiofile -L. -lm -lmalloc
-
- MOTIFLIBS = -lXirisw -lXm -lXt -lX11 -lPW
-
- # Don't optimize; instead, compile for easy debugging:
- # (the default value of OPTIMIZER, define in commondefs, is -O)
- OPTIMIZER = -g
-
- # By default, compile C++TARGETS
- default: $(C++TARGETS)
-
-
- # Allow compilation of all
- all: $(TARGETS)
-
- #
- # Commonrules relies on commondefs, and defines some Makefile targets
- # that are very useful when developing programs. For example, it
- # defines a 'depend' target, so you can type 'make depend' and have
- # all header-file dependencies generated for you, or type 'make clean'
- # to remove all .o files (or other files generated during
- # compilation). See the file /usr/include/make/commonrules for
- # documentation on what targets are supported.
- #
- include $(COMMONRULES)
-
- #
- # Compilation rules for C++TARGETS
- #
- $(C++TARGETS): $$@.o
- $(C++F) -o $@ $@.o $(SOXT) $(C++LLDLIBS) $(MOTIFLIBS) $(LDFLAGS)
-
-
- TEXTURES = corinth.rgb redmar.rgb
- SOUNDS = belltree_up2.aiff drm_clave.aiff
- EXECUTABLE = ivcalc
- TEXTUREDIR = $(ROOT)/usr/demos/data/textures
- SOUNDSDIR = $(ROOT)/usr/lib/sounds/prosonus/instr
- EXEDIR = $(ROOT)/usr/sbin
- PUT = ${INSTALL} -idb 4Dgifts.src.ivcalc -u 4Dgifts -g guest
- PUTT = ${PUT} -m 0644 -F ${TEXTUREDIR}
- PUTS = ${PUT} -m 0755 -F ${SOUNDSDIR}
- PUTE = ${PUT} -m 0755 -F ${SOUNDSDIR}
-
- install:
- # ${PUT} -m 0755 -dir -F ${PARDIR} ghostview
- ${PUTT} ${TEXTURES}
- ${PUTS} ${SOUNDS}
- ${PUTE} ${EXECUTABLE}
- # ${PUTF} -src Makefile.dev Makefile
-
-