source: SH_SHM/trunk/source/Makefile @ 30

Revision 30, 2.4 KB checked in by marcus, 14 years ago (diff)

r15 | svn | 2008-01-25 11:48:08 +0100 (Fr, 25 Jan 2008) | 1 line

command line parameter managment via cpar, deleted cmdargs.c

Line 
1
2# Makefile for SH
3# ===============
4#
5# version 21, 21-Dec-2006
6#
7# Makefile for directory $SH_SOURCE
8# K. Stammler, 11-Feb-93
9
10CFLAGS      = $(SH_CCOPTIONS) -I$(SH_SOURCE) -I$(SH_UTIL) -I$(SH_SOURCE)/newgraph -I$(SH_SOURCE)/foreign -DBASECNST=\"basecnst.h\"
11CC          = $(SH_COMPILER)
12LD          = $(SH_COMPILER)
13RANLIB          = $(SH_RANLIB)
14LDFLAGS     = -L$(SH_LIB) $(SH_LINKOPTIONS)
15LIBS        = -lgraph -lsource -lgcf -lseed -lfrgn -lsource -lm -lX11 $(SH_LINKLIBS)
16#                                              ^
17#          this second '-lsource' is necessary /
18
19MAKEFILE                = Makefile
20PROGNAME    = ../shc
21SHDAEMON    = ../shd
22
23LIB_LOCAL       = $(SH_LIB)libsource.a
24LIB_SEED                = $(SH_LIB)libseed.a
25LIB_GCF         = $(SH_LIB)libgcf.a
26LIB_GRAPH       = $(SH_LIB)libgraph.a
27LIB_UTIL                = $(SH_LIB)libutil.a
28LIB_FRGN                = $(SH_LIB)libfrgn.a
29ALL_SH_LIBS     = $(LIB_LOCAL) $(LIB_GRAPH) $(LIB_SEED) $(LIB_GCF) $(LIB_UTIL) $(LIB_FRGN)
30SHD_OBJS        = port_io.o
31SHD_LIBS        = -lsocket -lnsl
32
33LOCAL_SRCS      = \
34        logplot.c   recfiltr.c  shlib.c     shmenuio.c  timeconv.c \
35        cmdparse.c  matrixhd.c  shmath.c    shmenux.c   travtime.c  residual.c \
36        cpar.c      numres.c    shcorr.c    shmenu0.c   shmidlev.c  usrinpw.c \
37        earthloc.c  polfiltr.c  shcursor.c  shmenu1.c   shpm.c      utility.c \
38        errmsg.c    ptravtim.c  shdataba.c  shmenu2.c   shsymbol.c  port_io.c \
39        fftfiltr.c  qfileio.c   shdspmgr.c  shmenu3.c   shtransl.c  sqliface.c \
40        fileopen.c  qfintrfc.c  shexec.c    shmenu4.c   statloc.c   globalparams.c \
41        incitheo.c  shhelp.c    shmenu5.c   syscall.c   callsh.c
42
43#LOCAL_OBJS     =       $(LOCAL_SRCS:%.c=%.o)
44LOCAL_OBJS      =       $(LOCAL_SRCS:.c=.o)
45
46all:  $(PROGNAME)
47
48$(LIB_LOCAL):   $(LOCAL_OBJS)
49        ar r $@ $(LOCAL_OBJS); $(RANLIB) $@
50
51$(LIB_GRAPH):  FORCE
52        cd newgraph; make
53
54$(LIB_SEED):   FORCE
55        cd seed_io; make
56
57$(LIB_GCF):   FORCE
58        cd gcf; make
59
60$(LIB_UTIL):   FORCE
61        cd ../util; make
62
63$(LIB_FRGN):   FORCE
64        cd foreign; make
65
66FORCE:
67
68$(PROGNAME):    seismhan.o $(MAKEFILE) $(ALL_SH_LIBS)
69        @echo "Linking $(PROGNAME) ..."
70        $(LD) seismhan.o $(LDFLAGS) $(LIBS) -o $(PROGNAME)
71
72#$(SHDAEMON):   shd.o $(MAKEFILE) $(SHD_OBJS)
73#       @echo "Linking $(SHDAEMON) ..."
74#       $(LD) shd.o $(SHD_OBJS) $(SHD_LIBS) -o $(SHDAEMON)
75
76
77clean:
78        -@rm *% $(LOCAL_OBJS) seismhan.o $(ALL_SH_LIBS) $(PROGNAME) $(PROGNAME)_world
79        -@cd seed_io; make clean
80        -@cd foreign; make clean
81        -@cd newgraph; make clean
82        -@cd ../util; make clean
83
84
85depend:
86        makedepend -s "# DO NOT DELETE" -- $(CFLAGS) -- $(LOCAL_SRCS) seismhan.c
87
88
89# DO NOT DELETE
90
Note: See TracBrowser for help on using the repository browser.