| 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
|
|---|
| 14 | EXEOLIST := $(AOBJ)fits2asc.o $(AOBJ)tsttoi.o $(AOBJ)tsttoi2.o
|
|---|
| 15 | EXELIST := $(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
|
|---|
| 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)fits2asc: $(AOBJ)fits2asc.o $(LIBOLIST)
|
|---|
| 39 | $(LINK.cc) -o $@ $^ $(LIBS)
|
|---|
| 40 | $(AOBJ)tsttoi: $(AOBJ)tsttoi.o $(LIBOLIST)
|
|---|
| 41 | $(LINK.cc) -o $@ $^ $(LIBS)
|
|---|
| 42 | $(AOBJ)tsttoi2: $(AOBJ)tsttoi2.o $(LIBOLIST)
|
|---|
| 43 | $(LINK.cc) -o $@ $^ $(LIBS)
|
|---|
| 44 |
|
|---|
| 45 | $(AOBJ)tstrztoi.o: tstrztoi.cc rztoi.h $(INCLIST)
|
|---|
| 46 | $(AOBJ)rztoi.o: rztoi.cc rztoi.h $(INCLIST)
|
|---|
| 47 | $(AOBJ)fits2asc.o: fits2asc.cc $(INCLIST)
|
|---|
| 48 | $(AOBJ)tsttoi.o: tsttoi.cc $(INCLIST)
|
|---|
| 49 | $(AOBJ)tsttoi2.o: tsttoi2.cc $(INCLIST)
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 | $(AOBJ)asciitoiwtr.o: asciitoiwtr.cc asciitoiwtr.h toi.h config.h conf.h \
|
|---|
| 53 | toiprocessor.h toimanager.h
|
|---|
| 54 | $(AOBJ)fitstoirdr.o: fitstoirdr.cc fitstoirdr.h toiprocessor.h config.h conf.h
|
|---|
| 55 | $(AOBJ)fitstoiwtr.o: fitstoiwtr.cc fitstoiwtr.h toi.h config.h conf.h
|
|---|
| 56 | $(AOBJ)toi.o: toi.cc toiprocessor.h config.h conf.h toi.h
|
|---|
| 57 | $(AOBJ)toimanager.o: toimanager.cc toimanager.h
|
|---|
| 58 | $(AOBJ)toiprocessor.o: toiprocessor.cc toiprocessor.h config.h conf.h toi.h \
|
|---|
| 59 | toimanager.h
|
|---|
| 60 | $(AOBJ)toisqfilter.o: toisqfilter.cc toisqfilter.h toiprocessor.h config.h \
|
|---|
| 61 | conf.h toi.h toimanager.h
|
|---|
| 62 | $(AOBJ)toiseqbuff.o: toiseqbuff.cc toiprocessor.h config.h conf.h toi.h \
|
|---|
| 63 | toiseqbuff.h
|
|---|