-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (29 loc) · 871 Bytes
/
Makefile
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
#
# Makefile for SKID (Spline Kernel Interpolative Denmax).
#
# on an SGI R4400 add -mips2 to CFLAGS
# on an SGI R8000 (TFP) add -mips4 -O3 to CFLAGS
#
CC=cc
#CFLAGS = -O2
#Following added for gcc
#CFLAGS = -O3 -funroll-loops
# tirpc library added to work for recent Linux distributions.
CFLAGS = -O3 -I/usr/include/tirpc
LIBS = -lm -ltirpc
default: skid totipnat
@echo To try the demo, type demo!
clean:
rm -f *.o
skid: main.o kd.o smooth1.o grav.o cosmo.o romberg.o runge.o
$(CC) $(CFLAGS) -o skid main.o kd.o smooth1.o grav.o cosmo.o romberg.o runge.o $(LIBS)
main.o: main.c kd.h smooth1.h cosmo.h
kd.o: kd.c kd.h tipsydefs.h cosmo.h
smooth1.o: smooth1.c kd.h smooth1.h cosmo.h
grav.o: grav.c grav.h kd.h cosmo.h
#
# May need to specify -lrpc on some systems
#
totipnat: totipnat.o
$(CC) $(CFLAGS) -o totipnat totipnat.o $(LIBS)
totipnat.o: tipsydefs.h