Commit 2ba122315682eee157e6d5398299b4e044f81da9

Authored by James Caveen
1 parent 0e856390
Exists in master

Ajout Makefile pour mingan

Showing 1 changed file with 72 additions and 0 deletions   Show diff stats
Makefile_mingan 0 → 100644
... ... @@ -0,0 +1,72 @@
  1 +#
  2 +# Makefile pour compiler les fonctions externes
  3 +# developpees à l'ISMER
  4 +#
  5 +# Construit pa James Caveen a partir du Makefile
  6 +# deja fourni par ferret fevrier 2007
  7 +#
  8 +# January 20 1998
  9 +# Jonathan Callahan
  10 +#
  11 +# 15-Nov-1999 Ansley Manke
  12 +# remove refs to ef_utility/*.o (now in ferret executable)
  13 +#
  14 +# include platform specific macro definitions
  15 +#
  16 +#HOSTTYPE = solaris
  17 +#HOSTTYPE = i486-linux
  18 +HOSTTYPE = x86_64-linux
  19 +#MY_EXTFCNS = /home/caveenj/projets/ferret_compnc/ferret_ef
  20 +MY_EXTFCNS = /share/apps/ferret/ext_func/libs
  21 +
  22 +#Chemin sur mingan
  23 +#
  24 +#/share/apps/ferret/ext_func/src/ferret_ef
  25 +# Pour le developpement, adapter la valeur de FER_LOCAL_EXTFCNS
  26 +#selon vos besoins
  27 +#
  28 +
  29 +FER_LOCAL_EXTFCNS = $(MY_EXTFCNS)
  30 +
  31 +FFLAGS_DEBUG = -g -DDEBUG
  32 +CFLAGS_DEBUG = -g -DDEBUG
  33 +
  34 +include ../ef_utility/platform_specific.mk.$(HOSTTYPE)
  35 +
  36 +
  37 +#
  38 +# Macros
  39 +#
  40 +
  41 +.SUFFIXES: .so
  42 +
  43 +#
  44 +# Rules
  45 +#
  46 +
  47 +.F.so:
  48 + $(F77) $(FFLAGS) -c $<
  49 + $(LD) $(LD_DYN_FLAGS) $(SYSLIBS) $*.o -o $*.so
  50 +
  51 +
  52 +#
  53 +# Targets
  54 +#
  55 +
  56 +all: ferret_cmn nc_rar.so rom_flip.so
  57 +
  58 +debug:
  59 + $(MAKE) "FFLAGS = $(FFLAGS) $(FFLAGS_DEBUG)" "CFLAGS = $(CFLAGS) $(CFLAGS_DEBUG)" all
  60 +
  61 +ferret_cmn:
  62 + ln -s ../ef_utility/ferret_cmn ferret_cmn
  63 +
  64 +install:
  65 + cp *.so $(FER_LOCAL_EXTFCNS)
  66 +
  67 +clean:
  68 + -rm -f *.o *.so core a.out temp.* ferret_cmn
  69 +
  70 +#
  71 +# End of Makefile
  72 +#
... ...