Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 1st, 2012  |  syntax: None  |  size: 0.92 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. GNUmakefile cannot compile bison and flex programs
  2. lex.yy.c: src/dplc/add_inp.flex bison.tab.c src/dplc/bison.tab.h
  3.            flex src/dplc/add_inp.flex  
  4.  
  5.      bison.tab.c: src/dplc/bison.y
  6.            bison -d -t src/dplc/bison.y
  7.  
  8.      a.exe: src/dplc/main.c lex.yy.c bison.tab.c
  9.             gcc src/dplc/main.c
  10.  
  11.  
  12.     clean:
  13.       rm src/dplc/bison.tab.c src/dplc/bison.tab.h src/dplc/lex.yy.c src/dplc/a.exe
  14.        
  15. make: *** No rule to make target `src/dplc/bison.y', needed by `bison.tab.c'.  Stop.
  16.        
  17. make: *** No rule to make target `src/dplc/bison.y', needed by `bison.tab.c'.  Stop.
  18.        
  19. CC=gcc
  20.   IDIR =src/dplc/
  21.   CFLAGS=-I$(IDIR)
  22.   a.exe: src/dplc/main.c lex.yy.c bison.tab.c
  23. $(CC) src/dplc/main.c $(CFLAGS) -I.
  24.     bison.tab.c: src/dplc/bison.y
  25. bison -d -t src/dplc/bison.y
  26.     lex.yy.c: src/dplc/add_inp.flex bison.tab.c bison.tab.h
  27. flex src/dplc/add_inp.flex  
  28.  
  29.     clean:
  30. rm bison.tab.c bison.tab.h lex.yy.c a.exe