PROJECT=dm CC=gcc CFLAGS= SOURCES=$(PROJECT)_parser.c darray.c tokenizer.c syntax.c mtable.c OBJECTS=$(SOURCES:.c=.o) all: clean ragel $(OBJECTS) $(PROJECT) $(PROJECT): $(CC) $(CFLAGS) $(OBJECTS) $(PROJECT).c -o $(PROJECT) ragel: ragel $(PROJECT)_parser.ragel %.o: %.c $(CC) $(CFLAGS) -c $< clean: rm -f $(PROJECT) rm -f *.o leak: valgrind --leak-check=full --track-origins=yes --log-file=log.txt ./dm -f test/test.bin -m test/one_byte.dm #valgrind --track-origins=yes --log-file=log.txt ./dm -f test/test.bin -m test/one_byte.dm