source: trunk/Makefile @ 63

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

Updated Makefile and InputComplete? to include the new source code files and
the new parameters.

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