blob: 2fa978432057f6842725766ea3734127ff9dede4 [file] [log] [blame]
#
# CS348C Radiosity Device independent graphics package GLIB.
# SUN/Xview version makefile
#
#
TARGET = glibps.a
OBJS = glibps.o
CFLAGS := $(CFLAGS) -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wdisabled-optimization
CFLAGS := $(CFLAGS) -Wpadded -Winline -Wpointer-arith -Wsign-compare -Wendif-labels
LDFLAGS := $(LDFLAGS) -lm
PREFIX=${PARSECDIR}/ext/splash2x/apps/radiosity/inst/${PARSECPLAT}
MACROS := ${PARSECDIR}/pkgs/libs/parmacs/inst/${PARSECPLAT}/m4/parmacs.${PARMACS_MACRO_FILE}.c.m4
ifdef version
ifeq "$(version)" "pthreads"
CFLAGS := $(CFLAGS) -DENABLE_THREADS -pthread
endif
endif
.SUFFIXES:
.SUFFIXES: .o .c .C .h .H
.H.h:
$(M4) -s -Ulen -Uindex $(MACROS) $*.H > $*.h
.C.c:
$(M4) -s -Ulen -Uindex $(MACROS) $*.C > $*.c
.c.o:
$(CC) -c $(CFLAGS) $*.c
.C.o:
$(M4) -s -Ulen -Uindex $(MACROS) $*.C > $*.c
$(CC) -c $(CFLAGS) $*.c
$(TARGET): $(OBJS)
ar crv $(TARGET) $(OBJS)
clean:
rm -rf *.o $(TARGET)