Make configure automatically set paths for lex yacc and install dir and chenged linking order of libxspmif.a and libxspcm.a.
This commit is contained in:
parent
b1b0841625
commit
b0306b3425
|
|
@ -1,10 +1,15 @@
|
||||||
2004-01-10 Paolo Nenzi <p.nenzi@ieee.org>
|
2004-01-10 Paolo Nenzi <p.nenzi@ieee.org>
|
||||||
|
|
||||||
|
* configure.in
|
||||||
|
src/xspice/cmpp/Makefile src/xspice/cmpp/Makefile.in:
|
||||||
|
Make configure automatically set paths for lex yacc and
|
||||||
|
install dir (Stefan Jones <stefan.jones@multigig.com>).
|
||||||
|
|
||||||
* src/Makefile.am Makefile.am README.Tcl
|
* src/Makefile.am Makefile.am README.Tcl
|
||||||
src/xspice/README src/xspice/icm/README
|
src/xspice/README src/xspice/icm/README
|
||||||
src/xspice/icm/spice2poly/icm_spice2poly/README:
|
src/xspice/icm/spice2poly/icm_spice2poly/README:
|
||||||
Updated to reflect codemodel support is now complete
|
Updated to reflect codemodel support is now complete
|
||||||
(Stefan Jones <stefan.jones@multigig.com>)
|
(Stefan Jones <stefan.jones@multigig.com>).
|
||||||
|
|
||||||
* src/xspice/ipc/ipc.c:
|
* src/xspice/ipc/ipc.c:
|
||||||
Remove linux specific includes which are not needed
|
Remove linux specific includes which are not needed
|
||||||
|
|
|
||||||
10
configure.in
10
configure.in
|
|
@ -392,7 +392,7 @@ if test "$enable_ekv" = "yes"; then
|
||||||
AC_MSG_RESULT(Model EKV included)
|
AC_MSG_RESULT(Model EKV included)
|
||||||
AC_DEFINE(HAVE_EKV)
|
AC_DEFINE(HAVE_EKV)
|
||||||
EKVDIR="ekv"
|
EKVDIR="ekv"
|
||||||
EKVLIB="spicelib/devices/ekv/libekv.a"
|
EKVLIB="spicelib/devices/ekv/libekv.la"
|
||||||
else
|
else
|
||||||
EKVDIR=""
|
EKVDIR=""
|
||||||
EKVLIB=""
|
EKVLIB=""
|
||||||
|
|
@ -405,10 +405,11 @@ dnl Add new code models to the build by pointing to them here.
|
||||||
if test "$enable_xspice" = "yes"; then
|
if test "$enable_xspice" = "yes"; then
|
||||||
AC_MSG_RESULT(X-Spice features included)
|
AC_MSG_RESULT(X-Spice features included)
|
||||||
AC_DEFINE(XSPICE)
|
AC_DEFINE(XSPICE)
|
||||||
|
AC_PROG_YACC
|
||||||
|
AM_PROG_LEX
|
||||||
XSPICEDIR="xspice"
|
XSPICEDIR="xspice"
|
||||||
XSPICELIB1="$XSPICEDIR/xspice.o \
|
XSPICELIB1="$XSPICEDIR/cm/libcmxsp.a \
|
||||||
$XSPICEDIR/mif/libmifxsp.a \
|
$XSPICEDIR/mif/libmifxsp.a"
|
||||||
$XSPICEDIR/cm/libcmxsp.a"
|
|
||||||
XSPICELIB2="$XSPICEDIR/evt/libevtxsp.a \
|
XSPICELIB2="$XSPICEDIR/evt/libevtxsp.a \
|
||||||
$XSPICEDIR/enh/libenhxsp.a \
|
$XSPICEDIR/enh/libenhxsp.a \
|
||||||
$XSPICEDIR/ipc/libipcxsp.a \
|
$XSPICEDIR/ipc/libipcxsp.a \
|
||||||
|
|
@ -587,6 +588,7 @@ src/maths/sparse/Makefile \
|
||||||
src/misc/Makefile \
|
src/misc/Makefile \
|
||||||
src/xspice/Makefile \
|
src/xspice/Makefile \
|
||||||
src/xspice/cm/Makefile \
|
src/xspice/cm/Makefile \
|
||||||
|
src/xspice/cmpp/Makefile \
|
||||||
src/xspice/icm/makedefs \
|
src/xspice/icm/makedefs \
|
||||||
src/xspice/mif/Makefile \
|
src/xspice/mif/Makefile \
|
||||||
src/xspice/evt/Makefile \
|
src/xspice/evt/Makefile \
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
|
||||||
|
cmpp_OBJS = main.o pp_ifs.o pp_lst.o pp_mod.o \
|
||||||
|
read_ifs.o util.o writ_ifs.o \
|
||||||
|
ifs_yacc.o ifs_lex.o mod_yacc.o mod_lex.o
|
||||||
|
|
||||||
|
cmpp_GEN = ifs_yacc.c ifs_tok.h \
|
||||||
|
ifs_lex.c ifs_lex.h \
|
||||||
|
mod_lex.c mod_lex.h \
|
||||||
|
mod_yacc.c mod_tok.h
|
||||||
|
|
||||||
|
YACC = @YACC@ -d
|
||||||
|
|
||||||
|
CC = @CC@ @CFLAGS@
|
||||||
|
|
||||||
|
LEX = @LEX@ -t
|
||||||
|
|
||||||
|
all: cmpp
|
||||||
|
|
||||||
|
cmpp: $(cmpp_OBJS)
|
||||||
|
$(CC) -o cmpp $(cmpp_OBJS)
|
||||||
|
|
||||||
|
%.c : %.y
|
||||||
|
$(YACC) -p $(*:yacc=)yy $<
|
||||||
|
mv -f y.tab.c $*.c
|
||||||
|
mv -f y.tab.h $(*:yacc=)tok.h
|
||||||
|
|
||||||
|
%.c : %.l
|
||||||
|
$(LEX) -P$(*:lex=)yy $< > $@
|
||||||
|
|
||||||
|
ifs_lex.c : ifs_lex.l
|
||||||
|
$(LEX) -i -P$(*:lex=)yy $< > $@
|
||||||
|
|
||||||
|
install:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(cmpp_OBJS) $(cmpp_GEN) cmpp
|
||||||
Loading…
Reference in New Issue