-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (19 loc) · 855 Bytes
/
Makefile
File metadata and controls
28 lines (19 loc) · 855 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
CC=gcc
CFLAGS=-O2 -Wall -Wextra -Wpedantic -std=c99 -fshort-enums
all: bin/ltrep bin/compl bin/equiv bin/test
bin/ltrep: ltrep/ltrep.c bin/ltre.o | bin/
$(CC) $(CFLAGS) -Wno-parentheses -Wno-unused-value -Wno-unused-parameter -I./ $^ -o $@
bin/compl: examples/compl.c bin/ltre.o | bin/
$(CC) $(CFLAGS) -Wno-parentheses -I./ $^ -o $@
bin/equiv: examples/equiv.c bin/ltre.o | bin/
$(CC) $(CFLAGS) -Wno-parentheses -I./ $^ -o $@
bin/synth: examples/synth.c bin/ltre.o | bin/
$(CC) $(CFLAGS) -Wno-parentheses -I./ $^ -o $@
bin/test: test.c bin/ltre.o | bin/
$(CC) $(CFLAGS) -Wno-parentheses -Wno-missing-field-initializers $^ -o $@
bin/ltre.o: ltre.c ltre.h | bin/
$(CC) $(CFLAGS) -Wno-parentheses -Wno-sign-compare -Wno-missing-field-initializers -Wno-implicit-fallthrough -Wno-bool-operation -c $< -o $@
bin/:
mkdir bin/
clean:
rm -rf bin/