blob: 3b011df7613dab24f6ac63e4a8e65b93544861ce (
plain) (
blame)
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
|
CC=gcc
CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic -O3
DBG_FLAGS=-Wall -g3 -D_FOOD_DEBUG -fsanitize=address -Og
SRC=src/*.c
.PHONY: all debug clean
all: food #eval
food: $(SRC) food.c
$(CC) $(CFLAGS) -o food $^ $(LIBS)
eval: $(SRC) eval.c
$(CC) $(CFLAGS) -o eval $^ $(LIBS)
debug: CFLAGS += $(DBG_FLAGS)
debug: all
clean:
rm -f *.o
rm -f food eval
# tests:
# $(MAKE) -C test
# clean-tests:
# $(MAKE) clean -C test
# install: $(TARGET)
# @cp -v $(TARGET) /usr/local/bin/$(TARGET)
# uninstall:
# @rm -v /usr/local/bin/$(TARGET)
|