#  $RCSfile: makefile,v $ $Revision: 2.0 $  $Date: 90/09/16 20:27:28 $ 
#
# CFLAGS ---	-bs = Sdb debug option
#				-a = Don't Start Assembler
#				-at = Don't Start Assembler & imbed C source as comments
#				-qf = Enable QuikFix
#				-sf = Fast for loops (don't use with cdb)
#				-sn = Avoid link/unlk (don't use with cdb)
#				-sp = Delay stack ops until necessary
#				-sr = Let compiler pick register variables.
#				-ss = Allow duplicate strings.
#				-so = -sa -sf -sm -sn -sp -sr -ss
#				-wa = Warn about casting.
#				-wr = Warn about bad return value.
#				-wu = Warn about unused variables.
#				-wl = Warn about lots of stuff. ( -wa, -wr, -wu)
#				-wd = Warn if old pre-ansi function def used.
#				-wp = Warn if prototype not given.
# LFLAGS ---	-g = generate sdb output file

CFLAGS-G = -bs -qf -sp -sr -ss -wr -wu -wd -wp -wa
LFLAGS-G = -g

CFLAGS-O = -so -qf -wl -wp
LFLAGS-O = 

CFLAGS = $(CFLAGS-O)
LFLAGS = $(LFLAGS-O)

OBJECTS = amp.o asterisk.o externals.o main.o paren.o utils.o getopt.o

.c.o:
	cc $(CFLAGS) -o $@ $*.c

.c.s:
	cc $(CFLAGS) -at -o $@ $*.c

pcl2english:	$(OBJECTS)
	ln $(LFLAGS) $(OBJECTS) -o $* -lc

