summaryrefslogtreecommitdiff
path: root/Makefile
blob: 85e0bb80b35ad224f469ce65d18f2aba597c12f7 (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
25
26
VER  = 0.0.0-alpha.0
LEX  = lex
YACC = yacc
CC   = cc

OBJ = properties-lexer.o

CFLAGS = -DVERSION=${VER}
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} ${CFLAGS} -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