-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (28 loc) · 801 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
OPTIONS = -g -ggdb -O0
OPTIONS += -Wall -Wextra
OPTIONS += -pedantic
#OPTIONS += --std=gnu89
OPTIONS += --std=c99
#OPTIONS += -Wc++-compat
# Give compilation and linker options to both (shouldn't cause issues)
CFLAGS += $(OPTIONS)
LDFLAGS += $(OPTIONS)
CFLAGS += -DDEBUG # Enable debugging stuff
#CFLAGS += -DNDEBUG # Old way to disabe assert
.PHONY: all clean docs docsquiet
all: expr docsquiet
expression.o: expression.h expression.c
symbolic.o: symbolic.h symbolic.c
workspace.o: workspace.h workspace.c
types.o: types.h types.c
errors.o: errors.h errors.c
expr: errors.o types.o workspace.o symbolic.o expression.o main.o
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $+
docs:
doxygen Doxyfile
docsquiet:
doxygen Doxyfile > doxygen.log
clean:
$(RM) *.o expr
$(RM) -r docs/*
$(RM) doxygen.log