fela

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

Makefile (421B)


      1 include config.mk
      2 
      3 SRC = parse.c lex.c types.c ast.c util.c
      4 OBJ = ${SRC:.c=.o}
      5 
      6 all: fela
      7 
      8 fela: ${OBJ}
      9 	${CC} -o fela ${OBJ} ${LIBS} 
     10 
     11 .c.o: 
     12 	${CC} ${CFLAGS} -c $<
     13 
     14 lex.c: lex.l
     15 	${LEX} ${LFLAGS} -o lex.c lex.l 
     16 parse.c: parse.y
     17 	${YACC} ${YFLAGS} -o parse.c parse.y 
     18 
     19 graph: fela
     20 	dot parse.gv -Tpdf | ${PDFREADER} -
     21 
     22 spec: spec.md
     23 	smu $< > spec.html
     24 
     25 clean: 
     26 	rm -rf fela lex.c parse.c parse.h *.gv *.pdf *.html *.o