home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d1xx
/
d156
/
flex.lha
/
Flex
/
Flex2
/
Makefile.diff
< prev
next >
Wrap
Makefile
|
1988-10-02
|
2KB
|
87 lines
3,14c3,18
< # the first time around use "make first_flex"
<
< SKELETON_FILE = \"/usr/local/lib/flex.skel\"
< F_SKELETON_FILE = \"/usr/local/lib/flex.fastskel\"
< SKELFLAGS = -DDEFAULT_SKELETON_FILE=$(SKELETON_FILE) \
< -DFAST_SKELETON_FILE=$(F_SKELETON_FILE)
< CFLAGS = -O
< LDFLAGS =
<
< FLEX_FLAGS = -ist
< FLEX = flex
<
---
> # modified for Amiga and Aztec C. uses bison instead of yacc
>
> # the first time around use "make first_flex"
>
> SKEL_FILE = ":lib/flex.skel"
> F_SKEL_FILE = ":lib/flex.fastskel"
> SKEL = -DDEFAULT_SKELETON_FILE=$(SKEL_FILE) -DFAST_SKELETON_FILE=$(F_SKEL_FILE)
> CC = cc
> LD = ln
> CFLAGS = -b -n -dAMIGA
> LDFLAGS = -g
> LIBS = -lgnu -lc
>
> FLEX_FLAGS = -ist
> FLEX = :c/flex
>
42c46,48
< cc $(CFLAGS) -o flex $(LDFLAGS) $(FLEXOBJS)
---
> $(LD) -o ram:flex $(LDFLAGS) $(FLEXOBJS) $(LIBS)
> cp ram:flex* .
> delete ram:flex*
49,51c55,58
< yacc -d parse.y
< @mv y.tab.c parse.c
< @mv y.tab.h parse.h
---
> - delete parse.c parse.h
> :c/bison -d parse.y
> rename parse.tab.c parse.c
> rename parse.tab.h parse.h
57,63c64,95
< $(FLEX) $(FLEX_FLAGS) scan.l >scan.c
<
< scan.o : scan.c parse.h
<
< main.o : main.c
< cc $(CFLAGS) -c $(SKELFLAGS) main.c
<
---
> $(FLEX) >scan.c $(FLEX_FLAGS) scan.l
>
> scan.o : scan.c parse.h flexskeldef.h flexdef.h
> cc $(CFLAGS) -Y150 -o scan.o scan.c
>
> #scan.o : scan.c.dist parse.h flexskeldef.h flexdef.h
> # cc $(CFLAGS) -Y150 -o scan.o scan.c.dist
>
> main.o : main.c flexdef.h
> cc $(CFLAGS) $(SKEL) main.c
>
> parse.o : parse.c flexdef.h
>
> tblcmp.o : tblcmp.c flexdef.h
> cc $(CFLAGS) -E160 tblcmp.c
>
> ccl.o : ccl.c flexdef.h
>
> dfa.o : dfa.c flexdef.h
>
> ecs.o : ecs.c flexdef.h
>
> misc.o : misc.c flexdef.h
>
> nfa.o : nfa.c flexdef.h
>
> scan.o : scan.c flexskeldef.h flexdef.h parse.h flexskelcom.h
>
> sym.o : sym.c flexdef.h
>
> yylex.o : yylex.c flexdef.h parse.h
>