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

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

Ewthresh (& some fixes for ewspectra)

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
12SRCSc = compute_spectra.c
13OBJSc = $(SRCSc:%.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 compute_spectra sniffspectra
28
29ewspectra: $(OBJS)
30        $(CC) $(GLOBALFLAGS) -o ewspectra $(OBJS) $(LIBDIR)/ws2ts.o $(EW_LIBS) $(LDFLAGS)
31        cp ewspectra $(BINDIR)
32
33compute_spectra: $(OBJSc)
34        $(CC) $(GLOBALFLAGS) -o compute_spectra $(OBJSc) $(EW_LIBS) $(LDFLAGS)
35        cp compute_spectra $(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 compute_spectra sniffspectra
Note: See TracBrowser for help on using the repository browser.