Build gcc library of libfl.
This commit is contained in:
parent
4033ccc08d
commit
2bb759206f
3 changed files with 27 additions and 9 deletions
|
@ -17,7 +17,7 @@
|
||||||
CFLAGS = @CFLAGS@
|
CFLAGS = @CFLAGS@
|
||||||
CPPFLAGS = @CPPFLAGS@
|
CPPFLAGS = @CPPFLAGS@
|
||||||
DEFS = @DEFS@
|
DEFS = @DEFS@
|
||||||
LDFLAGS = -stack 256k
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
|
|
||||||
# Installation targeting. Files will be installed under the tree
|
# Installation targeting. Files will be installed under the tree
|
||||||
|
@ -50,8 +50,8 @@ VPATH = @srcdir@
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
YACC = @YACC@
|
YACC = @YACC@
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
AR = ar
|
AR = @AR@
|
||||||
RANLIB = true
|
RANLIB = @RANLIB@
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
INSTALL_DATA = @INSTALL_DATA@
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
|
@ -94,6 +94,7 @@ all: $(FLEX)
|
||||||
|
|
||||||
$(FLEX): .bootstrap $(OBJECTS) $(FLEXLIB)
|
$(FLEX): .bootstrap $(OBJECTS) $(FLEXLIB)
|
||||||
$(CC) $(CFLAGS) -o $(FLEX) $(LDFLAGS) $(OBJECTS) $(FLEXLIB) $(LIBS)
|
$(CC) $(CFLAGS) -o $(FLEX) $(LDFLAGS) $(OBJECTS) $(FLEXLIB) $(LIBS)
|
||||||
|
install -S256k $(FLEX)
|
||||||
|
|
||||||
.bootstrap: initscan.c
|
.bootstrap: initscan.c
|
||||||
@rm -f scan.c
|
@rm -f scan.c
|
||||||
|
@ -164,15 +165,16 @@ $(FLEXLIB): $(LIBOBJS)
|
||||||
$(FLEX).man: flex.1
|
$(FLEX).man: flex.1
|
||||||
cd $(srcdir) && nroff -man flex.1 >$(FLEX).man
|
cd $(srcdir) && nroff -man flex.1 >$(FLEX).man
|
||||||
|
|
||||||
install: $(FLEX) $(FLEXLIB) installdirs install.$(INSTALLMAN)
|
install: $(FLEX) installlib installdirs install.$(INSTALLMAN)
|
||||||
$(INSTALL_PROGRAM) $(FLEX) $(bindir)/$(FLEX)
|
$(INSTALL_PROGRAM) $(FLEX) $(bindir)/$(FLEX)
|
||||||
@rm -f $(bindir)/$(FLEX)++
|
@rm -f $(bindir)/$(FLEX)++
|
||||||
cd $(bindir) && $(LN_S) $(FLEX) $(FLEX)++
|
cd $(bindir) && $(LN_S) $(FLEX) $(FLEX)++
|
||||||
$(INSTALL_DATA) $(FLEXLIB) $(libdir)/$(FLEXLIB)
|
|
||||||
$(INSTALL_DATA) $(FLEXLIB) /usr/lib/i386/
|
|
||||||
-cd $(libdir) && $(RANLIB) $(FLEXLIB)
|
|
||||||
$(INSTALL_DATA) $(srcdir)/FlexLexer.h $(includedir)/FlexLexer.h
|
$(INSTALL_DATA) $(srcdir)/FlexLexer.h $(includedir)/FlexLexer.h
|
||||||
|
|
||||||
|
installlib: $(FLEXLIB)
|
||||||
|
$(INSTALL_DATA) $(FLEXLIB) $(libdir)/$(FLEXLIB)
|
||||||
|
-cd $(libdir) && $(RANLIB) $(FLEXLIB)
|
||||||
|
|
||||||
# Note, the following rules delete any vestigial flexdoc installed
|
# Note, the following rules delete any vestigial flexdoc installed
|
||||||
# for a prior flex release.
|
# for a prior flex release.
|
||||||
install.man: flex.1
|
install.man: flex.1
|
||||||
|
|
|
@ -1,5 +1,20 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
CC=cc /bin/sh ./configure --prefix=/usr && make all
|
|
||||||
|
CCACHE=config.cache
|
||||||
|
rm -f $CCACHE
|
||||||
|
RANLIB=true AR=ar CONFIG_SHELL=/bin/bigsh CC=cc /bin/bigsh ./configure --prefix=/usr
|
||||||
|
make clean all
|
||||||
|
|
||||||
if [ "$1" != build ]
|
if [ "$1" != build ]
|
||||||
then make install
|
then make install
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f /usr/gnu/bin/gcc ]
|
||||||
|
then PATH=/usr/gnu/bin:$PATH
|
||||||
|
rm -f $CCACHE
|
||||||
|
CC=gcc CONFIG_SHELL=/bin/bigsh AR=gar /bin/bigsh ./configure --prefix=/usr/local/gnu
|
||||||
|
make clean libfl.a
|
||||||
|
if [ "$1" != build ]
|
||||||
|
then make installlib
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
1
commands/flex-2.5.4/configure
vendored
1
commands/flex-2.5.4/configure
vendored
|
@ -1447,6 +1447,7 @@ sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
|
||||||
s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
|
s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
|
||||||
$ac_vpsub
|
$ac_vpsub
|
||||||
$extrasub
|
$extrasub
|
||||||
|
s%@AR@%$AR%g
|
||||||
s%@CFLAGS@%$CFLAGS%g
|
s%@CFLAGS@%$CFLAGS%g
|
||||||
s%@CPPFLAGS@%$CPPFLAGS%g
|
s%@CPPFLAGS@%$CPPFLAGS%g
|
||||||
s%@CXXFLAGS@%$CXXFLAGS%g
|
s%@CXXFLAGS@%$CXXFLAGS%g
|
||||||
|
|
Loading…
Reference in a new issue