| 1 | USERFLAGS = -I$(EXTLIBDIR)/Include/FitsIO -DWITH_SOPHYA
|
|---|
| 2 | include $(DPCBASEREP)/Include/MakefileUser.h
|
|---|
| 3 |
|
|---|
| 4 | ALIB := ./$(MACHDIR)/
|
|---|
| 5 | AOBJ := ./$(MACHDIR)/
|
|---|
| 6 |
|
|---|
| 7 | $(AOBJ)%.o:%.cc
|
|---|
| 8 | $(COMPILE.cc) $(USERFLAGS) -o $@ $<
|
|---|
| 9 | $(AOBJ)%.o:%.c
|
|---|
| 10 | $(COMPILE.c) $(CFLAGS) $(USERFLAGS) -o $@ $<
|
|---|
| 11 |
|
|---|
| 12 | LIBOLIST := $(AOBJ)asciitoiwtr.o $(AOBJ)fitstoirdr.o $(AOBJ)fitstoiwtr.o \
|
|---|
| 13 | $(AOBJ)toi.o $(AOBJ)toimanager.o $(AOBJ)toiprocessor.o \
|
|---|
| 14 | $(AOBJ)toisqfilter.o $(AOBJ)toiregwindow.o $(AOBJ)toiseqbuff.o \
|
|---|
| 15 | $(AOBJ)simtoipr.o $(AOBJ)map2toi.o $(AOBJ)toi2map.o
|
|---|
| 16 | EXEOLIST := $(AOBJ)fits2asc.o $(AOBJ)tsttoi.o $(AOBJ)tsttoi2.o $(AOBJ)simtst.o \
|
|---|
| 17 | $(AOBJ)tstrztoi.o $(AOBJ)rztoi.o \
|
|---|
| 18 | $(AOBJ)fits2ascii.o $(AOBJ)tstmap2toi.o $(AOBJ)tsttoi2map.o
|
|---|
| 19 | EXELIST := $(AOBJ)simtst $(AOBJ)tstrztoi $(AOBJ)fits2asc $(AOBJ)tsttoi \
|
|---|
| 20 | $(AOBJ)tsttoi2 $(AOBJ)fits2ascii $(AOBJ)tstmap2toi $(AOBJ)tsttoi2map
|
|---|
| 21 |
|
|---|
| 22 | INCLIST := asciitoiwtr.h fitstoirdr.h fitstoiwtr.h toi.h config.h conf.h \
|
|---|
| 23 | toiprocessor.h toimanager.h toiseqbuff.h toiregwindow.h \
|
|---|
| 24 | 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)toiregwindow.o: toiregwindow.cc toiprocessor.h config.h conf.h toi.h \
|
|---|
| 80 | toiregwindow.h
|
|---|
| 81 | $(AOBJ)simtoipr.o: simtoipr.cc toiprocessor.h config.h conf.h toi.h \
|
|---|
| 82 | simtoipr.h
|
|---|
| 83 | $(AOBJ)map2toi.o: map2toi.cc map2toi.h
|
|---|
| 84 | $(AOBJ)toi2map.o: toi2map.cc toi2map.h
|
|---|