home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume18 / scene / part01 / Makefile next >
Makefile  |  1991-04-26  |  726b  |  41 lines

  1. # Hello, Emacs, please use -*- Fundamental -*- mode.
  2. #
  3. # Makefile for Scene
  4. #
  5.  
  6. CDEBUGFLAGS=
  7. CC=gcc
  8. #
  9. # Our favorite CFLAGS.  If you're not using gcc, you probably will want
  10. # to move the '-O' to CDEBUGFLAGS.  I am, however, and I want the optimizer
  11. # on at all times.
  12. #
  13. CFLAGS=${CDEBUGFLAGS} -O -fstrength-reduce -fcombine-regs -fforce-mem \
  14.     -fforce-addr -fdelayed-branch -fcaller-saves -finline-functions
  15.  
  16. #
  17. # I guess you can probably use "regular" lex here... why would you want to?
  18. #
  19. LEX=flex -b -Cfe
  20.  
  21. .l.c:
  22.     $(LEX) $*.l
  23.     rm -f $*.c
  24.     mv lex.yy.c $*.c
  25.  
  26. .c.o:
  27.     $(CC) $(CFLAGS) -c $*.c
  28.  
  29. all:    scene
  30.  
  31. scene:    scene.o
  32.     $(CC) -o scene scene.o
  33.  
  34. scene.o:    scene.c
  35.  
  36. scene.c:    scene.l
  37.  
  38. clean:
  39.     rm -f scene.c *.o scene *~ lex.backtrack
  40.  
  41.