blob: 03aa111ccbc25ad408bac77d06c3aa479f27cb98 (
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
|
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
|