summaryrefslogblamecommitdiffstats
path: root/Makefile
blob: 28066bddaf5785b22a796bded3826e728766a3a9 (plain) (tree)
1
2
3
4
5
6
7
8
9
      
 

                                                       
 
           
 
                       
 
                        
 

                                          
 


                                          


                                              

                             


                 
                                





                             
 

                                                 
 

                                       
CC=gcc

CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic 
DBG_FLAGS=-Wall -g -D_FOOD_DEBUG -fsanitize=address -O0

SRC=src/*.c

.PHONY: all debug clean

all: food cookbook #eval

food: $(SRC) food.c
	$(CC) $(CFLAGS) -o food $^ $(LIBS)

eval: $(SRC) eval.c
	$(CC) $(CFLAGS) -o eval $^ $(LIBS)

cookbook: $(SRC) cookbook.c
	$(CC) $(CFLAGS) -o cookbook $^ $(LIBS)

debug: CFLAGS += $(DBG_FLAGS)
debug: all

clean:
	rm -f *.o
	rm -f food eval cookbook

# 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)