source: SH_SHM/trunk/source/motif/Makefile @ 293

Revision 293, 2.2 KB checked in by marcus, 9 years ago (diff)

r142 | klaus | 2010-10-29 16:55:30 +0200 (Fr, 29 Okt 2010) | 1 line

standalone program to determine geographic region

Line 
1# file Makefile
2#      ========
3#
4# version 24, 17-Nov-2005
5#
6# Makefile of directory $SH_ROOT/source/motif
7# K. Stammler, 22-Jul-94
8
9CFLAGS      = $(SH_CCOPTIONS) -I$(SH_SOURCE) -I$(SH_UTIL) -I$(SH_SOURCE)/newgraph -I$(SH_SOURCE)/foreign -DBASECNST=\"basecnst.h\"
10CC          = $(SH_COMPILER)
11LD          = $(SH_COMPILER)
12RANLIB          = $(SH_RANLIB)
13LDFLAGS     = -L$(SH_LIB) $(SH_LINKOPTIONS)
14LIBS        = -lmotif -lsource -lgraph -lgcf -lseed -lfrgn -lutil -lsource \
15                -lm -lMrm -lXm -lXt -lXext -lX11 $(SH_LINKLIBS) $(SH_MOTIFLIBS)
16#                                         ^
17#   this second '-lsource' is necessary /
18
19PROGNAME                = shm
20
21LIB_SOURCE      = $(SH_LIB)libsource.a
22LIB_SEED                = $(SH_LIB)libseed.a
23LIB_GCF         = $(SH_LIB)libgcf.a
24LIB_GRAPH       = $(SH_LIB)libgraph.a
25LIB_UTIL                = $(SH_LIB)libutil.a
26LIB_FRGN                = $(SH_LIB)libfrgn.a
27LIB_MOTIF       = $(SH_LIB)libmotif.a
28ALL_SH_LIBS     = $(LIB_MOTIF) $(LIB_SOURCE) $(LIB_GRAPH) \
29                                $(LIB_SEED) $(LIB_GCF) $(LIB_UTIL) $(LIB_FRGN)
30
31
32LOCAL_SRCS      = calibloc.c cblib.c cblib2.c cblib3.c cblib4.c cbutil.c \
33        event_id.c get_geo.c mfexec.c motifgraph.c phaseinf.c phasemgr.c \
34        pixmaps.c seismics.c spectrum.c partmotion.c polarfil.c trcselect.c
35
36#LOCAL_OBJS     =       $(LOCAL_SRCS:%.c=%.o)
37LOCAL_OBJS      =       $(LOCAL_SRCS:.c=.o)
38
39ALL                     = $(PROGNAME) $(PROGNAME).uid $(PROGNAME)_smfnt.uid
40
41all:    $(ALL)
42
43$(LIB_MOTIF):   $(LOCAL_OBJS)
44        ar r $@ $(LOCAL_OBJS); $(RANLIB) $@
45
46$(LIB_SOURCE):
47        @echo "Source-Lib not up to date"
48
49$(LIB_SEED):
50        @echo "SEED-Lib not up to date"
51
52$(LIB_UTIL):
53        @echo "Util-Lib not up to date"
54
55$(LIB_FRGN):
56        @echo "Frgn-Lib not up to date"
57
58$(PROGNAME):    shm.o $(MAKEFILE) $(ALL_SH_LIBS)
59        @echo "Linking $(PROGNAME) ..."
60        $(LD) shm.o $(LDFLAGS) $(LIBS) -o $@
61
62$(PROGNAME).uid:        *.uil
63        (LANG=en; uil -o $@ $(PROGNAME).uil)
64
65$(PROGNAME)_smfnt.uid:  *.uil
66        @(grep -v bigfont shm.uil | sed 's/\!smallfont//' >shm_smfnt.uil)
67        (LANG=en; uil -o $@ $(PROGNAME)_smfnt.uil)
68
69GeographicRegion:       GeographicRegion.o $(MAKEFILE) $(ALL_SH_LIBS)
70        @echo "Linking $(PROGNAME) ..."
71        $(LD) GeographicRegion.o $(LDFLAGS) $(LIBS) -o $@
72
73
74
75clean:
76        -@rm *% $(ALL) $(LOCAL_OBJS) $(PROGNAME).o $(PROGNAME)_world $(PROGNAME)_world.uid $(PROGNAME)_world.old $(PROGNAME)_smallfont.uid
77        -@rm $(LIB_MOTIF)
78
79depend:
80        makedepend -s "# DO NOT DELETE" -- $(CFLAGS) -- $(LOCAL_SRCS) shm.c
81
82
83# DO NOT DELETE
84
Note: See TracBrowser for help on using the repository browser.