source: tags/release-0.9.2/Makefile

Last change on this file was 86, checked in by Matthew Whiting, 18 years ago

Large commit, mostly removing dud commented code, and adding comments and
documentation to the existing code. No new features.

File size: 2.1 KB
Line 
1CFLAGS = -c -g
2
3FFLAGS = -C -fast -O4
4
5CC=     g++ $(CFLAGS)
6F77=    g77 $(FFLAGS)
7
8BASE = .
9
10PGDIR = /u/whi550/pgplot/
11PGPLOTLIB = -L$(PGDIR) -L/usr/X11R6/lib/ -lcpgplot -lpgplot -lX11
12
13#CFITSIOLIB = -lcfitsio
14CFITSIOINC = /DATA/SITAR_1/whi550/cfitsio
15#CFITSIODIR = /usr/local/lib
16CFITSIODIR = /DATA/SITAR_1/whi550/cfitsio
17CFITSIOLIB = -L$(CFITSIODIR) -lcfitsio
18
19WCSDIR = /DATA/SITAR_1/whi550/wcslib-4.2
20WCSLIB = -L$(WCSDIR)/C -lwcs -L$(WCSDIR)/pgsbox/ -lpgsbox
21
22CINC= -I$(PGDIR) -I$(WCSDIR)/C/ -I$(WCSDIR)/pgsbox/ -I$(CFITSIOINC) -I$(BASE)
23
24LIBS =  $(WCSLIB) $(PGPLOTLIB) $(CFITSIOLIB) -lm -lg2c -lstdc++
25
26ATROUSDIR = $(BASE)/ATrous
27ATROUS = $(ATROUSDIR)/atrous_1d_reconstruct.o\
28        $(ATROUSDIR)/atrous_2d_reconstruct.o\
29        $(ATROUSDIR)/atrous_3d_reconstruct.o\
30        $(ATROUSDIR)/baselineSubtract.o\
31        $(ATROUSDIR)/ReconSearch.o
32
33DETECTIONDIR = $(BASE)/Detection
34DETECTION = $(DETECTIONDIR)/areClose.o\
35        $(DETECTIONDIR)/growObject.o\
36        $(DETECTIONDIR)/lutz_detect.o\
37        $(DETECTIONDIR)/mergeIntoList.o\
38        $(DETECTIONDIR)/outputDetection.o\
39        $(DETECTIONDIR)/sorting.o\
40        $(DETECTIONDIR)/spectrumDetect.o\
41        $(DETECTIONDIR)/thresholding_functions.o
42
43CUBESDIR = $(BASE)/Cubes
44CUBES = $(CUBESDIR)/baseline.o\
45        $(CUBESDIR)/cubicSearch.o\
46        $(CUBESDIR)/detectionIO.o\
47        $(CUBESDIR)/drawMomentCutout.o\
48        $(CUBESDIR)/getImage.o\
49        $(CUBESDIR)/invertCube.o\
50        $(CUBESDIR)/Merger.o\
51        $(CUBESDIR)/outputSpectra.o\
52        $(CUBESDIR)/plotting.o\
53        $(CUBESDIR)/readRecon.o\
54        $(CUBESDIR)/saveImage.o\
55        $(CUBESDIR)/trimImage.o
56
57UTILDIR = $(BASE)/Utils
58UTIL =  $(UTILDIR)/cpgwedg_log.o\
59        $(UTILDIR)/getStats.o\
60        $(UTILDIR)/linear_regression.o\
61        $(UTILDIR)/position_related.o\
62        $(UTILDIR)/sort.o\
63        $(UTILDIR)/wcsFunctions.o\
64        $(UTILDIR)/zscale.o
65
66HEADS = $(BASE)/param.o\
67        $(DETECTIONDIR)/detection.o\
68        $(CUBESDIR)/cubes.o\
69        $(ATROUSDIR)/atrous.o
70
71duchamp : mainDuchamp.o $(HEADS) $(CUBES) $(ATROUS) $(DETECTION) $(UTIL)
72        $(F77) -o Duchamp mainDuchamp.o $(HEADS) $(CUBES) $(ATROUS) $(DETECTION) $(UTIL) $(LIBS)
73
74.cc.o:
75        $(CC) $< $(CINC) -o $@
76
77.c.o:
78        $(CC) $< $(CINC) -o $@
79
80clean :
81        rm -f *.o $(ATROUSDIR)/*.o $(CUBESDIR)/*.o $(DETECTIONDIR)/*.o $(UTILDIR)/*.o
Note: See TracBrowser for help on using the repository browser.