forked from radforddc/icpc_siggen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (32 loc) · 1.43 KB
/
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
39
40
41
42
43
44
45
46
47
# Makefile for signal generation from PPC detectors
# - uses .c library codes by Karin Lagergren, heavily modified by David Radford
#
# [-lreadline option required for readline, addhistory...]
CC = gcc
CPP = g++
CFLAGS = -O3 -Wall
RM = rm -f
# common files and headers
mk_signal_files = calc_signal.c cyl_point.c detector_geometry.c fields.c point.c read_config.c
mk_signal_headers = calc_signal.h cyl_point.h detector_geometry.h fields.h mjd_siggen.h point.h
All: stester mjd_fieldgen mass
extras: speed dtc csv2dat aoe_dist
# interactive interface for signal calculation code
stester: $(mk_signal_files) $(mk_signal_headers) signal_tester.c
$(CC) $(CFLAGS) -o $@ $(mk_signal_files) signal_tester.c -lm -lreadline
mjd_fieldgen: mjd_fieldgen.c read_config.c detector_geometry.c mjd_siggen.h detector_geometry.h
$(CC) $(CFLAGS) -o $@ mjd_fieldgen.c read_config.c detector_geometry.c -lm
mass: mass.c read_config.c mjd_siggen.h
$(CC) $(CFLAGS) -o $@ mass.c read_config.c -lm
speed: $(mk_signal_files) $(mk_signal_headers) speed.c
$(CC) $(CFLAGS) -o $@ $(mk_signal_files) speed.c -lm
dtc: $(mk_signal_files) $(mk_signal_headers) dtc.c
$(CC) $(CFLAGS) -o $@ $(mk_signal_files) dtc.c -lm
aoe_dist: $(mk_signal_files) $(mk_signal_headers) aoe_dist.c
$(CC) $(CFLAGS) -o $@ $(mk_signal_files) aoe_dist.c -lm -lreadline
csv2dat: csv2dat.c
$(CC) $(CFLAGS) -o $@ csv2dat.c
FORCE:
clean:
$(RM) *.o core* *[~%] *.trace
$(RM) stester mjd_fieldgen mass dtc