Makefile 1.13 KB
#
# Makefile pour compiler les fonctions externes
# developpees à l'ISMER
#
# Construit pa James Caveen a partir du Makefile
# deja fourni par ferret fevrier 2007
#
# January 20 1998
# Jonathan Callahan
#
#  15-Nov-1999 Ansley Manke  
#  remove refs to ef_utility/*.o  (now in ferret executable)
#
# include platform specific macro definitions
#
#HOSTTYPE = solaris
#HOSTTYPE = i486-linux
HOSTTYPE = x86_64-linux
#MY_EXTFCNS = /home/caveenj/projets/ferret_compnc/ferret_ef

#
# Pour le developpement, adapter la valeur de FER_LOCAL_EXTFCNS
#selon  vos besoins 
#

FER_LOCAL_EXTFCNS = $(MY_EXTFCNS)

FFLAGS_DEBUG = -g -DDEBUG
CFLAGS_DEBUG = -g -DDEBUG

include ../ef_utility/platform_specific_flags.mk.$(HOSTTYPE)
 

#
# Macros
#

.SUFFIXES: .so

#
# Rules
#

.F.so:
	$(F77) $(FFLAGS) -c $<
	$(LD) $(LD_DYN_FLAGS) $(SYSLIBS) $*.o -o $*.so
 

#
# Targets
#

all:	ferret_cmn nc_rar.so rom_flip.so

debug:
	$(MAKE) "FFLAGS = $(FFLAGS) $(FFLAGS_DEBUG)" "CFLAGS = $(CFLAGS) $(CFLAGS_DEBUG)" all

ferret_cmn:
	ln -s ../ef_utility/ferret_cmn ferret_cmn

install:
	cp *.so $(FER_LOCAL_EXTFCNS)

clean:
	-rm -f *.o *.so core a.out temp.* ferret_cmn

#
# End of Makefile
#