Changeset 5743 for trunk/stac/src/Makefile
- Timestamp:
- Dec 7, 2005, 2:57:14 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/Makefile (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/Makefile
r3683 r5743 1 1 SHELL = /bin/sh 2 2 CC = gcc 3 CFLAGS += -g -std=c99 -I/home/mithrandir/price/psLib/include -D_GNU_SOURCE # -DTESTING -DCRFLUX4 PSLIB += -L/home/mithrandir/price/psLib/lib/ -lpslib -lgsl -lgslcblas -lfftw3f -lsla -lcfitsio -lm -lxml2 -lmysqlclient5 LDFLAGS += $(PSLIB)6 3 4 ### psLib 5 PSLIB_INCLUDE := $(shell pslib-config --cflags) 6 PSLIB_LINK := $(shell pslib-config --libs) 7 8 ### Additional flags for diagnostics, testing, etc 9 #PAP_CFLAGS = -DTESTING 10 #PAP_CFLAGS = -DCRFLUX 11 12 ### Build flags 13 CFLAGS += -g -O2 -std=c99 -Werror -D_GNU_SOURCE -DPS_NO_TRACE $(PSLIB_INCLUDE) $(PAP_CFLAGS) 14 LDFLAGS += $(PSLIB_LINK) 15 16 ### Ingredients for each program 7 17 STAC = stac.o stacConfig.o stacRead.o stacErrorImages.o stacTransform.o stacCheckMemory.o stacHelp.o \ 8 stacCombine.o stacInvertMaps.o stacRejection.o stacAreaOfInterest.o stacSize.o stacScales.o time.o 18 stacCombine.o stacInvertMaps.o stacRejection.o stacAreaOfInterest.o stacSize.o stacScales.o \ 19 stacTime.o 9 20 10 21 SHIFT = shift.o stacRead.o stacTransform.o stacCheckMemory.o stacInvertMaps.o stacSize.o 11 22 12 23 COMBINE = combine.o combineConfig.o stacRead.o stacErrorImages.o stacCombine.o stacScales.o \ 13 stacCheckMemory.o time.o24 stacCheckMemory.o stacTime.o 14 25 15 26 SHIFTSIZE = shiftSize.o stacWrite.o stacConfig.o stacRead.o stacCheckMemory.o stacSize.o … … 17 28 FIXIMAGE = fixImage.o 18 29 19 TARGETS = stac shift combine shiftSize fixImage 30 CALCGRADIENT = calcGradient.o stacRejection.o 20 31 32 SUM = sum.o 33 34 ### List of targets 35 TARGETS = stac shift combine shiftSize calcGradient sum 36 37 38 ### Build recipes 21 39 .PHONY: tags clean empty test profile optimise all 22 40 23 41 .c.o: 24 42 $(CC) -c $(CFLAGS) $(OPTFLAGS) $< 43 44 all: $(TARGETS) 25 45 26 46 stac: $(STAC) … … 36 56 $(CC) $(CFLAGS) -o $@ $(SHIFTSIZE) $(LDFLAGS) $(OPTFLAGS) 37 57 38 fixImage: $(FIXIMAGE)39 $(CC) $(CFLAGS) -o $@ $( FIXIMAGE) $(LDFLAGS) $(OPTFLAGS)58 calcGradient: $(CALCGRADIENT) 59 $(CC) $(CFLAGS) -o $@ $(CALCGRADIENT) $(LDFLAGS) $(OPTFLAGS) 40 60 41 all: $(TARGETS) 61 sum: $(SUM) 62 $(CC) $(CFLAGS) -o $@ $(SUM) $(LDFLAGS) $(OPTFLAGS) 63 42 64 43 65 clean:
Note:
See TracChangeset
for help on using the changeset viewer.
