CFLAGS = -O3 -m486 -Wall -Winline -fstrength-reduce -fomit-frame-pointer
#DEFINES:  INLINE: inline some common, small, function calls
#  DEBUG: print out a few extra stats at the end
# GDHASH: hash the GetDef function, should always be on
# PIHASH: hash the ParseImmediate function, should always be on
# USEDEF: genereate an indentical progs.dat to qcc, at the cost of some
#         runtime speed.
DEFINES = -DINLINE -DGDHASH -DPIHASH -DPREHASH #-DUSEDEF -DDEBUG
LDFLAGS = -s
EXES = fastqcc
CC = gcc
QCCFILES = qcc.o pr_lex.o pr_comp.o cmdlib.o hash.o
all: $(EXES)
install:
	make $(EXES)
	cp $(EXES) /LocalApps
app:
        make "CFLAGS = -O4 -g -Wall -arch i386 -arch hppa"
debug:
        make "CFLAGS = -g -O2 -Wall"
profile:
        make "CFLAGS = -pg -O2 -Wall"
clean:
	rm -f *.o
depend:
	makedepend *.c
.c.o:
	$(RM) $(*).o
	$(CC) -c $(DEFINES) $(CFLAGS) $(*).c
fastqcc: $(QCCFILES)
	gcc $(LDFLAGS) $(CFLAGS) $(DEFINES) -o fastqcc $(QCCFILES)
