#
# a simple makefile  - jpb 8/27/95
#   
# -c means compile, don't link.  -g means add debugging code
# type "make big" for IEEE big-endian machines (most types, eg SPARC, SGI)
# type "make little" for IEEE little-endian (Linux, DEC Ultrix)

CC = gcc
SRCFLAGS= -ansi -pedantic -O2 -Wall ${F_DEFINES}
LIBS    = -L./gdsource -lgd -lm
INCS    = -I./gdsource
OBJH    = gwrite.o gread.o pot_io.o tga_io.o hf_io.o
COMMON  =  hcon.h
RANLIB  = ranlib

all:    ast_gen

# default production of *.o object from *.c source
.c.o:	
	$(CC) -c $*.c ${SRCFLAGS} ${INCS}

ast_gen:	ast_gen.o rand.o
	$(CC) -o ast_gen ast_gen.o rand.o -lm
	strip ast_gen

clean:
	rm -f *.o *~ ast_gen

exe:
	coff2exe ast_gen
