home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_11_11
/
splash
/
makefile.std
< prev
next >
Wrap
Makefile
|
1993-01-15
|
724b
|
34 lines
#
#
# Generic Makefile for splash and tests
#
#
CC = cc
CFLAGS = -g
LFLAGS =
# uncomment the next file if your USL cfront breaks enums
#DEFS = -DUSLCOMPILER
spltest: spltest.o tsplash.o regex.o
$(CC) $(CFLAGS) $(LFLAGS) -DTEST -o spltest spltest.c++ tsplash.o regex.o
tsplash.o: splash.c++
$(CC) $(CFLAGS) $(DEFS) -DTEST -c splash.c++
mv splash.o tsplash.o
tsplash.o splash.o: splash.h regexp.h
regex.o: regex.h
assoc: assoc.c++ splash.o regex.o
$(CC) $(CFLAGS) $(LFLAGS) $(DEFS) -DTESTASSOC assoc.c++ splash.o regex.o -o assoc
test:
spltest > x
diff x splash.v
chgfnt: chgfnt.o splash.o regex.o
$(CC) $(CFLAGS) $(DEFS) -DTESTCHGFNT chgfnt.c++ splash.o regex.o -o chgfnt