home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume18
/
scene
/
part01
/
Makefile
next >
Wrap
Makefile
|
1991-04-26
|
726b
|
41 lines
# Hello, Emacs, please use -*- Fundamental -*- mode.
#
# Makefile for Scene
#
CDEBUGFLAGS=
CC=gcc
#
# Our favorite CFLAGS. If you're not using gcc, you probably will want
# to move the '-O' to CDEBUGFLAGS. I am, however, and I want the optimizer
# on at all times.
#
CFLAGS=${CDEBUGFLAGS} -O -fstrength-reduce -fcombine-regs -fforce-mem \
-fforce-addr -fdelayed-branch -fcaller-saves -finline-functions
#
# I guess you can probably use "regular" lex here... why would you want to?
#
LEX=flex -b -Cfe
.l.c:
$(LEX) $*.l
rm -f $*.c
mv lex.yy.c $*.c
.c.o:
$(CC) $(CFLAGS) -c $*.c
all: scene
scene: scene.o
$(CC) -o scene scene.o
scene.o: scene.c
scene.c: scene.l
clean:
rm -f scene.c *.o scene *~ lex.backtrack