blob: cc4ae9b5a5783e7a94ee6bd9043154f8cccf6aaa [file] [log] [blame]
#
# Device independent graphics package GLIB.
# NULL graphic device version
#
OBJS = glib.o
TARGET = glib.a
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 $(OBJS) $(TARGET)