Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 10 additions & 16 deletions HiPS/gap/Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
.SUFFIXES:
.SUFFIXES: .c .o
CPPFLAGS += -I. -I.. -I../../lib/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
CFLAGS += -std=c99 -fPIC
LIBS = -L../../lib -lpixbounds -lwcs -lmtbl -lcfitsio -lm

CC = gcc
CFLAGS = -g -I. -I.. -I../../lib/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c99 -fPIC -Wall
LIBS = -L../../lib -lpixbounds -lwcs -lmtbl -lcfitsio -lm
all: mHPXGapScripts mHPXGapDiff mHPXGapCombine

.c.o:
$(CC) $(CFLAGS) -c $*.c
mHPXGapScripts: mHPXGapScripts.o ../../MontageLib/util/debugCheck.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

all: mHPXGap mHPXGapDiff mHPXGapCombine
mHPXGapDiff: mHPXGapDiff.o montageHPXGapDiff.o ../../MontageLib/util/debugCheck.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXGap: mHPXGapScripts.o
$(CC) -o mHPXGapScripts mHPXGapScripts.o ../../MontageLib/util/debugCheck.o $(LIBS)

mHPXGapDiff: mHPXGapDiff.o montageHPXGapDiff.o
$(CC) -o mHPXGapDiff mHPXGapDiff.o montageHPXGapDiff.o ../../MontageLib/util/debugCheck.o $(LIBS)

mHPXGapCombine: mHPXGapCombine.o
$(CC) -o mHPXGapCombine mHPXGapCombine.o ../../MontageLib/util/debugCheck.o $(LIBS)
mHPXGapCombine: mHPXGapCombine.o ../../MontageLib/util/debugCheck.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

install:
cp mHPXGapScripts mHPXGapDiff mHPXGapCombine ../../bin
Expand Down
14 changes: 3 additions & 11 deletions HiPS/hdrs/Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
.SUFFIXES:
.SUFFIXES: .c .o

CC = gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
CFLAGS = -g -O2 -I. -I../../lib/include
CPPFLAGS += -I. -I../../lib/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
LIBS = -L../../lib -lwcs -lboundaries -lmtbl -lsvc -lm

.c.o:
$(CC) $(CFLAGS) -c $*.c


all: mHPXHdr mHiPSHdr

mHPXHdr: mHPXHdr.o
gcc -o mHPXHdr mHPXHdr.c $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHiPSHdr: mHiPSHdr.o
gcc -o mHiPSHdr mHiPSHdr.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

install:
cp mHPXHdr mHiPSHdr ../../bin
Expand Down
19 changes: 6 additions & 13 deletions HiPS/pngs/Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
.SUFFIXES:
.SUFFIXES: .c .o

CC = gcc
MPICC =
CFLAGS = -g -I. -I../../lib/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c99
CPPFLAGS += -I. -I../../lib/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
CFLAGS += -std=c99
LIBS = -L../../lib -lmtbl -lwcs -lsvc -lcfitsio -lm

.c.o:
$(CC) $(CFLAGS) -c $*.c

all: mHPXPlateHist mHPXPlateComboHist mHPXPlatePNG mHiPSPNGs

mHPXPlateHist: mHPXPlateHist.o
$(CC) -o mHPXPlateHist mHPXPlateHist.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXPlateComboHist: mHPXPlateComboHist.o
$(CC) -o mHPXPlateComboHist mHPXPlateComboHist.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXPlatePNG: mHPXPlatePNG.o
$(CC) -o mHPXPlatePNG mHPXPlatePNG.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHiPSPNGs: mHiPSPNGs.o
$(CC) -o mHiPSPNGs mHiPSPNGs.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

install:
cp mHPXPlateHist mHPXPlateComboHist mHPXPlatePNG mHiPSPNGs ../../bin
Expand Down
42 changes: 17 additions & 25 deletions HiPS/scripts/Makefile
Original file line number Diff line number Diff line change
@@ -1,66 +1,58 @@
.SUFFIXES:
.SUFFIXES: .c .o

CC = gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
CFLAGS = -g -O2 -I. -I../../lib/include
CPPFLAGS += -I. -I../../lib/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
LIBS = -L../../lib -lwcs -lboundaries -lmtbl -lsvc -lcfitsio -lm

.c.o:
$(CC) $(CFLAGS) -c $*.c


all: mHPXMosaicScripts mHPXProjectScripts mHPXDiffScripts mHPXBgCorrectScripts mHPXCoaddScripts \
mHPXShrinkScripts mHiPSTileScripts mHiPSPNGScripts mHPXQuicklookScripts \
mHPXBlendScripts mHPXHistogramScripts mHPXCombineHistScripts mHPXPlatePNGScripts \
mHPXFlattenScripts mHPX8BitScripts mHPXColorQuicklookScripts

mHPXMosaicScripts: mHPXMosaicScripts.o
gcc -o mHPXMosaicScripts mHPXMosaicScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXProjectScripts: mHPXProjectScripts.o
gcc -o mHPXProjectScripts mHPXProjectScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXDiffScripts: mHPXDiffScripts.o
gcc -o mHPXDiffScripts mHPXDiffScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXBgCorrectScripts: mHPXBgCorrectScripts.o
gcc -o mHPXBgCorrectScripts mHPXBgCorrectScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXCoaddScripts: mHPXCoaddScripts.o
gcc -o mHPXCoaddScripts mHPXCoaddScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXShrinkScripts: mHPXShrinkScripts.o
gcc -o mHPXShrinkScripts mHPXShrinkScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXQuicklookScripts: mHPXQuicklookScripts.o
gcc -o mHPXQuicklookScripts mHPXQuicklookScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHiPSTileScripts: mHiPSTileScripts.o
gcc -o mHiPSTileScripts mHiPSTileScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHiPSPNGScripts: mHiPSPNGScripts.o
gcc -o mHiPSPNGScripts mHiPSPNGScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXBlendScripts: mHPXBlendScripts.o
gcc -o mHPXBlendScripts mHPXBlendScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXHistogramScripts: mHPXHistogramScripts.o
gcc -o mHPXHistogramScripts mHPXHistogramScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPX8BitScripts: mHPX8BitScripts.o
gcc -o mHPX8BitScripts mHPX8BitScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXCombineHistScripts: mHPXCombineHistScripts.o
gcc -o mHPXCombineHistScripts mHPXCombineHistScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXPlatePNGScripts: mHPXPlatePNGScripts.o
gcc -o mHPXPlatePNGScripts mHPXPlatePNGScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXColorQuicklookScripts: mHPXColorQuicklookScripts.o
gcc -o mHPXColorQuicklookScripts mHPXColorQuicklookScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXFlattenScripts: mHPXFlattenScripts.o
gcc -o mHPXFlattenScripts mHPXFlattenScripts.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

install:
cp mHPXMosaicScripts mHPXProjectScripts mHPXDiffScripts mHPXBgCorrectScripts mHPXCoaddScripts \
Expand Down
21 changes: 7 additions & 14 deletions HiPS/tiles/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
.SUFFIXES:
.SUFFIXES: .c .o
CPPFLAGS += -I. -I../../MontageLib -I../../lib/include \
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
CFLAGS += -std=c99
LIBS = -L../../lib -lwcs -lcfitsio -lpixbounds -lm

CC = gcc
MPICC =
CFLAGS = -g -I. -I../../MontageLib -I../../lib/include \
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c99
LIBS = -L../../lib -lwcs -lcfitsio -lpixbounds -lm
all: mHiPSTiles

.c.o:
$(CC) $(CFLAGS) -c $*.c

all: mHiPSTiles

mHiPSTiles: mHiPSTiles.o
$(CC) -o mHiPSTiles mHiPSTiles.o $(LIBS)
mHiPSTiles: mHiPSTiles.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

install:
cp mHiPSTiles ../../bin
Expand Down
49 changes: 20 additions & 29 deletions HiPS/util/Makefile
Original file line number Diff line number Diff line change
@@ -1,71 +1,62 @@
.SUFFIXES:
.SUFFIXES: .c .o

CC = gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
CFLAGS = -g -O2 -I. -I../../lib/include -I../../MontageLib
CPPFLAGS += -I. -I../../lib/include -I../../MontageLib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
LIBS = -L../../lib -lcfitsio -lcoord -lwcs -lboundaries -lpixbounds -lmtbl -lsvc -lm

.c.o:
$(CC) $(CFLAGS) -c $*.c


all: mHPXPlateList mHiPSSetup mHiPSID mHiPSAllSky mHPXPlateCombine \
mHPXBgCombine mHPXBgSplit mHPXSplitCorrections mHPXRawHistogram \
mHPXxy2tile mHPXtile2xy mHPXCombineHist mHPXMap mHPXBlendEdges \
mHPXCoord2Tile mHPXOrder mHiPSExec


mHiPSExec: mHiPSExec.o
gcc -o mHiPSExec mHiPSExec.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXPlateList: mHPXPlateList.o
gcc -o mHPXPlateList mHPXPlateList.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHiPSSetup: mHiPSSetup.o
gcc -o mHiPSSetup mHiPSSetup.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHiPSID: mHiPSID.o
gcc -o mHiPSID mHiPSID.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHiPSAllSky: mHiPSAllSky.o
gcc -o mHiPSAllSky mHiPSAllSky.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXPlateCombine: mHPXPlateCombine.o
gcc -o mHPXPlateCombine mHPXPlateCombine.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXBgCombine: mHPXBgCombine.o
gcc -o mHPXBgCombine mHPXBgCombine.o ../../MontageLib/Fitplane/montageFitplane.o $(LIBS)
mHPXBgCombine: mHPXBgCombine.o ../../MontageLib/Fitplane/montageFitplane.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXBgSplit: mHPXBgSplit.o
gcc -o mHPXBgSplit mHPXBgSplit.o ../../MontageLib/Fitplane/montageFitplane.o $(LIBS)
mHPXBgSplit: mHPXBgSplit.o ../../MontageLib/Fitplane/montageFitplane.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXSplitCorrections: mHPXSplitCorrections.o
gcc -o mHPXSplitCorrections mHPXSplitCorrections.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXRawHistogram: mHPXRawHistogram.o
gcc -o mHPXRawHistogram mHPXRawHistogram.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXxy2tile: mHPXxy2tile.o
gcc -o mHPXxy2tile mHPXxy2tile.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXtile2xy: mHPXtile2xy.o
gcc -o mHPXtile2xy mHPXtile2xy.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXCombineHist: mHPXCombineHist.o
gcc -o mHPXCombineHist mHPXCombineHist.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXMap: mHPXMap.o
gcc -o mHPXMap mHPXMap.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXBlendEdges: mHPXBlendEdges.o
gcc -o mHPXBlendEdges mHPXBlendEdges.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXCoord2Tile: mHPXCoord2Tile.o
gcc -o mHPXCoord2Tile mHPXCoord2Tile.o $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

mHPXOrder: mHPXOrder.o
gcc -o mHPXOrder mHPXOrder.o $(LIBS)

$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

install:
cp mHPXPlateList mHiPSSetup mHiPSID mHiPSAllSky mHPXPlateCombine \
Expand Down
Loading