IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2005, 2:57:14 PM (20 years ago)
Author:
Paul Price
Message:

Importing from PAP cvs tree again. This will now be the working tree.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/Makefile

    r3683 r5743  
    11SHELL = /bin/sh
    22CC = gcc
    3 CFLAGS += -g -std=c99 -I/home/mithrandir/price/psLib/include -D_GNU_SOURCE # -DTESTING -DCRFLUX
    4 PSLIB += -L/home/mithrandir/price/psLib/lib/ -lpslib -lgsl -lgslcblas -lfftw3f -lsla -lcfitsio -lm -lxml2 -lmysqlclient
    5 LDFLAGS += $(PSLIB)
    63
     4### psLib
     5PSLIB_INCLUDE := $(shell pslib-config --cflags)
     6PSLIB_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
     13CFLAGS += -g -O2 -std=c99 -Werror -D_GNU_SOURCE -DPS_NO_TRACE $(PSLIB_INCLUDE) $(PAP_CFLAGS)
     14LDFLAGS += $(PSLIB_LINK)
     15
     16### Ingredients for each program
    717STAC = 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
    920
    1021SHIFT = shift.o stacRead.o stacTransform.o stacCheckMemory.o stacInvertMaps.o stacSize.o
    1122
    1223COMBINE = combine.o combineConfig.o stacRead.o stacErrorImages.o stacCombine.o stacScales.o \
    13         stacCheckMemory.o time.o
     24        stacCheckMemory.o stacTime.o
    1425
    1526SHIFTSIZE = shiftSize.o stacWrite.o stacConfig.o stacRead.o stacCheckMemory.o stacSize.o
     
    1728FIXIMAGE = fixImage.o
    1829
    19 TARGETS = stac shift combine shiftSize fixImage
     30CALCGRADIENT = calcGradient.o stacRejection.o
    2031
     32SUM = sum.o
     33
     34### List of targets
     35TARGETS = stac shift combine shiftSize calcGradient sum
     36
     37
     38### Build recipes
    2139.PHONY: tags clean empty test profile optimise all
    2240
    2341.c.o:
    2442                $(CC) -c $(CFLAGS) $(OPTFLAGS) $<
     43
     44all:            $(TARGETS)
    2545
    2646stac:           $(STAC)
     
    3656                $(CC) $(CFLAGS) -o $@ $(SHIFTSIZE) $(LDFLAGS) $(OPTFLAGS)
    3757
    38 fixImage:       $(FIXIMAGE)
    39                 $(CC) $(CFLAGS) -o $@ $(FIXIMAGE) $(LDFLAGS) $(OPTFLAGS)
     58calcGradient:   $(CALCGRADIENT)
     59                $(CC) $(CFLAGS) -o $@ $(CALCGRADIENT) $(LDFLAGS) $(OPTFLAGS)
    4060
    41 all:            $(TARGETS)
     61sum:            $(SUM)
     62                $(CC) $(CFLAGS) -o $@ $(SUM) $(LDFLAGS) $(OPTFLAGS)
     63
    4264
    4365clean:
Note: See TracChangeset for help on using the changeset viewer.