# mtp makefile

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

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

FPP_OBJS = weight.o pick.o pairs.o mtp.o draft.o order.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:

FPP_SOURCES = $(FPP_OBJS:.o=.c)

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

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

.KEEP_STATE:
all : mtp.a($(FPP_OBJS))

clean:
	rm -f $(FPP_OBJS) mtp.a

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

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