source: trunk/src/seismic_processing/ewspectra/makefile.ux @ 4203

Revision 4203, 1.1 KB checked in by scott, 10 years ago (diff)

Added activate_module & its message type; modified ewspectra to use it

Line 
1CC = gcc
2
3BINDIR = $(EW_HOME)/$(EW_VERSION)/bin
4LIBDIR = $(EW_HOME)/$(EW_VERSION)/lib
5
6CFLAGS = $(GLOBALFLAGS) -I.
7LDFLAGS = -lpthread -lc -lm
8
9SRCS = ewspectra.c iir.c
10OBJS = $(SRCS:%.c=%.o)
11
12SRCSa = activate_module.c
13OBJSa = $(SRCSa:%.c=%.o)
14
15SRCSs = sniffspectra.c
16OBJSs = $(SRCSs:%.c=%.o)
17
18EW_LIBS = $(LIBDIR)/logit_mt.o $(LIBDIR)/kom.o $(LIBDIR)/threads_ew.o \
19          $(LIBDIR)/time_ew.o $(LIBDIR)/transport.o $(LIBDIR)/sleep_ew.o \
20          $(LIBDIR)/getutil.o $(LIBDIR)/sema_ew.o $(LIBDIR)/ws_clientII.o \
21          $(LIBDIR)/socket_ew_common.o $(LIBDIR)/socket_ew.o $(LIBDIR)/swap.o \
22          $(LIBDIR)/ew_spectra_io.o
23 
24.c.o:
25        $(CC) $(CFLAGS) -c $< -o $@
26
27all: ewspectra activate_module sniffspectra
28
29ewspectra: $(OBJS)
30        $(CC) $(GLOBALFLAGS) -o ewspectra $(OBJS) $(LIBDIR)/ws2ts.o $(EW_LIBS) $(LDFLAGS)
31        cp ewspectra $(BINDIR)
32
33activate_module: $(OBJSa)
34        $(CC) $(GLOBALFLAGS) -o activate_module $(OBJSa) $(EW_LIBS) $(LDFLAGS)
35        cp activate_module $(BINDIR)
36
37sniffspectra: $(OBJSs)
38        $(CC) $(GLOBALFLAGS) -o sniffspectra $(OBJSs) $(EW_LIBS) $(LDFLAGS)
39        cp sniffspectra $(BINDIR)
40
41clean:
42        rm *.o
43        rm ewspectra activate_module sniffspectra
Note: See TracBrowser for help on using the repository browser.