-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (27 loc) · 1.28 KB
/
Makefile
File metadata and controls
40 lines (27 loc) · 1.28 KB
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
CC = gcc
CFLAGS = -Wall -O2 -g -pthread
LDFLAGS = -lm -pthread
all: test_add test_cartpole benchmark analyze_solution test_sequence test_maze test_taxi test_adf test_mux test_parity
test_add: test_add.c gp.c gp.h
$(CC) $(CFLAGS) -o test_add test_add.c gp.c $(LDFLAGS)
test_cartpole: test_cartpole.c gp.c gp.h
$(CC) $(CFLAGS) -o test_cartpole test_cartpole.c gp.c $(LDFLAGS)
benchmark: benchmark.c gp.c gp.h
$(CC) $(CFLAGS) -o benchmark benchmark.c gp.c $(LDFLAGS)
analyze_solution: analyze_solution.c gp.c gp.h
$(CC) $(CFLAGS) -o analyze_solution analyze_solution.c gp.c $(LDFLAGS)
test_sequence: test_sequence.c gp.c gp.h
$(CC) $(CFLAGS) -o test_sequence test_sequence.c gp.c $(LDFLAGS)
test_maze: test_maze.c gp.c gp.h
$(CC) $(CFLAGS) -o test_maze test_maze.c gp.c $(LDFLAGS)
test_taxi: test_taxi.c gp.c gp.h
$(CC) $(CFLAGS) -o test_taxi test_taxi.c gp.c $(LDFLAGS)
test_adf: test_adf.c gp.c gp.h
$(CC) $(CFLAGS) -o test_adf test_adf.c gp.c $(LDFLAGS)
test_mux: test_mux.c gp.c gp.h
$(CC) $(CFLAGS) -o test_mux test_mux.c gp.c $(LDFLAGS)
test_parity: test_parity.c gp.c gp.h
$(CC) $(CFLAGS) -o test_parity test_parity.c gp.c $(LDFLAGS)
clean:
rm -f test_add test_cartpole benchmark analyze_solution test_sequence test_maze test_taxi test_adf test_mux test_parity *.o
.PHONY: all clean