# fpc makefile

######## CC, LIBS, NAME, OPTIONS are defined in $(ACEDB_MACHINE)_DEF

CCFLAGS =   ## to undefine any rubbish
GCFLAGS =   ## to undefine any rubbish

SEQ_OBJS = seq.o tree.o

RANLIB_NEEDED = true
AR_OPTIONS = rlu
#################################################################
########## Machine dependent compiler modification ##############
#################################################################

#################################################################
# In principle you should not have to edit the rest of this file
#################################################################

# suppress auto SCCS extraction
.SCCS_GET:

#####################
BSS_SOURCES = $(BSS_OBJS:.o=.c)

########## Compiler and library options
IDIR = -I../w/wh -I../w -I../w/w2 -I../w/whooks -I../fpp -I../clam -I../file

###############################

.KEEP_STATE:
all : seq.a($(SEQ_OBJS))

clean:
	rm -f $(SEQ_OBJS) seq.a

#### main program ##########################

seq.a(%.o): %.c
	$(CC) -c $< -o $*.o
	ar -rs $@ $*.o
	rm -f $*.o
