forked from acbecker/hotpants
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.macosx
50 lines (35 loc) · 1.11 KB
/
Makefile.macosx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
CFITSIOINCDIR = /usr/local/include
#use only with no debugging
COPTS = -funroll-loops -O3 -ansi -Wall -I$(CFITSIOINCDIR) -I/usr/include/malloc
LIBS = -lm -lcfitsio
CC = gcc
STDH = functions.h globals.h defaults.h
ALL = main.o vargs.o alard.o functions.o
SWIG = alard.o functions.o
ALLT = main_test.o vargs.o alard.o functions.o
all: hotpants
hotpants: $(ALL)
$(CC) $(ALL) -o hotpants $(LIBS) $(COPTS)
hotpants_test: $(ALLT)
$(CC) $(ALLT) -o hotpants_test $(LIBS) $(COPTS)
main_test.o: $(STDH) main_test.c
$(CC) $(COPTS) -c main_test.c
main.o: $(STDH) main.c
$(CC) $(COPTS) -c main.c
alard.o: $(STDH) alard.c
$(CC) $(COPTS) -c alard.c
functions.o: $(STDH) functions.c
$(CC) $(COPTS) -c functions.c
vargs.o: $(STDH) vargs.c
$(CC) $(COPTS) -c vargs.c
NCOPTS = -funroll-loops -O3 -I$(CFITSIOINCDIR) -I/usr/include/malloc
extractkern : extractkern.c
$(CC) $(NCOPTS) extractkern.c -o extractkern $(LIBS)
maskim : maskim.c
$(CC) $(NCOPTS) maskim.c -o maskim $(LIBS)
clean :
rm -f *.o
rm -f *~ .*~
rm -f hotpants
rm -f extractkern
rm -f maskim