-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 733 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 733 Bytes
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
CC = /usr/bin/g++
OBJS = rng.o random.o samplestat.o
SRCS = rng.cc random.cc samplestat.cc
HDRS = rng.h random.h samplestat.cc
CFLAGS = -Wall -g
EXECS = windowTest randomTest transientFaker
LFLAGS = -lm
# use a hash mark to start a comment line
#
all: $(EXECS)
windowTest: $(OBJS) windowTest.cc
$(CC) $(CFLAGS) windowTest.cc $(OBJS) -o windowTest $(LFLAGS)
randomTest: $(OBJS) randomTest.cc
$(CC) $(CFLAGS) randomTest.cc $(OBJS) -o randomTest $(LFLAGS)
transientFaker: $(OBJS) transientFaker.cc
$(CC) $(CFLAGS) transientFaker.cc random.o rng.o samplestat.o -o transientFaker $(LFLAGS)
rng.o: rng.cc rng.h
random.o: random.cc random.h
samplestat.o: samplestat.h samplestat.cc
clean:
/bin/rm -f $(OBJS) $(EXECS) *~ core*