Advertisement
cd62131

Makefile of calculator

Dec 6th, 2018
552
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.28 KB | None | 0 0
  1. override CFLAGS += -g -Wall -Wextra
  2. override LDFLAGS +=
  3. override LDLIBS += -lm
  4. all: z
  5. z: y.tab.c lex.yy.c
  6.     gcc $(CFLAGS) $(LDFLAGS) $(LDLIBS) -o $@ $<
  7. y.tab.c: z.y
  8.     bison -dy $<
  9. y.tab.h: y.tab.c
  10. lex.yy.c: z.lex y.tab.h
  11.     flex $<
  12. clean:
  13.     rm -f z y.tab.c y.tab.h lex.yy.c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement