1 | # USERFLAGS = -I$(EXTLIBDIR)/Include/FitsIO -DWITH_SOPHYA
|
---|
2 | USERFLAGS = -I$(EXTLIBDIR)/Include/FitsIO
|
---|
3 | include $(DPCBASEREP)/Include/MakefileUser.h
|
---|
4 |
|
---|
5 | ALIB := ./$(MACHDIR)/
|
---|
6 | AOBJ := ./$(MACHDIR)/
|
---|
7 |
|
---|
8 | $(AOBJ)%.o:%.cc
|
---|
9 | $(COMPILE.cc) $(USERFLAGS) -o $@ $<
|
---|
10 | $(AOBJ)%.o:%.c
|
---|
11 | $(COMPILE.c) $(CFLAGS) $(USERFLAGS) -o $@ $<
|
---|
12 |
|
---|
13 | LIBOLIST := $(AOBJ)asciitoiwtr.o $(AOBJ)fitstoirdr.o $(AOBJ)fitstoiwtr.o \
|
---|
14 | $(AOBJ)toi.o $(AOBJ)toimanager.o $(AOBJ)toiprocessor.o \
|
---|
15 | $(AOBJ)toisqfilter.o $(AOBJ)toiseqbuff.o $(AOBJ)simtoipr.o \
|
---|
16 | $(AOBJ)map2toi.o $(AOBJ)toi2map.o
|
---|
17 | EXEOLIST := $(AOBJ)fits2asc.o $(AOBJ)tsttoi.o $(AOBJ)tsttoi2.o $(AOBJ)simtst.o \
|
---|
18 | $(AOBJ)tstrztoi.o $(AOBJ)rztoi.o \
|
---|
19 | $(AOBJ)fits2ascii.o $(AOBJ)tstmap2toi.o $(AOBJ)tsttoi2map.o
|
---|
20 | EXELIST := $(AOBJ)simtst $(AOBJ)tstrztoi $(AOBJ)fits2asc $(AOBJ)tsttoi \
|
---|
21 | $(AOBJ)tsttoi2 $(AOBJ)fits2ascii $(AOBJ)tstmap2toi $(AOBJ)tsttoi2map
|
---|
22 |
|
---|
23 | INCLIST := asciitoiwtr.h fitstoirdr.h fitstoiwtr.h toi.h config.h conf.h \
|
---|
24 | toiprocessor.h toimanager.h toiseqbuff.h simtoipr.h map2toi.h toi2map.h
|
---|
25 |
|
---|
26 | all : $(EXELIST)
|
---|
27 | lib : $(LIBOLIST)
|
---|
28 |
|
---|
29 | clean:
|
---|
30 | rm -f $(LIBOLIST)
|
---|
31 | rm -f $(EXEOLIST)
|
---|
32 | rm -f $(EXELIST)
|
---|
33 |
|
---|
34 | LIBF = $(SLB)libsophya.so $(SLB)libextsophya.so
|
---|
35 | LIBS = -L$(SLB) -lextsophya -lsophya -lpthread -lm
|
---|
36 | ifeq ($(MACHEROS),OSF1)
|
---|
37 | LIBS := $(LIBS) -lfor
|
---|
38 | endif
|
---|
39 |
|
---|
40 |
|
---|
41 | $(AOBJ)tstrztoi: $(AOBJ)tstrztoi.o $(AOBJ)rztoi.o $(LIBOLIST)
|
---|
42 | $(LINK.cc) -o $@ $^ $(LIBS)
|
---|
43 | $(AOBJ)simtst: $(AOBJ)simtst.o $(AOBJ)simtoipr.o $(LIBOLIST)
|
---|
44 | $(LINK.cc) -o $@ $^ $(LIBS)
|
---|
45 | $(AOBJ)fits2asc: $(AOBJ)fits2asc.o $(LIBOLIST)
|
---|
46 | $(LINK.cc) -o $@ $^ $(LIBS)
|
---|
47 | $(AOBJ)tsttoi: $(AOBJ)tsttoi.o $(LIBOLIST)
|
---|
48 | $(LINK.cc) -o $@ $^ $(LIBS)
|
---|
49 | $(AOBJ)tsttoi2: $(AOBJ)tsttoi2.o $(LIBOLIST)
|
---|
50 | $(LINK.cc) -o $@ $^ $(LIBS)
|
---|
51 | $(AOBJ)fits2ascii: $(AOBJ)fits2ascii.o $(LIBOLIST)
|
---|
52 | $(LINK.cc) -o $@ $^ $(LIBS)
|
---|
53 | $(AOBJ)tstmap2toi: $(AOBJ)tstmap2toi.o $(LIBOLIST)
|
---|
54 | $(LINK.cc) -o $@ $^ $(LIBS)
|
---|
55 | $(AOBJ)tsttoi2map: $(AOBJ)tsttoi2map.o $(LIBOLIST)
|
---|
56 | $(LINK.cc) -o $@ $^ $(LIBS)
|
---|
57 |
|
---|
58 | $(AOBJ)tstrztoi.o: tstrztoi.cc rztoi.h $(INCLIST)
|
---|
59 | $(AOBJ)rztoi.o: rztoi.cc rztoi.h $(INCLIST)
|
---|
60 | $(AOBJ)fits2asc.o: fits2asc.cc $(INCLIST)
|
---|
61 | $(AOBJ)tsttoi.o: tsttoi.cc $(INCLIST)
|
---|
62 | $(AOBJ)tsttoi2.o: tsttoi2.cc $(INCLIST)
|
---|
63 | $(AOBJ)fits2ascii.o: fits2ascii.cc $(INCLIST)
|
---|
64 | $(AOBJ)tstmap2toi.o: tstmap2toi.cc $(INCLIST)
|
---|
65 | $(AOBJ)tsttoi2toi.o: tsttoi2map.cc $(INCLIST)
|
---|
66 |
|
---|
67 | $(AOBJ)asciitoiwtr.o: asciitoiwtr.cc asciitoiwtr.h toi.h config.h conf.h \
|
---|
68 | toiprocessor.h toimanager.h
|
---|
69 | $(AOBJ)fitstoirdr.o: fitstoirdr.cc fitstoirdr.h toiprocessor.h config.h conf.h
|
---|
70 | $(AOBJ)fitstoiwtr.o: fitstoiwtr.cc fitstoiwtr.h toi.h config.h conf.h
|
---|
71 | $(AOBJ)toi.o: toi.cc toiprocessor.h config.h conf.h toi.h
|
---|
72 | $(AOBJ)toimanager.o: toimanager.cc toimanager.h
|
---|
73 | $(AOBJ)toiprocessor.o: toiprocessor.cc toiprocessor.h config.h conf.h toi.h \
|
---|
74 | toimanager.h
|
---|
75 | $(AOBJ)toisqfilter.o: toisqfilter.cc toisqfilter.h toiprocessor.h config.h \
|
---|
76 | conf.h toi.h toimanager.h
|
---|
77 | $(AOBJ)toiseqbuff.o: toiseqbuff.cc toiprocessor.h config.h conf.h toi.h \
|
---|
78 | toiseqbuff.h
|
---|
79 | $(AOBJ)simtoipr.o: simtoipr.cc toiprocessor.h config.h conf.h toi.h \
|
---|
80 | simtoipr.h
|
---|
81 | $(AOBJ)map2toi.o: map2toi.cc map2toi.h
|
---|
82 | $(AOBJ)toi2map.o: toi2map.cc toi2map.h
|
---|