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