1 | |
---|
2 | # |
---|
3 | # THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE |
---|
4 | # CHECKED IT OUT USING THE COMMAND CHECKOUT. |
---|
5 | # |
---|
6 | # $Id$ |
---|
7 | # |
---|
8 | # Revision history: |
---|
9 | # $Log$ |
---|
10 | # Revision 1.2 2007/12/16 14:50:31 paulf |
---|
11 | # cflags fixed for linux |
---|
12 | # |
---|
13 | # Revision 1.1 2005/07/25 20:16:19 friberg |
---|
14 | # added in Unix makefile |
---|
15 | # |
---|
16 | # |
---|
17 | # |
---|
18 | |
---|
19 | CFLAGS = ${GLOBALFLAGS} |
---|
20 | LIBS = -lm -lpthread |
---|
21 | |
---|
22 | B = $(EW_HOME)/$(EW_VERSION)/bin |
---|
23 | L = $(EW_HOME)/$(EW_VERSION)/lib |
---|
24 | |
---|
25 | BINARIES = file2ew.o $L/chron3.o $L/logit.o $L/kom.o $L/getutil.o \ |
---|
26 | $L/sleep_ew.o $L/swap.o $L/time_ew.o $L/transport.o $L/dirops_ew.o $L/k2evt2ew.o |
---|
27 | |
---|
28 | SMBIN = $(BINARIES) $L/rw_strongmotionII.o |
---|
29 | |
---|
30 | |
---|
31 | all: |
---|
32 | make -f makefile.ux file2ew |
---|
33 | make -f makefile.ux sm_csmip2ew |
---|
34 | make -f makefile.ux sm_nsmp2ew |
---|
35 | make -f makefile.ux sm_redi2ew |
---|
36 | make -f makefile.ux sm_terra2ew |
---|
37 | make -f makefile.ux sm_tremor2ew |
---|
38 | |
---|
39 | file2ew: $(BINARIES) raw2ew.o |
---|
40 | $(CC) $(CFLAGS) -o $B/file2ew $(BINARIES) raw2ew.o $(LIBS) |
---|
41 | |
---|
42 | sm_csmip2ew: $(SMBIN) csmip2ew.o |
---|
43 | $(CC) $(CFLAGS) -o $B/sm_csmip2ew $(SMBIN) csmip2ew.o $(LIBS) |
---|
44 | |
---|
45 | sm_nsmp2ew: $(SMBIN) nsmp2ew.o |
---|
46 | $(CC) $(CFLAGS) -o $B/sm_nsmp2ew $(SMBIN) nsmp2ew.o $(LIBS) |
---|
47 | |
---|
48 | sm_redi2ew: $(SMBIN) redi2ew.o |
---|
49 | $(CC) $(CFLAGS) -o $B/sm_redi2ew $(SMBIN) redi2ew.o $(LIBS) |
---|
50 | |
---|
51 | sm_terra2ew: $(SMBIN) terra2ew.o |
---|
52 | $(CC) $(CFLAGS) -o $B/sm_terra2ew $(SMBIN) terra2ew.o $(LIBS) |
---|
53 | |
---|
54 | sm_tremor2ew: $(SMBIN) tremor2ew.o |
---|
55 | $(CC) $(CFLAGS) -o $B/sm_tremor2ew $(SMBIN) tremor2ew.o $(LIBS) |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | |
---|
60 | # Clean-up rules |
---|
61 | clean: |
---|
62 | rm -f a.out core *.o *.obj *% *~ |
---|
63 | |
---|
64 | clean_bin: |
---|
65 | rm -f $B/sm_*2ew* $B/file2ew* |
---|