home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-08-02 | 1.7 KB | 94 lines |
- #! smake
- #
- # Copyright 1993, Silicon Graphics, Inc.
- # All Rights Reserved.
- #
- # This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
- # the contents of this file may not be disclosed to third parties, copied or
- # duplicated in any form, in whole or in part, without the prior written
- # permission of Silicon Graphics, Inc.
- #
- # RESTRICTED RIGHTS LEGEND:
- # Use, duplication or disclosure by the Government is subject to restrictions
- # as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
- # and Computer Software clause at DFARS 252.227-7013, and/or in similar or
- # successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
- # rights reserved under the Copyright Laws of the United States.
- #
-
- #
- # Makefile for compiling aux library
- #
- include /usr/include/make/commondefs
-
- TARGETS = libaux.a
-
- OPENGL2 ?= ../
- HEADERDIR = ${OPENGL2}/include
-
- BASICFILES = \
- shapes.c \
- font.c \
- teapot.c \
- vect3d.c \
- xform.c \
- ${NULL}
-
- CFILES = \
- error.c \
- init.c \
- window.c \
- event.c \
- quit.c \
- toolkit.c \
- mouse.c \
- key.c \
- text.c \
- auxtk.c \
- image.c \
- ${BASICFILES} \
- ${NULL}
-
- LCINCS = -I${HEADERDIR}
- LCOPTS = -c
-
- ARFLAGS = r
-
-
- #
- # To build a debug version of libaux.a, set AUX_DEBUG to DEBUG in your
- # environment
- #
- AUX_DEBUG ?= NO_DEBUG
-
- #if ${AUX_DEBUG} == "DEBUG" || ${AUX_DEBUG} == "DEBUG2" || \
- ${AUX_DEBUG} == "DEBUG3"
- CFILES += debug.c
- OPTIMIZER =
- LCOPTS += -g -D${AUX_DEBUG}
- #endif
-
- .SUFFIXES:
- .SUFFIXES: .c .o
-
- .c.o :
- ${CC} ${CFLAGS} $<
-
- #
- # Start Dependencies
- #
-
- default all install: ${TARGETS}
-
- include ${COMMONRULES}
-
- info: $(_FORCE}
- @ echo 'NOTE : Debug Level is ' ${AUX_DEBUG}
-
- new: clobber
- @ make -f Makefile
-
- ${TARGETS}: info ${OBJECTS}
- ${AR} ${ARFLAGS} $@ ${OBJECTS}
-
-