blob: 3b011df7613dab24f6ac63e4a8e65b93544861ce (
plain) (
tree)
|
|
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)
|