source: SH_SHM/trunk/source/gcf/Makefile @ 358

Revision 358, 1.5 KB checked in by marcus, 8 years ago (diff)

r192 | walther | 2011-03-31 17:30:28 +0200 (Do, 31 Mär 2011) | 4 lines

  • locsat and fk source may be defined at command line
  • replacing makedepend by gccmakedep (bug not fixed for 5 years in Xorg)
  • added include to sysbase.h for proper macro definition
Line 
1# file Makefile
2#      ========
3#
4# version 2, 21-Oct-2003
5#
6# Makefile of GCF/IO directory
7# K. Stammler, 18-Oct-2003
8
9
10CFLAGS      =   $(SH_CCOPTIONS) -fPIC -DBASECNST=\"basecnst.h\" -I.. -I$(SH_UTIL)
11CC          =   $(SH_COMPILER)
12LD          =   $(SH_COMPILER)
13LINK.c      =   $(SH_COMPILER)
14RANLIB          =       $(SH_RANLIB)
15LDFLAGS     =   -L$(SH_LIB) $(SH_LINKOPTIONS)
16LIBS        =   -lgcf -lseed -lsource -lm $(SH_LINKLIBS)
17OBJLIB          = ..
18ALL_LOCAL_SRCS  = *.c
19LIB_GCF_SRCS    = gcflib.c
20LIB_GCF_OBJS    = $(LIB_GCF_SRCS:.c=.o)
21
22LIB_GCF         =       $(SH_LIB)libgcf.a
23LIB_SEED        =       $(SH_LIB)libseed.a
24LIB_SOURCE      =       $(SH_LIB)libsource.a
25
26ALL         =   gcfquickdump gcf2ascii gcf2mseed gfdline split_gcf gcftest
27
28all:
29                make $(LIB_GCF) $(ALL)
30
31$(LIB_GCF):     $(LIB_GCF_OBJS)
32        ar r $@ $(LIB_GCF_OBJS); $(RANLIB) $@
33
34$(LIB_SOURCE):
35        -@echo "libsource.a not up to date"
36
37gcfquickdump: gcfquickdump.o $(LIB_SOURCE) $(LIB_GCF)
38                $(LINK.c) -o $@ $@.o $(LDFLAGS) $(LIBS)
39
40gcf2ascii: gcf2ascii.o $(LIB_SOURCE) $(LIB_GCF)
41                $(LINK.c) -o $@ $@.o $(LDFLAGS) $(LIBS)
42
43gcf2mseed: gcf2mseed.o $(LIB_SOURCE) $(LIB_GCF)
44                $(LINK.c) -o $@ $@.o $(LDFLAGS) $(LIBS)
45
46gfdline: gfdline.o $(LIB_SOURCE) $(LIB_GCF)
47                $(LINK.c) -o $@ $@.o $(LDFLAGS) $(LIBS)
48
49split_gcf: split_gcf.o $(LIB_SOURCE) $(LIB_GCF)
50                $(LINK.c) -o $@ $@.o $(LDFLAGS) $(LIBS)
51
52gcftest: gcftest.o $(LIB_SOURCE) $(LIB_GCF)
53                $(LINK.c) -o $@ $@.o $(LDFLAGS) $(LIBS)
54
55
56clean:
57        @rm *.o *% $(ALL)
58
59depend:
60        gccmakedep -s "# DO NOT DELETE" -- $(CFLAGS) -- $(ALL_LOCAL_SRCS)
61
62
63# DO NOT DELETE
64
Note: See TracBrowser for help on using the repository browser.