source: trunk/Makefile @ 82

Last change on this file since 82 was 74, checked in by Matthew Whiting, 18 years ago

Separated the baselineSubtract functions, so that the ones depending on the
Cube class are in a new file Cubes/baseline.cc.
Added new getBaseline function that does not need a Param to be passed (this
can be used by other programs without having to define a Param).
Added prototype to atrous.hh and Cubes/baseline.cc to Makefile.

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)/removeMW.o\
55        $(CUBESDIR)/saveImage.o\
56        $(CUBESDIR)/trimImage.o
57
58UTILDIR = $(BASE)/Utils
59UTIL =  $(UTILDIR)/cpgwedg_log.o\
60        $(UTILDIR)/getStats.o\
61        $(UTILDIR)/linear_regression.o\
62        $(UTILDIR)/position_related.o\
63        $(UTILDIR)/sort.o\
64        $(UTILDIR)/wcsFunctions.o\
65        $(UTILDIR)/zscale.o
66
67HEADS = $(BASE)/param.o\
68        $(DETECTIONDIR)/detection.o\
69        $(CUBESDIR)/cubes.o\
70        $(ATROUSDIR)/atrous.o
71
72duchamp : mainDuchamp.o $(HEADS) $(CUBES) $(ATROUS) $(DETECTION) $(UTIL)
73        $(F77) -o Duchamp mainDuchamp.o $(HEADS) $(CUBES) $(ATROUS) $(DETECTION) $(UTIL) $(LIBS)
74
75.cc.o:
76        $(CC) $< $(CINC) -o $@
77
78.c.o:
79        $(CC) $< $(CINC) -o $@
80
81clean :
82        rm -f *.o $(ATROUSDIR)/*.o $(CUBESDIR)/*.o $(DETECTIONDIR)/*.o $(UTILDIR)/*.o
Note: See TracBrowser for help on using the repository browser.