aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 87cd3056deacc70f78df93cf687007a8c66e20f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
LEX  = lex
YACC = yacc
CC   = cc

OBJ = properties-lexer.o

LFLAGS = -ll


all: properties
#	${CC} properties-lexer.c properties-parser.c -o properties -ll -ly

properties-lexer.o: properties.l
	${LEX} properties.l
	@mv lex.yy.c properties-lexer.c
	${CC} -c properties-lexer.c

properties: ${OBJ}
	${CC} ${OBJ} -o $@ ${LFLAGS}

clean:
	@rm -f ${OBJ} *.core a.out
	@rm -f properties-lexer.c lex.*
	@rm -f properties