comp

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

Makefile (225B)


      1 CFLAGS=-ggdb 
      2 
      3 all: lex
      4 
      5 y.tab.c: comp.y
      6 	yacc -td comp.y
      7 
      8 comp.o: y.tab.c
      9 	cc -DYYALLOC -DYYDEBUG y.tab.c -c -o comp.o ${CFLAGS}
     10 
     11 lex: lex.c comp.o
     12 	cc lex.c comp.o -o lex ${CFLAGS}
     13 
     14 clean:
     15 	rm -rf ./lex y.tab.h y.tab.c *.o