# fpc makefile

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

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

FILE_OBJS = ace4_save.o ace_merge.o fpc_load.o fpc_save.o cor.o filter.o\
	save_contig_fpc.o pace_save.o lock.o fpc_merge.o gsc.o

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

FILE_SOURCES = $(FILE_OBJS:.o=.c) 

########## Compiler and library options

# Do not have -I/usr/include
# it prevents gcc from picking up its own includes
# (cc goes to /usr/include anyway)


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

.KEEP_STATE:
all: file.a($(FILE_OBJS))

clean:
	rm -f $(FILE_OBJS) file.a

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

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