-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
77 lines (54 loc) · 1.51 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# syn - a series of virtual cpus and other such things as I learn more about
# processor simulation
# See LICENSE file for copyright and license details.
include config.mk
MAYA_OBJECTS = $(patsubst %.c,%.o, $(wildcard *.c))
COMMON_THINGS = ClipsExtensions.o \
MemoryBlock.o \
boost.o \
functional.o \
AlsaMIDIExtensions.o
REPL_FINAL_BINARY = syn
REPL_FINAL_OBJECTS = Repl.o \
${COMMON_THINGS} \
${ARCH_OBJECTS} \
${MAYA_OBJECTS}
ALL_BINARIES = ${REPL_FINAL_BINARY}
ALL_OBJECTS = ${COMMON_THINGS} \
${REPL_OBJECTS} \
${REPL_FINAL_OBJECTS}
TEST_SUITES = test_maya.clp \
test_ClipsExtensions.clp
all: options ${ALL_BINARIES}
full: all tests
docs: ${ALL_BINARIES}
@echo "running doxygen"
@doxygen
options:
@echo syn build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "CXXFLAGS = ${CXXFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
@echo "CXX = ${CXX}"
%.o: %.c
@echo CC $<
@${CC} ${CFLAGS} -c $< -o $@
%.o: %.cc
@echo CXX $<
@${CXX} ${CXXFLAGS} -c $< -o $@
${REPL_FINAL_BINARY}: ${REPL_FINAL_OBJECTS}
@echo Building ${REPL_FINAL_BINARY}
@${CXX} ${LDFLAGS} -o ${REPL_FINAL_BINARY} ${REPL_FINAL_OBJECTS}
clean:
@echo Cleaning...
@rm -f ${ALL_OBJECTS} ${ALL_BINARIES}
nuke: clean
@rm -rf doc/html
tests: ${ALL_BINARIES} ${TEST_SUITES}
@echo "Running tests..."
@for n in ${TEST_SUITES}; do \
./${REPL_FINAL_BINARY} -f2 $$n -f2 cmd/test-case-invoke.clp ; \
done
.PHONY: all options clean install uninstall docs tests
include deps.make