| 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 $(AOBJ)genwproc.o \ | 
|---|
| 14 | $(AOBJ)toisqfilter.o $(AOBJ)toiregwindow.o $(AOBJ)toiseqbuff.o \ | 
|---|
| 15 | $(AOBJ)simtoipr.o $(AOBJ)map2toi.o $(AOBJ)toi2map.o $(AOBJ)nooppr.o | 
|---|
| 16 | EXEOLIST := $(AOBJ)fits2asc.o $(AOBJ)tsttoi.o $(AOBJ)tsttoi2.o $(AOBJ)simtst.o \ | 
|---|
| 17 | $(AOBJ)tstrztoi.o $(AOBJ)rztoi.o $(AOBJ)sfftc.o $(AOBJ)mesovh.o \ | 
|---|
| 18 | $(AOBJ)fits2ascii.o $(AOBJ)tgenw.o $(AOBJ)tstmap2toi.o $(AOBJ)tsttoi2map.o \ | 
|---|
| 19 | $(AOBJ)tstflag.o | 
|---|
| 20 | EXELIST := $(AOBJ)sfftc $(AOBJ)simtst $(AOBJ)mesovh $(AOBJ)tstrztoi $(AOBJ)fits2asc $(AOBJ)tsttoi \ | 
|---|
| 21 | $(AOBJ)tsttoi2 $(AOBJ)fits2ascii $(AOBJ)tgenw $(AOBJ)tstmap2toi $(AOBJ)tsttoi2map \ | 
|---|
| 22 | $(AOBJ)tstflag | 
|---|
| 23 |  | 
|---|
| 24 | INCLIST := asciitoiwtr.h fitstoirdr.h fitstoiwtr.h toi.h config.h conf.h \ | 
|---|
| 25 | toiprocessor.h genwproc.h toimanager.h toiseqbuff.h toiregwindow.h \ | 
|---|
| 26 | simtoipr.h map2toi.h toi2map.h nooppr.h | 
|---|
| 27 |  | 
|---|
| 28 | all : $(EXELIST) | 
|---|
| 29 | lib : $(LIBOLIST) | 
|---|
| 30 |  | 
|---|
| 31 | clean: | 
|---|
| 32 | rm -f  $(LIBOLIST) | 
|---|
| 33 | rm -f  $(EXEOLIST) | 
|---|
| 34 | rm -f  $(EXELIST) | 
|---|
| 35 |  | 
|---|
| 36 | LIBF =  $(SLB)libsophya.so $(SLB)libextsophya.so | 
|---|
| 37 | LIBS =  -L$(SLB) -lextsophya -lsophya -lpthread -lm | 
|---|
| 38 | ####ifeq ($(MACHEROS),OSF1) | 
|---|
| 39 | ####LIBS := $(LIBS) -lfor | 
|---|
| 40 | ####endif | 
|---|
| 41 |  | 
|---|
| 42 | ######################################## | 
|---|
| 43 | #### Les Executables des Programmes #### | 
|---|
| 44 | ######################################## | 
|---|
| 45 | tstrztoi: $(AOBJ)tstrztoi | 
|---|
| 46 | @echo done | 
|---|
| 47 | $(AOBJ)tstrztoi: $(AOBJ)tstrztoi.o $(AOBJ)rztoi.o $(LIBOLIST) | 
|---|
| 48 | $(LINK.cc)  -o $@ $^ $(LIBS) | 
|---|
| 49 |  | 
|---|
| 50 | sfftc: $(AOBJ)sfftc | 
|---|
| 51 | @echo done | 
|---|
| 52 | $(AOBJ)sfftc: $(AOBJ)sfftc.o  $(LIBOLIST) | 
|---|
| 53 | $(LINK.cc)  -o $@ $^ $(LIBS) | 
|---|
| 54 |  | 
|---|
| 55 | mesovh: $(AOBJ)mesovh | 
|---|
| 56 | @echo done | 
|---|
| 57 | $(AOBJ)mesovh: $(AOBJ)mesovh.o  $(LIBOLIST) | 
|---|
| 58 | $(LINK.cc)  -o $@ $^ $(LIBS) | 
|---|
| 59 |  | 
|---|
| 60 | simtst: $(AOBJ)simtst | 
|---|
| 61 | @echo done | 
|---|
| 62 | $(AOBJ)simtst: $(AOBJ)simtst.o  $(LIBOLIST) | 
|---|
| 63 | $(LINK.cc)  -o $@ $^ $(LIBS) | 
|---|
| 64 |  | 
|---|
| 65 | fits2asc: $(AOBJ)fits2asc | 
|---|
| 66 | @echo done | 
|---|
| 67 | $(AOBJ)fits2asc: $(AOBJ)fits2asc.o $(LIBOLIST) | 
|---|
| 68 | $(LINK.cc)  -o $@ $^ $(LIBS) | 
|---|
| 69 |  | 
|---|
| 70 | tsttoi: $(AOBJ)tsttoi | 
|---|
| 71 | @echo done | 
|---|
| 72 | $(AOBJ)tsttoi: $(AOBJ)tsttoi.o $(LIBOLIST) | 
|---|
| 73 | $(LINK.cc)  -o $@ $^ $(LIBS) | 
|---|
| 74 |  | 
|---|
| 75 | tsttoi2: $(AOBJ)tsttoi2 | 
|---|
| 76 | @echo done | 
|---|
| 77 | $(AOBJ)tsttoi2: $(AOBJ)tsttoi2.o $(LIBOLIST) | 
|---|
| 78 | $(LINK.cc)  -o $@ $^ $(LIBS) | 
|---|
| 79 |  | 
|---|
| 80 | fits2ascii: $(AOBJ)fits2ascii | 
|---|
| 81 | @echo done | 
|---|
| 82 | $(AOBJ)fits2ascii: $(AOBJ)fits2ascii.o $(LIBOLIST) | 
|---|
| 83 | $(LINK.cc)  -o $@ $^ $(LIBS) | 
|---|
| 84 |  | 
|---|
| 85 | tgenw: $(AOBJ)tgenw | 
|---|
| 86 | @echo done | 
|---|
| 87 | $(AOBJ)tgenw: $(AOBJ)tgenw.o  $(LIBOLIST) | 
|---|
| 88 | $(LINK.cc)  -o $@ $^ $(LIBS) | 
|---|
| 89 |  | 
|---|
| 90 | tstmap2toi: $(AOBJ)tstmap2toi | 
|---|
| 91 | @echo done | 
|---|
| 92 | $(AOBJ)tstmap2toi: $(AOBJ)tstmap2toi.o $(LIBOLIST) | 
|---|
| 93 | $(LINK.cc)  -o $@ $^ $(LIBS) | 
|---|
| 94 |  | 
|---|
| 95 | tsttoi2map: $(AOBJ)tsttoi2map | 
|---|
| 96 | @echo done | 
|---|
| 97 | $(AOBJ)tsttoi2map: $(AOBJ)tsttoi2map.o $(LIBOLIST) | 
|---|
| 98 | $(LINK.cc)  -o $@ $^ $(LIBS) | 
|---|
| 99 |  | 
|---|
| 100 | tstflag: $(AOBJ)tstflag | 
|---|
| 101 | @echo done | 
|---|
| 102 | $(AOBJ)tstflag: $(AOBJ)tstflag.o $(LIBOLIST) | 
|---|
| 103 | $(LINK.cc)  -o $@ $^ $(LIBS) | 
|---|
| 104 |  | 
|---|
| 105 | ################################################ | 
|---|
| 106 | #### Compilation des Sources des Programmes #### | 
|---|
| 107 | ################################################ | 
|---|
| 108 | $(AOBJ)simtst.o: simtst.cc $(INCLIST) | 
|---|
| 109 | $(AOBJ)sfftc.o: sfftc.cc $(INCLIST) | 
|---|
| 110 | $(AOBJ)mesovh.o: mesovh.cc $(INCLIST) | 
|---|
| 111 | $(AOBJ)tstrztoi.o: tstrztoi.cc rztoi.h $(INCLIST) | 
|---|
| 112 | $(AOBJ)rztoi.o: rztoi.cc rztoi.h $(INCLIST) | 
|---|
| 113 | $(AOBJ)fits2asc.o: fits2asc.cc $(INCLIST) | 
|---|
| 114 | $(AOBJ)tsttoi.o: tsttoi.cc $(INCLIST) | 
|---|
| 115 | $(AOBJ)tsttoi2.o: tsttoi2.cc $(INCLIST) | 
|---|
| 116 | $(AOBJ)fits2ascii.o: fits2ascii.cc $(INCLIST) | 
|---|
| 117 | $(AOBJ)tgenw.o: tgenw.cc $(INCLIST) | 
|---|
| 118 | $(AOBJ)tstmap2toi.o: tstmap2toi.cc $(INCLIST) | 
|---|
| 119 | $(AOBJ)tsttoi2map.o: tsttoi2map.cc $(INCLIST) | 
|---|
| 120 | $(AOBJ)tstflag.o: tstflag.cc $(INCLIST) | 
|---|
| 121 |  | 
|---|
| 122 |  | 
|---|
| 123 | ################################################ | 
|---|
| 124 | #### Compilation des Sources des Librairies #### | 
|---|
| 125 | ################################################ | 
|---|
| 126 | $(AOBJ)asciitoiwtr.o: asciitoiwtr.cc asciitoiwtr.h toi.h config.h conf.h toiprocessor.h toimanager.h | 
|---|
| 127 | $(AOBJ)fitstoirdr.o: fitstoirdr.cc fitstoirdr.h toiprocessor.h config.h conf.h | 
|---|
| 128 | $(AOBJ)fitstoiwtr.o: fitstoiwtr.cc fitstoiwtr.h toi.h config.h conf.h | 
|---|
| 129 | $(AOBJ)toi.o: toi.cc toiprocessor.h config.h conf.h toi.h | 
|---|
| 130 | $(AOBJ)toimanager.o: toimanager.cc toimanager.h | 
|---|
| 131 | $(AOBJ)toiprocessor.o: toiprocessor.cc toiprocessor.h config.h conf.h toi.h toimanager.h | 
|---|
| 132 | $(AOBJ)genwproc.o: genwproc.h toiprocessor.h toimanager.h | 
|---|
| 133 | $(AOBJ)toisqfilter.o: toisqfilter.cc toisqfilter.h toiprocessor.h config.h conf.h toi.h toimanager.h | 
|---|
| 134 | $(AOBJ)toiseqbuff.o: toiseqbuff.cc toiprocessor.h config.h conf.h toi.h toiseqbuff.h | 
|---|
| 135 | $(AOBJ)toiregwindow.o: toiregwindow.cc toiprocessor.h config.h conf.h toi.h toiregwindow.h | 
|---|
| 136 | $(AOBJ)simtoipr.o: simtoipr.cc toiprocessor.h config.h conf.h toi.h simtoipr.h | 
|---|
| 137 | $(AOBJ)map2toi.o: map2toi.cc map2toi.h | 
|---|
| 138 | $(AOBJ)toi2map.o: toi2map.cc toi2map.h | 
|---|
| 139 | $(AOBJ)nooppr.o: nooppr.cc nooppr.h | 
|---|