# fpc makefile

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

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

BSS_OBJS = dosearch.o parse.o interface.o results.o read_write.o glib_port.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 : bss.a($(BSS_OBJS))

clean:
	rm -f $(BSS_OBJS) bss.a

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

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