blob: ea7c8405774c762e77adeb0201d399c6d8af56b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
PROJECT=dm
CC=gcc
CFLAGS=-std=c99
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
|