# Last edited on 2007-04-16 21:13:38 by stolfi # Makefile for st-steps INC = /home/staff/stolfi/PUB/include PROG = st-steps OBJS = st-parms.o CC = /usr/bin/gcc IFLAGS := CFLAGS := \ -O -g -ffloat-store -frounding-math \ -ansi \ -Wall -Wtraditional -Wpointer-arith -Wmissing-prototypes \ -mfpu \ -DSYSV \ -pedantic \ -fpcc-struct-return # LDFLAGS = -s LDFLAGS := PKGDIR = ${HOME}/pkg/netpbm-1mar1994-1/PUB/${PLATFORM} INCLUDEPKG = -I${PKGDIR} DEFPKG = ${PKGDIR}/pbmplus.h PGMDIR = ${PKGDIR}/pgm INCLUDEPGM = -I${PGMDIR} LIBPGM = ${PGMDIR}/libpgm.a DEFPGM = ${PGMDIR}/pgm.h ${PGMDIR}/dithers.h DEFLIBPGM = ${PGMDIR}/libpgm.h PBMDIR = ${PKGDIR}/pbm INCLUDEPBM = -I${PBMDIR} LIBPBM = ${PBMDIR}/libpbm.a DEFPBM = ${PBMDIR}/pbm.h DEFLIBPBM = ${PBMDIR}/libpbm.h SHELL = /bin/sh IFLAGS := ${INCLUDEPKG} ${INCLUDEPGM} ${INCLUDEPBM} DEFINES = ${DEFPKG} ${DEFPGM} ${DEFPBM} LIBS = ${LIBPGM} ${LIBPBM} all: cleanup ${PROG} cleanup: ;\ ( rm -f ${PROG} ) # Rule for plain programs. ${PROG}: ${PROG}.o ${OBJS} ${LIBS} ${CC} ${LDFLAGS} -o $@ $@.c ${OBJS} ${LIBS} %.o: %.c ${CC} ${IFLAGS} ${CFLAGS} -c $*.c st-parms.o: st-parms.c st-parms.h ${DEFINES} ${LIBS} ${PROG}.o: ${PROG}.c st-parms.h st-types.h ${DEFINES} clean: -/bin/rm -f *.o *.ho *.a *~ core ${OBJS} ${PROG}