Blame view

Makefile_mingan 1.23 KB
2ba12231   James Caveen   Ajout Makefile po...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
# 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
MY_EXTFCNS = /share/apps/ferret/ext_func/libs

#Chemin sur mingan
#
#/share/apps/ferret/ext_func/src/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.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
#