-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (24 loc) · 828 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
CC=gcc
CFLAGS+=-I./include
CFLAGS+=-L./lib/draw
CFLAGS+=-L./lib/shell
CFLAGS+=-L./lib/util
FLOW_BINARY=./bin/flow
OBJS:= src/flow.o src/handlers.o
USER_LIBS:= ./lib/draw/libdraw.a ./lib/shell/libshell.a ./lib/util/libutil.a
all: $(FLOW_BINARY)
pdfdocs: ./docs/pdf/README.pdf
./lib/draw/libdraw.a: ./lib/draw/draw.c ./include/draw.h
make --directory=./lib/draw/
./lib/shell/libshell.a: ./lib/shell/shell.c ./include/shell.h
make --directory=./lib/shell/
./lib/util/libutil.a: ./lib/util/util.c ./include/util.h
make --directory=./lib/util/
$(OBJS): ./src/flow.c ./src/handlers.c
make --directory=./src/
$(FLOW_BINARY): $(OBJS) $(USER_LIBS)
$(CC) $(CFLAGS) $(OBJS) -o $@ -ldraw -lshell -lutil -lreadline
./docs/pdf/README.pdf: ./docs/README.md
pandoc -V geometry:margin=0.2in $^ -o $@
clean:
rm -f $(FLOW_BINARY)