Remote changes at Thu Aug 24 17:24:48 EDT 2017 by chuan on vivaldi

This commit is contained in:
Chuan Chen 2017-08-24 17:24:48 -04:00
parent 87a88be5d6
commit 77da51d416
19 changed files with 3456 additions and 183 deletions

1236
database/database.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -6,9 +6,9 @@
# Be aware that running scripts/configure again will overwrite
# any changes!
SHELL = /bin/sh
SHELL = /bin/bash
prefix = /usr/local
prefix = /home/chuan/Desktop/magic_install
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
libdir = ${exec_prefix}/lib
@ -16,7 +16,7 @@ mandir = ${prefix}/share/man
SCRIPTS = ${MAGICDIR}/scripts
INSTALL = /bin/install -c
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL}
@ -49,26 +49,26 @@ CP = cp
AR = ar
ARFLAGS = crv
LINK = ld -r
LD = /bin/ld
LD = /usr/bin/ld
M4 = @M4@
RANLIB = ranlib
SHDLIB_EXT = .so
LDDL_FLAGS = ${LDFLAGS} -shared -Wl,-soname,$@ -Wl,--version-script=${MAGICDIR}/magic/symbol.map
LD_RUN_PATH =
LIB_SPECS = -L/usr/lib64 -ltk8.6 -L/usr/lib64 -ltcl8.6
LIB_SPECS = -L/usr/lib/x86_64-linux-gnu -ltk8.6 -L/usr/lib/x86_64-linux-gnu -ltcl8.6
WISH_EXE = /usr/bin/wish
TCL_LIB_DIR = /usr/lib
MAGIC_VERSION = 8.2
MAGIC_REVISION = 0
MAGIC_REVISION = 12
CC = gcc
CPP = /scripts/preproc.py
CXX = g++
CPPFLAGS = -I. -I${MAGICDIR}
DFLAGS = -DCAD_DIR=\"${LIBDIR}\" -DBIN_DIR=\"${BINDIR}\" -DTCL_DIR=\"${TCLDIR}\" -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DMAGIC_VERSION=\"8.2\" -DMAGIC_REVISION=\"0\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHAVE_SETENV=1 -DHAVE_PUTENV=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_PATHS_H=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DFILE_LOCKS=1 -DCALMA_MODULE=1 -DCIF_MODULE=1 -DX11_BACKING_STORE=1 -DPLOT_MODULE=1 -DLEF_MODULE=1 -DROUTE_MODULE=1 -DUSE_NEW_MACROS=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DVECTOR_FONTS=1 -DHAVE_LIBCAIRO=1 -DMAGIC_WRAPPER=1 -DTHREE_D=1 -Dlinux=1 -DSYSV=1 -DISC=1 -DNDEBUG -DGCORE=\"/bin/gcore\"
DFLAGS = -DCAD_DIR=\"${LIBDIR}\" -DBIN_DIR=\"${BINDIR}\" -DTCL_DIR=\"${TCLDIR}\" -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DMAGIC_VERSION=\"8.2\" -DMAGIC_REVISION=\"12\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHAVE_SETENV=1 -DHAVE_PUTENV=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_PATHS_H=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DFILE_LOCKS=1 -DCALMA_MODULE=1 -DCIF_MODULE=1 -DX11_BACKING_STORE=1 -DPLOT_MODULE=1 -DLEF_MODULE=1 -DROUTE_MODULE=1 -DUSE_NEW_MACROS=1 -DVECTOR_FONTS=1 -DHAVE_LIBCAIRO=1 -DMAGIC_WRAPPER=1 -Dlinux=1 -DSYSV=1 -DISC=1 -DNDEBUG -DGCORE=\"/usr/bin/gcore\"
DFLAGS += -DSHDLIB_EXT=\".so\"
CFLAGS = -g -m64 -fPIC -Wimplicit-int -fPIC
CFLAGS = -g -m64 -fPIC -Wimplicit-int -fPIC -I/usr/include/tcl8.6/tk-private/generic -I/usr/include/tcl8.6
READLINE_DEFS =
READLINE_LIBS =
@ -77,10 +77,10 @@ DEPEND_FILE = Depend
DEPEND_FLAG = -MM
EXEEXT =
GR_CFLAGS =
GR_DFLAGS = -DX11 -DXLIB -DOGL -DCAIRO -DNDEBUG
GR_LIBS = -lX11 -lGL -lGLU -lXi -lXmu -lXext -lm -lcairo -lfontconfig -lfreetype -lstdc++ ${X11_LDFLAGS}
GR_SRCS = ${TK_SRCS} ${TOGL_SRCS} ${TOGL_SRCS} ${TKCOMMON_SRCS}
GR_CFLAGS = -I/usr/include
GR_DFLAGS = -DX11 -DXLIB -DCAIRO -DNDEBUG
GR_LIBS = -lX11 -lcairo -lfontconfig -lfreetype ${X11_LDFLAGS}
GR_SRCS = ${TK_SRCS} ${TOGL_SRCS} ${TKCOMMON_SRCS}
GR_HELPER_SRCS =
GR_HELPER_PROG =

View File

@ -117,6 +117,7 @@ static char *grDisplayTypes[] = {
extern bool x11SetDisplay();
extern bool oglSetDisplay();
extern bool nullSetDisplay();
extern bool cairoSetDisplay();
static bool (*(grInitProcs[]))() = {
#ifdef X11

View File

@ -23,7 +23,7 @@
#include <GL/gl.h>
#include <GL/glx.h>
*/
#include <Cairo/cairo.h>
#include <CAIRO/cairo.h>
#include "tcltk/tclmagic.h"
#include "utils/main.h"

View File

@ -11,7 +11,7 @@
//#include <GL/gl.h>
//#include <GL/glx.h>
#include <CAIRO/Cairo.h>
#include <CAIRO/cairo.h>
#include "tcltk/tclmagic.h"
#include "utils/magic.h"

246
install.log Normal file
View File

@ -0,0 +1,246 @@
make[1]: Entering directory `/home/chuan/Desktop/magic-8.2'
./scripts/mkdirs /home/chuan/Desktop/magic_install/bin /home/chuan/Desktop/magic_install/share/man \
/home/chuan/Desktop/magic_install/lib/magic/sys /home/chuan/Desktop/magic_install/lib/magic/tcl /home/chuan/Desktop/magic_install/lib/magic/tcl/bitmaps
mkdir /home/chuan/Desktop/magic_install/bin
mkdir /home/chuan/Desktop/magic_install/share
mkdir /home/chuan/Desktop/magic_install/share/man
mkdir /home/chuan/Desktop/magic_install/lib
mkdir /home/chuan/Desktop/magic_install/lib/magic
mkdir /home/chuan/Desktop/magic_install/lib/magic/sys
mkdir /home/chuan/Desktop/magic_install/lib/magic/tcl
mkdir /home/chuan/Desktop/magic_install/lib/magic/tcl/bitmaps
for dir in windows doc scmos graphics tcltk magic net2ir tcltk; do \
(cd $dir && make install-tcl); done
make[2]: Entering directory `/home/chuan/Desktop/magic-8.2/windows'
--- installing glyphs to /home/chuan/Desktop/magic_install/lib/magic/sys
for i in windows7.glyphs windows11.glyphs windows14.glyphs windows22.glyphs vfont.B.12 vfont.I.12 vfont.R.8; do \
(cd /home/chuan/Desktop/magic_install/lib/magic/sys && rm -f $i); \
cp $i /home/chuan/Desktop/magic_install/lib/magic/sys; done
make[2]: Leaving directory `/home/chuan/Desktop/magic-8.2/windows'
make[2]: Entering directory `/home/chuan/Desktop/magic-8.2/doc'
cd latexfiles && make install
make[3]: Entering directory `/home/chuan/Desktop/magic-8.2/doc/latexfiles'
../../scripts/mkdirs /home/chuan/Desktop/magic_install/lib/magic/doc
mkdir /home/chuan/Desktop/magic_install/lib/magic/doc
cp ../psfiles/tut1.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tut1.ps
cp ../psfiles/tut2.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tut2.ps
cp ../psfiles/tut3.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tut3.ps
cp ../psfiles/tut4.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tut4.ps
cp ../psfiles/tut5.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tut5.ps
cp ../psfiles/tut6.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tut6.ps
cp ../psfiles/tut7.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tut7.ps
cp ../psfiles/tut8.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tut8.ps
cp ../psfiles/tut9.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tut9.ps
cp ../psfiles/tut10.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tut10.ps
cp ../psfiles/tut11.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tut11.ps
cp ../psfiles/maint1.ps /home/chuan/Desktop/magic_install/lib/magic/doc/maint1.ps
cp ../psfiles/maint2.ps /home/chuan/Desktop/magic_install/lib/magic/doc/maint2.ps
cp ../psfiles/maint3.ps /home/chuan/Desktop/magic_install/lib/magic/doc/maint3.ps
cp ../psfiles/maint4.ps /home/chuan/Desktop/magic_install/lib/magic/doc/maint4.ps
cp ../psfiles/introduction.ps /home/chuan/Desktop/magic_install/lib/magic/doc/introduction.ps
cp ../psfiles/copyright.ps /home/chuan/Desktop/magic_install/lib/magic/doc/copyright.ps
cp ../psfiles/addendum6_5.ps /home/chuan/Desktop/magic_install/lib/magic/doc/addendum6_5.ps
cp ../psfiles/tutscm1.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tutscm1.ps
cp ../psfiles/tutscm2.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tutscm2.ps
cp ../psfiles/tutscm3.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tutscm3.ps
cp ../psfiles/tutscm4.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tutscm4.ps
cp ../psfiles/tuttcl1.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tuttcl1.ps
cp ../psfiles/tuttcl2.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tuttcl2.ps
cp ../psfiles/tuttcl3.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tuttcl3.ps
cp ../psfiles/tuttcl4.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tuttcl4.ps
cp ../psfiles/tuttcl5.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tuttcl5.ps
cp ../psfiles/tutwrl1.ps /home/chuan/Desktop/magic_install/lib/magic/doc/tutwrl1.ps
make[3]: Leaving directory `/home/chuan/Desktop/magic-8.2/doc/latexfiles'
cd man && make install
make[3]: Entering directory `/home/chuan/Desktop/magic-8.2/doc/man'
../../scripts/mkdirs /home/chuan/Desktop/magic_install/share/man/man1
mkdir /home/chuan/Desktop/magic_install/share/man/man1
cp ext2spice.1 /home/chuan/Desktop/magic_install/share/man/man1/ext2spice.1
cp extcheck.1 /home/chuan/Desktop/magic_install/share/man/man1/extcheck.1
cp ext2sim.1 /home/chuan/Desktop/magic_install/share/man/man1/ext2sim.1
cp magic.1 /home/chuan/Desktop/magic_install/share/man/man1/magic.1
../../scripts/mkdirs /home/chuan/Desktop/magic_install/share/man/man5
mkdir /home/chuan/Desktop/magic_install/share/man/man5
cp cmap.5 /home/chuan/Desktop/magic_install/share/man/man5/cmap.5
cp displays.5 /home/chuan/Desktop/magic_install/share/man/man5/displays.5
cp dlys.5 /home/chuan/Desktop/magic_install/share/man/man5/dlys.5
cp dstyle.5 /home/chuan/Desktop/magic_install/share/man/man5/dstyle.5
cp ext.5 /home/chuan/Desktop/magic_install/share/man/man5/ext.5
cp glyphs.5 /home/chuan/Desktop/magic_install/share/man/man5/glyphs.5
cp mag.5 /home/chuan/Desktop/magic_install/share/man/man5/mag.5
cp net.5 /home/chuan/Desktop/magic_install/share/man/man5/net.5
cp sim.5 /home/chuan/Desktop/magic_install/share/man/man5/sim.5
make[3]: Leaving directory `/home/chuan/Desktop/magic-8.2/doc/man'
cd tutcells && make install
make[3]: Entering directory `/home/chuan/Desktop/magic-8.2/doc/tutcells'
../../scripts/mkdirs /home/chuan/Desktop/magic_install/lib/magic/tutorial
mkdir /home/chuan/Desktop/magic_install/lib/magic/tutorial
cp m3a.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/m3a.mag
cp maint2a.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/maint2a.mag
cp tut1.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut1.mag
cp tut2a.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut2a.mag
cp tut2b.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut2b.mag
cp tut2c.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut2c.mag
cp tut2d.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut2d.mag
cp tut3a.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut3a.mag
cp tut3b.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut3b.mag
cp tut3c.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut3c.mag
cp tut3d.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut3d.mag
cp tut3e.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut3e.mag
cp tut3f.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut3f.mag
cp tut3g.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut3g.mag
cp tut3h.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut3h.mag
cp tut4a.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut4a.mag
cp tut4x.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut4x.mag
cp tut4y.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut4y.mag
cp tut4z.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut4z.mag
cp tut5a.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut5a.mag
cp tut5b.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut5b.mag
cp tut6a.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut6a.mag
cp tut6b.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut6b.mag
cp tut6c.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut6c.mag
cp tut6x.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut6x.mag
cp tut6y.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut6y.mag
cp tut7a.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut7a.mag
cp tut7b.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut7b.mag
cp tut7b.net /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut7b.net
cp tut7c.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut7c.mag
cp tut7d.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut7d.mag
cp tut7d.net /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut7d.net
cp tut8a.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut8a.mag
cp tut8b.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut8b.mag
cp tut8c.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut8c.mag
cp tut8d.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut8d.mag
cp tut8e.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut8e.mag
cp tut8f.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut8f.mag
cp tut8g.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut8g.mag
cp tut8h.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut8h.mag
cp tut8i.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut8i.mag
cp tut8j.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut8j.mag
cp tut8k.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut8k.mag
cp tut8l.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut8l.mag
cp tut8m.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut8m.mag
cp tut8n.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut8n.mag
cp tut8r.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut8r.mag
cp tut9a.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut9a.mag
cp tut9b.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut9b.mag
cp tut9x.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut9x.mag
cp tut9y.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut9y.mag
cp tut11a.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut11a.mag
cp tut11b.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut11b.mag
cp tut11c.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut11c.mag
cp tut11d.mag /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut11d.mag
cp tut11a.al /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut11a.al
cp tut11a.cmd /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut11a.cmd
cp tut11a.ext /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut11a.ext
cp tut11a.nodes /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut11a.nodes
cp tut11a.sim /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut11a.sim
cp tut11b.ext /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut11b.ext
cp tut11c.ext /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut11c.ext
cp tut11d.ext /home/chuan/Desktop/magic_install/lib/magic/tutorial/tut11d.ext
make[3]: Leaving directory `/home/chuan/Desktop/magic-8.2/doc/tutcells'
cd html && make install
make[3]: Entering directory `/home/chuan/Desktop/magic-8.2/doc/html'
../../scripts/mkdirs /home/chuan/Desktop/magic_install/lib/magic/doc/html
mkdir /home/chuan/Desktop/magic_install/lib/magic/doc/html
tar cf - . | (cd /home/chuan/Desktop/magic_install/lib/magic/doc/html; tar xf - )
make[3]: Leaving directory `/home/chuan/Desktop/magic-8.2/doc/html'
make[2]: Leaving directory `/home/chuan/Desktop/magic-8.2/doc'
make[2]: Entering directory `/home/chuan/Desktop/magic-8.2/scmos'
cd cif_template; make clean; make;
make[3]: Entering directory `/home/chuan/Desktop/magic-8.2/scmos/cif_template'
rm -f objs/CIFin objs/CIFout objs/IBMCIFin objs/IBMCIFout objs/TMCIFin \
objs/TMCIFout objs/SUBCIFin objs/SUBCIFout
make[3]: Leaving directory `/home/chuan/Desktop/magic-8.2/scmos/cif_template'
make[3]: Entering directory `/home/chuan/Desktop/magic-8.2/scmos/cif_template'
rm -f objs/CIFin
/scripts/preproc.py -DSTANDARD cifin.c | sed -e "s/\\\\/\\\\\\\\/" -e "/^#/D" -e "s/(gen )/(gen)/" -e "s/(nowell )/(nowell)/" -e "s/(nwell )/(nwell)/" -e "s/(pwell )/(pwell)/" > objs/CIFin
rm -f objs/CIFout
/scripts/preproc.py -DSTANDARD cifout.c | sed -e "s/\\\\/\\\\\\\\/" -e "/^#/D" -e "s/(gen )/(gen)/" -e "s/(nowell )/(nowell)/" -e "s/(nwell )/(nwell)/" -e "s/(pwell )/(pwell)/" > objs/CIFout
rm -f objs/IBMCIFin
/scripts/preproc.py -DIBM cifin.c | sed -e "s/\\\\/\\\\\\\\/" -e "/^#/D" -e "s/(gen )/(gen)/" -e "s/(nowell )/(nowell)/" -e "s/(nwell )/(nwell)/" -e "s/(pwell )/(pwell)/" > objs/IBMCIFin
rm -f objs/IBMCIFout
/scripts/preproc.py -DIBM cifout.c | sed -e "s/\\\\/\\\\\\\\/" -e "/^#/D" -e "s/(gen )/(gen)/" -e "s/(nowell )/(nowell)/" -e "s/(nwell )/(nwell)/" -e "s/(pwell )/(pwell)/" > objs/IBMCIFout
rm -f objs/TMCIFin
/scripts/preproc.py -DTIGHTMETAL cifin.c | sed -e "s/\\\\/\\\\\\\\/" -e "/^#/D" -e "s/(gen )/(gen)/" -e "s/(nowell )/(nowell)/" -e "s/(nwell )/(nwell)/" -e "s/(pwell )/(pwell)/" > objs/TMCIFin
rm -f objs/TMCIFout
/scripts/preproc.py -DTIGHTMETAL cifout.c | sed -e "s/\\\\/\\\\\\\\/" -e "/^#/D" -e "s/(gen )/(gen)/" -e "s/(nowell )/(nowell)/" -e "s/(nwell )/(nwell)/" -e "s/(pwell )/(pwell)/" > objs/TMCIFout
rm -f objs/SUBCIFin
/scripts/preproc.py -DSUBMICRON cifin.c | sed -e "s/\\\\/\\\\\\\\/" -e "/^#/D" -e "s/(gen )/(gen)/" -e "s/(nowell )/(nowell)/" -e "s/(nwell )/(nwell)/" -e "s/(pwell )/(pwell)/" > objs/SUBCIFin
rm -f objs/SUBCIFout
/scripts/preproc.py -DSUBMICRON cifout.c | sed -e "s/\\\\/\\\\\\\\/" -e "/^#/D" -e "s/(gen )/(gen)/" -e "s/(nowell )/(nowell)/" -e "s/(nwell )/(nwell)/" -e "s/(pwell )/(pwell)/" > objs/SUBCIFout
make[3]: Leaving directory `/home/chuan/Desktop/magic-8.2/scmos/cif_template'
make[2]: Leaving directory `/home/chuan/Desktop/magic-8.2/scmos'
make[2]: Entering directory `/home/chuan/Desktop/magic-8.2/graphics'
for i in bw.glyphs color.glyphs; do \
rm -f /home/chuan/Desktop/magic_install/lib/magic/sys/$i; \
cp $i /home/chuan/Desktop/magic_install/lib/magic/sys; done
for i in FreeSerif.pt3 FreeSans.pt3 FreeMono.pt3; do \
rm -f /home/chuan/Desktop/magic_install/lib/magic/sys/$i; \
cp $i /home/chuan/Desktop/magic_install/lib/magic/sys; done
make[2]: Leaving directory `/home/chuan/Desktop/magic-8.2/graphics'
make[2]: Entering directory `/home/chuan/Desktop/magic-8.2/tcltk'
rm -f /home/chuan/Desktop/magic_install/bin/magic.sh /home/chuan/Desktop/magic_install/bin/magic
cp magic.sh /home/chuan/Desktop/magic_install/bin/magic
(cd /home/chuan/Desktop/magic_install/bin; chmod 0755 magic)
rm -f /home/chuan/Desktop/magic_install/bin/ext2spice
cp ext2spice.sh /home/chuan/Desktop/magic_install/bin/ext2spice
(cd /home/chuan/Desktop/magic_install/bin; chmod 0755 ext2spice)
rm -f /home/chuan/Desktop/magic_install/bin/ext2sim
cp ext2sim.sh /home/chuan/Desktop/magic_install/bin/ext2sim
(cd /home/chuan/Desktop/magic_install/bin; chmod 0755 ext2sim)
rm -f /home/chuan/Desktop/magic_install/lib/magic/tcl/magicexec
cp magicexec /home/chuan/Desktop/magic_install/lib/magic/tcl/magicexec
rm -f /home/chuan/Desktop/magic_install/lib/magic/tcl/magicdnull
cp magicdnull /home/chuan/Desktop/magic_install/lib/magic/tcl/magicdnull
(cd /home/chuan/Desktop/magic_install/lib/magic/tcl; rm -f tkcon.tcl tkshell.tcl wrapper.tcl console.tcl techbuilder.tcl cellmgr.tcl libmgr.tcl texthelper.tcl tools.tcl mazeroute.tcl strip_reflibs.tcl drc.tcl toolkit.tcl toolkit_rev0.tcl bsitools.tcl socketcmd.tcl magic.tcl)
for i in tkcon.tcl tkshell.tcl wrapper.tcl console.tcl techbuilder.tcl cellmgr.tcl libmgr.tcl texthelper.tcl tools.tcl mazeroute.tcl strip_reflibs.tcl drc.tcl toolkit.tcl toolkit_rev0.tcl bsitools.tcl socketcmd.tcl magic.tcl; do \
cp $i /home/chuan/Desktop/magic_install/lib/magic/tcl; done
(cd /home/chuan/Desktop/magic_install/lib/magic/tcl; chmod 0755 tkcon.tcl tkshell.tcl)
make[2]: Leaving directory `/home/chuan/Desktop/magic-8.2/tcltk'
make[2]: Entering directory `/home/chuan/Desktop/magic-8.2/magic'
rm -f /home/chuan/Desktop/magic_install/lib/magic/tcl/tclmagic.so
cp tclmagic.so /home/chuan/Desktop/magic_install/lib/magic/tcl/tclmagic.so
rm -f /home/chuan/Desktop/magic_install/lib/magic/sys/.magicrc
cp proto.magicrc /home/chuan/Desktop/magic_install/lib/magic/sys/.magicrc
rm -f /home/chuan/Desktop/magic_install/lib/magic/sys/.initrc
cp proto.initrc /home/chuan/Desktop/magic_install/lib/magic/sys/.initrc
rm -f /home/chuan/Desktop/magic_install/lib/magic/sys/magicps.pro
cp magicps.pro /home/chuan/Desktop/magic_install/lib/magic/sys/magicps.pro
rm -f /home/chuan/Desktop/magic_install/lib/magic/tcl/bitmaps/up.xbm
cp bitmaps/up.xbm /home/chuan/Desktop/magic_install/lib/magic/tcl/bitmaps/up.xbm
rm -f /home/chuan/Desktop/magic_install/lib/magic/tcl/bitmaps/down.xbm
cp bitmaps/down.xbm /home/chuan/Desktop/magic_install/lib/magic/tcl/bitmaps/down.xbm
rm -f /home/chuan/Desktop/magic_install/lib/magic/tcl/bitmaps/left.xbm
cp bitmaps/left.xbm /home/chuan/Desktop/magic_install/lib/magic/tcl/bitmaps/left.xbm
rm -f /home/chuan/Desktop/magic_install/lib/magic/tcl/bitmaps/right.xbm
cp bitmaps/right.xbm /home/chuan/Desktop/magic_install/lib/magic/tcl/bitmaps/right.xbm
rm -f /home/chuan/Desktop/magic_install/lib/magic/tcl/bitmaps/zoom.xbm
cp bitmaps/zoom.xbm /home/chuan/Desktop/magic_install/lib/magic/tcl/bitmaps/zoom.xbm
rm -f /home/chuan/Desktop/magic_install/lib/magic/tcl/bitmaps/lock.xbm
cp bitmaps/lock.xbm /home/chuan/Desktop/magic_install/lib/magic/tcl/bitmaps/lock.xbm
make[2]: Leaving directory `/home/chuan/Desktop/magic-8.2/magic'
make[2]: Entering directory `/home/chuan/Desktop/magic-8.2/net2ir'
echo "Nothing to do here"
Nothing to do here
make[2]: Leaving directory `/home/chuan/Desktop/magic-8.2/net2ir'
make[2]: Entering directory `/home/chuan/Desktop/magic-8.2/tcltk'
rm -f /home/chuan/Desktop/magic_install/bin/magic.sh /home/chuan/Desktop/magic_install/bin/magic
cp magic.sh /home/chuan/Desktop/magic_install/bin/magic
(cd /home/chuan/Desktop/magic_install/bin; chmod 0755 magic)
rm -f /home/chuan/Desktop/magic_install/bin/ext2spice
cp ext2spice.sh /home/chuan/Desktop/magic_install/bin/ext2spice
(cd /home/chuan/Desktop/magic_install/bin; chmod 0755 ext2spice)
rm -f /home/chuan/Desktop/magic_install/bin/ext2sim
cp ext2sim.sh /home/chuan/Desktop/magic_install/bin/ext2sim
(cd /home/chuan/Desktop/magic_install/bin; chmod 0755 ext2sim)
rm -f /home/chuan/Desktop/magic_install/lib/magic/tcl/magicexec
cp magicexec /home/chuan/Desktop/magic_install/lib/magic/tcl/magicexec
rm -f /home/chuan/Desktop/magic_install/lib/magic/tcl/magicdnull
cp magicdnull /home/chuan/Desktop/magic_install/lib/magic/tcl/magicdnull
(cd /home/chuan/Desktop/magic_install/lib/magic/tcl; rm -f tkcon.tcl tkshell.tcl wrapper.tcl console.tcl techbuilder.tcl cellmgr.tcl libmgr.tcl texthelper.tcl tools.tcl mazeroute.tcl strip_reflibs.tcl drc.tcl toolkit.tcl toolkit_rev0.tcl bsitools.tcl socketcmd.tcl magic.tcl)
for i in tkcon.tcl tkshell.tcl wrapper.tcl console.tcl techbuilder.tcl cellmgr.tcl libmgr.tcl texthelper.tcl tools.tcl mazeroute.tcl strip_reflibs.tcl drc.tcl toolkit.tcl toolkit_rev0.tcl bsitools.tcl socketcmd.tcl magic.tcl; do \
cp $i /home/chuan/Desktop/magic_install/lib/magic/tcl; done
(cd /home/chuan/Desktop/magic_install/lib/magic/tcl; chmod 0755 tkcon.tcl tkshell.tcl)
make[2]: Leaving directory `/home/chuan/Desktop/magic-8.2/tcltk'
make[1]: Leaving directory `/home/chuan/Desktop/magic-8.2'

0
magic/proto.magicrc Normal file
View File

1253
make.log Normal file

File diff suppressed because it is too large Load Diff

1
readline/readline Symbolic link
View File

@ -0,0 +1 @@
readline-4.3

0
scmos/minimum.tech Normal file
View File

View File

@ -4,22 +4,22 @@ running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
$ ./configure --prefix=/home/chuan/Desktop/magic_install --without-opengl
## --------- ##
## Platform. ##
## --------- ##
hostname = stravinsky
hostname = ubuntu
uname -m = x86_64
uname -r = 3.18.3-201.fc21.x86_64
uname -r = 3.19.0-25-generic
uname -s = Linux
uname -v = #1 SMP Mon Jan 19 15:59:31 UTC 2015
uname -v = #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015
/usr/bin/uname -p = x86_64
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = x86_64
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
@ -27,12 +27,14 @@ uname -v = #1 SMP Mon Jan 19 15:59:31 UTC 2015
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: .
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
## ----------- ##
@ -46,12 +48,12 @@ configure:2528: result: x86_64-unknown-linux-gnu
configure:2548: checking target system type
configure:2561: result: x86_64-unknown-linux-gnu
configure:2653: checking for gcc
configure:2669: found /bin/gcc
configure:2669: found /usr/bin/gcc
configure:2680: result: gcc
configure:2909: checking for C compiler version
configure:2918: gcc --version >&5
gcc (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)
Copyright (C) 2014 Free Software Foundation, Inc.
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@ -59,11 +61,11 @@ configure:2929: $? = 0
configure:2918: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.9.2-20150212/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.9.2-20150212/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04.3' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.2 20150212 (Red Hat 4.9.2-6) (GCC)
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configure:2929: $? = 0
configure:2918: gcc -V >&5
gcc: error: unrecognized command line option '-V'
@ -125,7 +127,7 @@ configure: failed program was:
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MAGIC_VERSION "8.2"
| #define MAGIC_REVISION "0"
| #define MAGIC_REVISION "12"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3469: result: gcc -E
@ -146,16 +148,16 @@ configure: failed program was:
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MAGIC_VERSION "8.2"
| #define MAGIC_REVISION "0"
| #define MAGIC_REVISION "12"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3589: checking for g++
configure:3605: found /bin/g++
configure:3605: found /usr/bin/g++
configure:3616: result: g++
configure:3643: checking for C++ compiler version
configure:3652: g++ --version >&5
g++ (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)
Copyright (C) 2014 Free Software Foundation, Inc.
g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@ -163,11 +165,11 @@ configure:3663: $? = 0
configure:3652: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.9.2-20150212/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.9.2-20150212/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04.3' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.2 20150212 (Red Hat 4.9.2-6) (GCC)
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configure:3663: $? = 0
configure:3652: g++ -V >&5
g++: error: unrecognized command line option '-V'
@ -192,17 +194,17 @@ configure:3820: gcc -o conftest -g conftest.c >&5
configure:3820: $? = 0
configure:3837: result: none required
configure:3859: checking for a BSD-compatible install
configure:3927: result: /bin/install -c
configure:3927: result: /usr/bin/install -c
configure:3981: checking for ranlib
configure:3997: found /bin/ranlib
configure:3997: found /usr/bin/ranlib
configure:4008: result: ranlib
configure:4033: checking for python3
configure:4051: found /bin/python3
configure:4064: result: /bin/python3
configure:4051: found /usr/bin/python3
configure:4064: result: /usr/bin/python3
configure:4103: checking for ld used by GCC
configure:4166: result: /bin/ld
configure:4173: checking if the linker (/bin/ld) is GNU ld
GNU ld version 2.24
configure:4166: result: /usr/bin/ld
configure:4173: checking if the linker (/usr/bin/ld) is GNU ld
GNU ld (GNU Binutils for Ubuntu) 2.24
configure:4185: result: yes
configure:4192: checking for grep that handles long lines and -e
configure:4250: result: /bin/grep
@ -292,7 +294,7 @@ configure: failed program was:
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MAGIC_VERSION "8.2"
| #define MAGIC_REVISION "0"
| #define MAGIC_REVISION "12"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
@ -332,7 +334,7 @@ configure: failed program was:
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MAGIC_VERSION "8.2"
| #define MAGIC_REVISION "0"
| #define MAGIC_REVISION "12"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
@ -392,7 +394,7 @@ configure: failed program was:
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MAGIC_VERSION "8.2"
| #define MAGIC_REVISION "0"
| #define MAGIC_REVISION "12"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
@ -432,7 +434,7 @@ configure: failed program was:
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MAGIC_VERSION "8.2"
| #define MAGIC_REVISION "0"
| #define MAGIC_REVISION "12"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
@ -473,7 +475,7 @@ configure: failed program was:
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MAGIC_VERSION "8.2"
| #define MAGIC_REVISION "0"
| #define MAGIC_REVISION "12"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
@ -514,7 +516,7 @@ configure: failed program was:
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MAGIC_VERSION "8.2"
| #define MAGIC_REVISION "0"
| #define MAGIC_REVISION "12"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
@ -582,7 +584,7 @@ configure: failed program was:
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MAGIC_VERSION "8.2"
| #define MAGIC_REVISION "0"
| #define MAGIC_REVISION "12"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
@ -623,7 +625,7 @@ configure: failed program was:
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MAGIC_VERSION "8.2"
| #define MAGIC_REVISION "0"
| #define MAGIC_REVISION "12"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
@ -658,15 +660,51 @@ configure:5059: gcc -o conftest -g conftest.c >&5
configure:5059: $? = 0
configure:5068: result: yes
configure:5283: checking for gcore
configure:5301: found /bin/gcore
configure:5314: result: /bin/gcore
configure:5301: found /usr/bin/gcore
configure:5314: result: /usr/bin/gcore
configure:5326: checking for csh
configure:5344: found /bin/csh
configure:5357: result: /bin/csh
configure:5371: checking for X
configure:5479: /scripts/preproc.py conftest.c
./configure: line 1576: /scripts/preproc.py: No such file or directory
configure:5479: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MAGIC_VERSION "8.2"
| #define MAGIC_REVISION "12"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_VOID_P 8
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define HAVE_SETENV 1
| #define HAVE_PUTENV 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_PATHS_H 1
| #define HAVE_VA_COPY 1
| #define HAVE___VA_COPY 1
| /* end confdefs.h. */
| #include <X11/Xlib.h>
configure:5510: gcc -o conftest -g conftest.c -lX11 >&5
configure:5510: $? = 0
configure:5560: result: libraries , headers
configure:5560: result: libraries , headers /usr/include
configure:5659: gcc -o conftest -g conftest.c -lX11 >&5
configure:5659: $? = 0
configure:5757: checking for gethostbyname
@ -691,32 +729,9 @@ configure:6035: $? = 0
configure:6044: result: yes
configure:6080: checking for XOpenDevice in -lXi
configure:6105: gcc -o conftest -g conftest.c -lXi >&5
configure:6105: $? = 0
configure:6114: result: yes
configure:6120: checking for XmuInternAtom in -lXmu
configure:6145: gcc -o conftest -g conftest.c -lXmu >&5
configure:6145: $? = 0
configure:6154: result: yes
configure:6160: checking for XextFindDisplay in -lXext
configure:6185: gcc -o conftest -g conftest.c -lXext >&5
configure:6185: $? = 0
configure:6194: result: yes
configure:6274: checking for tclConfig.sh
configure:6348: result: /usr/lib64/tclConfig.sh
configure:6364: checking for tkConfig.sh
configure:6437: result: /usr/lib64/tkConfig.sh
configure:6571: checking for wish executable
configure:6599: result: /usr/bin/wish
configure:6605: checking for tclsh executable
configure:6631: result: /usr/bin/tclsh
configure:7336: checking GL/gl.h usability
configure:7336: gcc -c -g conftest.c >&5
configure:7336: $? = 0
configure:7336: result: yes
configure:7336: checking GL/gl.h presence
configure:7336: /scripts/preproc.py conftest.c
./configure: line 1576: /scripts/preproc.py: No such file or directory
configure:7336: $? = 127
/usr/bin/ld: cannot find -lXi
collect2: error: ld returned 1 exit status
configure:6105: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
@ -726,7 +741,7 @@ configure: failed program was:
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MAGIC_VERSION "8.2"
| #define MAGIC_REVISION "0"
| #define MAGIC_REVISION "12"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
@ -748,35 +763,94 @@ configure: failed program was:
| #define HAVE_PATHS_H 1
| #define HAVE_VA_COPY 1
| #define HAVE___VA_COPY 1
| #define FILE_LOCKS 1
| #define CALMA_MODULE 1
| #define CIF_MODULE 1
| #define X11_BACKING_STORE 1
| #define PLOT_MODULE 1
| #define LEF_MODULE 1
| #define ROUTE_MODULE 1
| #define USE_NEW_MACROS 1
| /* end confdefs.h. */
| #include <GL/gl.h>
configure:7336: result: no
configure:7336: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!
configure:7336: WARNING: GL/gl.h: proceeding with the compiler's result
configure:7336: checking for GL/gl.h
configure:7336: result: yes
configure:7354: checking for glXCreateContext in -lGL
configure:7379: gcc -o conftest -g -lm conftest.c -lGL >&5
configure:7379: $? = 0
configure:7388: result: yes
configure:7404: checking for gluNewTess in -lGLU
configure:7429: gcc -o conftest -g -lm conftest.c -lGLU -lGL >&5
configure:7429: $? = 0
configure:7438: result: yes
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char XOpenDevice ();
| int
| main ()
| {
| return XOpenDevice ();
| ;
| return 0;
| }
configure:6114: result: no
configure:6120: checking for XmuInternAtom in -lXmu
configure:6145: gcc -o conftest -g conftest.c -lXmu >&5
/usr/bin/ld: cannot find -lXmu
collect2: error: ld returned 1 exit status
configure:6145: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MAGIC_VERSION "8.2"
| #define MAGIC_REVISION "12"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_VOID_P 8
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define HAVE_SETENV 1
| #define HAVE_PUTENV 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_PATHS_H 1
| #define HAVE_VA_COPY 1
| #define HAVE___VA_COPY 1
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char XmuInternAtom ();
| int
| main ()
| {
| return XmuInternAtom ();
| ;
| return 0;
| }
configure:6154: result: no
configure:6160: checking for XextFindDisplay in -lXext
configure:6185: gcc -o conftest -g conftest.c -lXext >&5
configure:6185: $? = 0
configure:6194: result: yes
configure:6274: checking for tclConfig.sh
configure:6348: result: /usr/lib/tcl8.6/tclConfig.sh
configure:6364: checking for tkConfig.sh
configure:6437: result: /usr/lib/tk8.6/tkConfig.sh
configure:6571: checking for wish executable
configure:6599: result: /usr/bin/wish
configure:6605: checking for tclsh executable
configure:6631: result: /usr/bin/tclsh
configure:7489: checking cairo/cairo.h usability
configure:7489: gcc -c -g conftest.c >&5
configure:7489: gcc -c -g -I/usr/include conftest.c >&5
configure:7489: $? = 0
configure:7489: result: yes
configure:7489: checking cairo/cairo.h presence
configure:7489: /scripts/preproc.py conftest.c
configure:7489: /scripts/preproc.py -I/usr/include conftest.c
./configure: line 1576: /scripts/preproc.py: No such file or directory
configure:7489: $? = 127
configure: failed program was:
@ -788,7 +862,7 @@ configure: failed program was:
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MAGIC_VERSION "8.2"
| #define MAGIC_REVISION "0"
| #define MAGIC_REVISION "12"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
@ -818,8 +892,6 @@ configure: failed program was:
| #define LEF_MODULE 1
| #define ROUTE_MODULE 1
| #define USE_NEW_MACROS 1
| #define HAVE_LIBGL 1
| #define HAVE_LIBGLU 1
| #define VECTOR_FONTS 1
| /* end confdefs.h. */
| #include <cairo/cairo.h>
@ -829,7 +901,7 @@ configure:7489: WARNING: cairo/cairo.h: proceeding with the compiler's result
configure:7489: checking for cairo/cairo.h
configure:7489: result: yes
configure:7507: checking for cairo_user_to_device in -lcairo
configure:7532: gcc -o conftest -g -lm conftest.c -lcairo -lGLU -lGL >&5
configure:7532: gcc -o conftest -g -lm conftest.c -lcairo >&5
configure:7532: $? = 0
configure:7541: result: yes
configure:8320: creating ./config.status
@ -847,7 +919,7 @@ generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_COMMANDS =
$ ./config.status
on stravinsky
on ubuntu
config.status:796: creating defs.mak
config.status:899: WARNING: 'defs.mak.in' seems to ignore the --datarootdir setting
@ -895,8 +967,7 @@ ac_cv_func_remove=yes
ac_cv_func_setenv=yes
ac_cv_func_shmat=yes
ac_cv_func_vfork=yes
ac_cv_have_x='have_x=yes ac_x_includes='\'''\'' ac_x_libraries='\'''\'''
ac_cv_header_GL_gl_h=yes
ac_cv_have_x='have_x=yes ac_x_includes='\''/usr/include'\'' ac_x_libraries='\'''\'''
ac_cv_header_cairo_cairo_h=yes
ac_cv_header_dirent_h=yes
ac_cv_header_inttypes_h=yes
@ -914,21 +985,19 @@ ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_lib_GLU_gluNewTess=yes
ac_cv_lib_GL_glXCreateContext=yes
ac_cv_lib_ICE_IceConnectionNumber=yes
ac_cv_lib_Xext_XextFindDisplay=yes
ac_cv_lib_Xi_XOpenDevice=yes
ac_cv_lib_Xmu_XmuInternAtom=yes
ac_cv_lib_Xi_XOpenDevice=no
ac_cv_lib_Xmu_XmuInternAtom=no
ac_cv_lib_cairo_cairo_user_to_device=yes
ac_cv_objext=o
ac_cv_path_CSH=/bin/csh
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GCORE=/bin/gcore
ac_cv_path_GCORE=/usr/bin/gcore
ac_cv_path_GREP=/bin/grep
ac_cv_path_LD=/bin/ld
ac_cv_path_PYTHON3=/bin/python3
ac_cv_path_install='/bin/install -c'
ac_cv_path_LD=/usr/bin/ld
ac_cv_path_PYTHON3=/usr/bin/python3
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
@ -956,7 +1025,7 @@ CPPFLAGS=''
CSH='/bin/csh'
CXX='g++'
CXXFLAGS='-g -O2'
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DMAGIC_VERSION=\"8.2\" -DMAGIC_REVISION=\"0\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHAVE_SETENV=1 -DHAVE_PUTENV=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_PATHS_H=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DFILE_LOCKS=1 -DCALMA_MODULE=1 -DCIF_MODULE=1 -DX11_BACKING_STORE=1 -DPLOT_MODULE=1 -DLEF_MODULE=1 -DROUTE_MODULE=1 -DUSE_NEW_MACROS=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DVECTOR_FONTS=1 -DHAVE_LIBCAIRO=1 -DMAGIC_WRAPPER=1 -DTHREE_D=1 -Dlinux=1 -DSYSV=1 -DISC=1'
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DMAGIC_VERSION=\"8.2\" -DMAGIC_REVISION=\"12\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHAVE_SETENV=1 -DHAVE_PUTENV=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_PATHS_H=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DFILE_LOCKS=1 -DCALMA_MODULE=1 -DCIF_MODULE=1 -DX11_BACKING_STORE=1 -DPLOT_MODULE=1 -DLEF_MODULE=1 -DROUTE_MODULE=1 -DUSE_NEW_MACROS=1 -DVECTOR_FONTS=1 -DHAVE_LIBCAIRO=1 -DMAGIC_WRAPPER=1 -Dlinux=1 -DSYSV=1 -DISC=1'
DEPEND_FLAG='-MM'
ECHO_C=''
ECHO_N='printf'
@ -964,22 +1033,22 @@ ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
EXTRA_LIB_SPECS='-ldl'
GCORE='/bin/gcore'
GCORE='/usr/bin/gcore'
GREP='/bin/grep'
INC_SPECS=''
INC_SPECS=' -I/usr/include/tcl8.6/tk-private/generic -I/usr/include/tcl8.6'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_TARGET='install-tcl'
LD='/bin/ld'
LD='/usr/bin/ld'
LDDL_FLAGS='-shared -Wl,-soname,$@ -Wl,--version-script=${MAGICDIR}/magic/symbol.map'
LDFLAGS=''
LD_RUN_PATH=''
LIBOBJS=''
LIBS='-lcairo -lGLU -lGL '
LIB_SPECS=' -L/usr/lib64 -ltk8.6 -L/usr/lib64 -ltcl8.6'
LIBS='-lcairo '
LIB_SPECS=' -L/usr/lib/x86_64-linux-gnu -ltk8.6 -L/usr/lib/x86_64-linux-gnu -ltcl8.6'
LTLIBOBJS=''
MAGIC_REVISION='0'
MAGIC_REVISION='12'
MAGIC_VERSION='8.2'
OA=''
OA_LIBS=''
@ -992,11 +1061,11 @@ PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PYTHON3='/bin/python3'
PYTHON3='/usr/bin/python3'
RANLIB='ranlib'
SCRIPTS=''
SHDLIB_EXT='.so'
SHELL='/bin/sh'
SHELL='/bin/bash'
SHLIB_CFLAGS='-Wimplicit-int -fPIC'
SHLIB_LD=''
SHLIB_LIB_SPECS=''
@ -1004,7 +1073,7 @@ TCLSH_EXE='/usr/bin/tclsh'
TCL_LIB_DIR='/usr/lib'
WISH_EXE='/usr/bin/wish'
XMKMF=''
X_CFLAGS=''
X_CFLAGS=' -I/usr/include'
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=' -lSM -lICE'
@ -1025,11 +1094,11 @@ exec_prefix='${prefix}'
extra_defs=' -DCAD_DIR=\"${LIBDIR}\" -DBIN_DIR=\"${BINDIR}\" -DTCL_DIR=\"${TCLDIR}\"'
extra_libs=' ${MAGICDIR}/ext2sim/libext2sim.o ${MAGICDIR}/ext2spice/libext2spice.o ${MAGICDIR}/calma/libcalma.o ${MAGICDIR}/cif/libcif.o ${MAGICDIR}/plot/libplot.o ${MAGICDIR}/lef/liblef.o ${MAGICDIR}/extflat/libextflat.o ${MAGICDIR}/garouter/libgarouter.o ${MAGICDIR}/mzrouter/libmzrouter.o ${MAGICDIR}/router/librouter.o ${MAGICDIR}/irouter/libirouter.o ${MAGICDIR}/grouter/libgrouter.o ${MAGICDIR}/gcr/libgcr.o ${MAGICDIR}/tcltk/libtcltk.o'
gr_cflags=''
gr_dflags=' -DX11 -DXLIB -DOGL -DCAIRO'
gr_dflags=' -DX11 -DXLIB -DCAIRO'
gr_hprog=''
gr_hsrcs=''
gr_libs=' -lX11 -lGL -lGLU -lXi -lXmu -lXext -lm -lcairo -lfontconfig -lfreetype -lstdc++'
gr_srcs=' ${TK_SRCS} ${TOGL_SRCS} ${TOGL_SRCS} ${TKCOMMON_SRCS}'
gr_libs=' -lX11 -lcairo -lfontconfig -lfreetype'
gr_srcs=' ${TK_SRCS} ${TOGL_SRCS} ${TKCOMMON_SRCS}'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
@ -1048,7 +1117,7 @@ mandir='${datarootdir}/man'
modules=' ext2sim ext2spice calma cif plot lef garouter grouter irouter mzrouter router gcr tcltk'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
prefix='/home/chuan/Desktop/magic_install'
program_transform_name='s,x,x,'
programs=' net2ir tcltk'
psdir='${docdir}'
@ -1078,7 +1147,7 @@ unused=' readline lisp'
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define MAGIC_VERSION "8.2"
#define MAGIC_REVISION "0"
#define MAGIC_REVISION "12"
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
@ -1108,12 +1177,9 @@ unused=' readline lisp'
#define LEF_MODULE 1
#define ROUTE_MODULE 1
#define USE_NEW_MACROS 1
#define HAVE_LIBGL 1
#define HAVE_LIBGLU 1
#define VECTOR_FONTS 1
#define HAVE_LIBCAIRO 1
#define MAGIC_WRAPPER 1
#define THREE_D 1
#define linux 1
#define SYSV 1
#define ISC 1

View File

@ -1,4 +1,4 @@
#! /bin/sh
#! /bin/bash
# Generated by configure.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
@ -8,7 +8,7 @@ debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=${CONFIG_SHELL-/bin/sh}
SHELL=${CONFIG_SHELL-/bin/bash}
export SHELL
## -------------------- ##
## M4sh Initialization. ##
@ -417,7 +417,7 @@ $config_files
Report bugs to the package provider."
ac_cs_config="'CFLAGS=-g'"
ac_cs_config="'--prefix=/home/chuan/Desktop/magic_install' '--without-opengl' 'CFLAGS=-g'"
ac_cs_version="\
config.status
configured by ./configure, generated by GNU Autoconf 2.69,
@ -427,9 +427,9 @@ Copyright (C) 2012 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
ac_pwd='/home/tim/gitsrc/magic-8.2/scripts'
ac_pwd='/home/chuan/Desktop/magic-8.2/scripts'
srcdir='..'
INSTALL='/bin/install -c'
INSTALL='/usr/bin/install -c'
test -n "$AWK" || AWK=awk
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
@ -496,10 +496,10 @@ if $ac_cs_silent; then
fi
if $ac_cs_recheck; then
set X /bin/sh './configure' 'CFLAGS=-g' $ac_configure_extra_args --no-create --no-recursion
set X /bin/bash './configure' '--prefix=/home/chuan/Desktop/magic_install' '--without-opengl' 'CFLAGS=-g' $ac_configure_extra_args --no-create --no-recursion
shift
$as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
CONFIG_SHELL='/bin/sh'
$as_echo "running CONFIG_SHELL=/bin/bash $*" >&6
CONFIG_SHELL='/bin/bash'
export CONFIG_SHELL
exec "$@"
fi
@ -588,15 +588,15 @@ S["INSTALL_TARGET"]="install-tcl"
S["ALL_TARGET"]="tcl"
S["OA_LIBS"]=""
S["OA"]=""
S["MAGIC_REVISION"]="0"
S["MAGIC_REVISION"]="12"
S["MAGIC_VERSION"]="8.2"
S["LD_RUN_PATH"]=""
S["SHLIB_CFLAGS"]="-Wimplicit-int -fPIC"
S["DEPEND_FLAG"]="-MM"
S["gr_hprog"]=""
S["gr_hsrcs"]=""
S["gr_srcs"]=" ${TK_SRCS} ${TOGL_SRCS} ${TOGL_SRCS} ${TKCOMMON_SRCS}"
S["gr_dflags"]=" -DX11 -DXLIB -DOGL -DCAIRO"
S["gr_srcs"]=" ${TK_SRCS} ${TOGL_SRCS} ${TKCOMMON_SRCS}"
S["gr_dflags"]=" -DX11 -DXLIB -DCAIRO"
S["gr_cflags"]=""
S["rl_libs"]=""
S["rl_defs"]=""
@ -614,28 +614,28 @@ S["extra_libs"]=" ${MAGICDIR}/ext2sim/libext2sim.o ${MAGICDIR}/ext2spice/libext2
"ter/librouter.o ${MAGICDIR}/irouter/libirouter.o ${MAGICDIR}/grouter/libgrouter.o ${MAGICDIR}/gcr/libgcr.o ${MAGICDIR}/tcltk/libtcltk.o"
S["SCRIPTS"]=""
S["PACKAGE"]="magic"
S["gr_libs"]=" -lX11 -lGL -lGLU -lXi -lXmu -lXext -lm -lcairo -lfontconfig -lfreetype -lstdc++"
S["gr_libs"]=" -lX11 -lcairo -lfontconfig -lfreetype"
S["TCL_LIB_DIR"]="/usr/lib"
S["TCLSH_EXE"]="/usr/bin/tclsh"
S["WISH_EXE"]="/usr/bin/wish"
S["LIB_SPECS"]=" -L/usr/lib64 -ltk8.6 -L/usr/lib64 -ltcl8.6"
S["INC_SPECS"]=""
S["LIB_SPECS"]=" -L/usr/lib/x86_64-linux-gnu -ltk8.6 -L/usr/lib/x86_64-linux-gnu -ltcl8.6"
S["INC_SPECS"]=" -I/usr/include/tcl8.6/tk-private/generic -I/usr/include/tcl8.6"
S["EXTRA_LIB_SPECS"]="-ldl"
S["SHLIB_LIB_SPECS"]=""
S["LDDL_FLAGS"]="-shared -Wl,-soname,$@ -Wl,--version-script=${MAGICDIR}/magic/symbol.map"
S["LD"]="/bin/ld"
S["LD"]="/usr/bin/ld"
S["SHLIB_LD"]=""
S["SHDLIB_EXT"]=".so"
S["X_EXTRA_LIBS"]=""
S["X_LIBS"]=""
S["X_PRE_LIBS"]=" -lSM -lICE"
S["X_CFLAGS"]=""
S["X_CFLAGS"]=" -I/usr/include"
S["XMKMF"]=""
S["CSH"]="/bin/csh"
S["GCORE"]="/bin/gcore"
S["GCORE"]="/usr/bin/gcore"
S["EGREP"]="/bin/grep -E"
S["GREP"]="/bin/grep"
S["PYTHON3"]="/bin/python3"
S["PYTHON3"]="/usr/bin/python3"
S["RANLIB"]="ranlib"
S["INSTALL_DATA"]="${INSTALL} -m 644"
S["INSTALL_SCRIPT"]="${INSTALL}"
@ -666,16 +666,16 @@ S["build"]="x86_64-unknown-linux-gnu"
S["target_alias"]=""
S["host_alias"]=""
S["build_alias"]=""
S["LIBS"]="-lcairo -lGLU -lGL "
S["LIBS"]="-lcairo "
S["ECHO_T"]=""
S["ECHO_N"]="-n"
S["ECHO_C"]=""
S["DEFS"]="-DPACKAGE_NAME=\\\"\\\" -DPACKAGE_TARNAME=\\\"\\\" -DPACKAGE_VERSION=\\\"\\\" -DPACKAGE_STRING=\\\"\\\" -DPACKAGE_BUGREPORT=\\\"\\\" -DPACKAGE_URL=\\\"\\\" -DMAGIC_VERSION="\
"\\\"8.2\\\" -DMAGIC_REVISION=\\\"0\\\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DH"\
"AVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG="\
"8 -DHAVE_SETENV=1 -DHAVE_PUTENV=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_PATHS_H=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DFIL"\
"E_LOCKS=1 -DCALMA_MODULE=1 -DCIF_MODULE=1 -DX11_BACKING_STORE=1 -DPLOT_MODULE=1 -DLEF_MODULE=1 -DROUTE_MODULE=1 -DUSE_NEW_MACROS=1 -DHAVE_LIBGL=1 -D"\
"HAVE_LIBGLU=1 -DVECTOR_FONTS=1 -DHAVE_LIBCAIRO=1 -DMAGIC_WRAPPER=1 -DTHREE_D=1 -Dlinux=1 -DSYSV=1 -DISC=1"
"\\\"8.2\\\" -DMAGIC_REVISION=\\\"12\\\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -D"\
"HAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG"\
"=8 -DHAVE_SETENV=1 -DHAVE_PUTENV=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_PATHS_H=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DFI"\
"LE_LOCKS=1 -DCALMA_MODULE=1 -DCIF_MODULE=1 -DX11_BACKING_STORE=1 -DPLOT_MODULE=1 -DLEF_MODULE=1 -DROUTE_MODULE=1 -DUSE_NEW_MACROS=1 -DVECTOR_FONTS=1"\
" -DHAVE_LIBCAIRO=1 -DMAGIC_WRAPPER=1 -Dlinux=1 -DSYSV=1 -DISC=1"
S["mandir"]="${datarootdir}/man"
S["localedir"]="${datarootdir}/locale"
S["libdir"]="${exec_prefix}/lib"
@ -696,7 +696,7 @@ S["libexecdir"]="${exec_prefix}/libexec"
S["sbindir"]="${exec_prefix}/sbin"
S["bindir"]="${exec_prefix}/bin"
S["program_transform_name"]="s,x,x,"
S["prefix"]="/usr/local"
S["prefix"]="/home/chuan/Desktop/magic_install"
S["exec_prefix"]="${prefix}"
S["PACKAGE_URL"]=""
S["PACKAGE_BUGREPORT"]=""
@ -705,7 +705,7 @@ S["PACKAGE_VERSION"]=""
S["PACKAGE_TARNAME"]=""
S["PACKAGE_NAME"]=""
S["PATH_SEPARATOR"]=":"
S["SHELL"]="/bin/sh"
S["SHELL"]="/bin/bash"
_ACAWK
cat >>"$ac_tmp/subs1.awk" <<_ACAWK &&
for (key in S) S_is_set[key] = 1

View File

@ -6,9 +6,9 @@
# Be aware that running scripts/configure again will overwrite
# any changes!
SHELL = /bin/sh
SHELL = /bin/bash
prefix = /usr/local
prefix = /home/chuan/Desktop/magic_install
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
libdir = ${exec_prefix}/lib
@ -16,7 +16,7 @@ mandir = ${prefix}/share/man
SCRIPTS = ${MAGICDIR}/scripts
INSTALL = /bin/install -c
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL}
@ -49,26 +49,26 @@ CP = cp
AR = ar
ARFLAGS = crv
LINK = ld -r
LD = /bin/ld
LD = /usr/bin/ld
M4 = @M4@
RANLIB = ranlib
SHDLIB_EXT = .so
LDDL_FLAGS = ${LDFLAGS} -shared -Wl,-soname,$@ -Wl,--version-script=${MAGICDIR}/magic/symbol.map
LD_RUN_PATH =
LIB_SPECS = -L/usr/lib64 -ltk8.6 -L/usr/lib64 -ltcl8.6
LIB_SPECS = -L/usr/lib/x86_64-linux-gnu -ltk8.6 -L/usr/lib/x86_64-linux-gnu -ltcl8.6
WISH_EXE = /usr/bin/wish
TCL_LIB_DIR = /usr/lib
MAGIC_VERSION = 8.2
MAGIC_REVISION = 0
MAGIC_REVISION = 12
CC = gcc
CPP = /scripts/preproc.py
CXX = g++
CPPFLAGS = -I. -I${MAGICDIR}
DFLAGS = -DCAD_DIR=\"${LIBDIR}\" -DBIN_DIR=\"${BINDIR}\" -DTCL_DIR=\"${TCLDIR}\" -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DMAGIC_VERSION=\"8.2\" -DMAGIC_REVISION=\"0\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHAVE_SETENV=1 -DHAVE_PUTENV=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_PATHS_H=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DFILE_LOCKS=1 -DCALMA_MODULE=1 -DCIF_MODULE=1 -DX11_BACKING_STORE=1 -DPLOT_MODULE=1 -DLEF_MODULE=1 -DROUTE_MODULE=1 -DUSE_NEW_MACROS=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DVECTOR_FONTS=1 -DHAVE_LIBCAIRO=1 -DMAGIC_WRAPPER=1 -DTHREE_D=1 -Dlinux=1 -DSYSV=1 -DISC=1 -DNDEBUG -DGCORE=\"/bin/gcore\"
DFLAGS = -DCAD_DIR=\"${LIBDIR}\" -DBIN_DIR=\"${BINDIR}\" -DTCL_DIR=\"${TCLDIR}\" -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DMAGIC_VERSION=\"8.2\" -DMAGIC_REVISION=\"12\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHAVE_SETENV=1 -DHAVE_PUTENV=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_PATHS_H=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DFILE_LOCKS=1 -DCALMA_MODULE=1 -DCIF_MODULE=1 -DX11_BACKING_STORE=1 -DPLOT_MODULE=1 -DLEF_MODULE=1 -DROUTE_MODULE=1 -DUSE_NEW_MACROS=1 -DVECTOR_FONTS=1 -DHAVE_LIBCAIRO=1 -DMAGIC_WRAPPER=1 -Dlinux=1 -DSYSV=1 -DISC=1 -DNDEBUG -DGCORE=\"/usr/bin/gcore\"
DFLAGS += -DSHDLIB_EXT=\".so\"
CFLAGS = -g -m64 -fPIC -Wimplicit-int -fPIC
CFLAGS = -g -m64 -fPIC -Wimplicit-int -fPIC -I/usr/include/tcl8.6/tk-private/generic -I/usr/include/tcl8.6
READLINE_DEFS =
READLINE_LIBS =
@ -77,10 +77,10 @@ DEPEND_FILE = Depend
DEPEND_FLAG = -MM
EXEEXT =
GR_CFLAGS =
GR_DFLAGS = -DX11 -DXLIB -DOGL -DCAIRO -DNDEBUG
GR_LIBS = -lX11 -lGL -lGLU -lXi -lXmu -lXext -lm -lcairo -lfontconfig -lfreetype -lstdc++ ${X11_LDFLAGS}
GR_SRCS = ${TK_SRCS} ${TOGL_SRCS} ${TOGL_SRCS} ${TKCOMMON_SRCS}
GR_CFLAGS = -I/usr/include
GR_DFLAGS = -DX11 -DXLIB -DCAIRO -DNDEBUG
GR_LIBS = -lX11 -lcairo -lfontconfig -lfreetype ${X11_LDFLAGS}
GR_SRCS = ${TK_SRCS} ${TOGL_SRCS} ${TKCOMMON_SRCS}
GR_HELPER_SRCS =
GR_HELPER_PROG =

View File

@ -15,7 +15,7 @@ for i in $@; do
esac
done
#
eval /usr/local/lib/magic/tcl/magicdnull -dnull -noconsole -nowrapper $mgargs <<EOF
eval /home/chuan/Desktop/magic_install/lib/magic/tcl/magicdnull -dnull -noconsole -nowrapper $mgargs <<EOF
drc off
box 0 0 0 0
ext2sim $esargs

View File

@ -15,7 +15,7 @@ for i in $@; do
esac
done
#
eval /usr/local/lib/magic/tcl/magicdnull -dnull -noconsole -nowrapper $mgargs <<EOF
eval /home/chuan/Desktop/magic_install/lib/magic/tcl/magicdnull -dnull -noconsole -nowrapper $mgargs <<EOF
drc off
box 0 0 0 0
ext2spice $esargs

64
tcltk/magic.sh Normal file
View File

@ -0,0 +1,64 @@
#!/bin/bash
#
# For installation, put this file (magic.sh) in a known executable path.
# Put startup script "magic.tcl", shared library "tclmagic.so", and
# "wish" replacement "magicexec" in ${CAD_ROOT}/magic/tcl/.
#
# This script starts magic under the Tcl interpreter,
# reading commands from a special startup script which
# launches magic and retains the Tcl interactive interpreter.
# Parse for the argument "-c[onsole]". If it exists, run magic
# with the TkCon console. Strip this argument from the argument list.
TKCON=true
DNULL=
MAGIC_WISH=/usr/bin/wish
export MAGIC_WISH
# Hacks for Cygwin
if [ "`uname | cut -d_ -f1`" = "CYGWIN" ]; then
export PATH="$PATH:/usr/lib"
export DISPLAY=${DISPLAY:=":0"}
fi
# Preserve quotes in arguments
arglist=''
for i in "$@" ; do
case $i in
-noc*) TKCON=;;
-dnull) DNULL=true;;
--version) TKCON=; DNULL=true;;
--prefix) TKCON=; DNULL=true;;
*) arglist="$arglist${arglist:+ }\"${i//\"/\\\"}\"";;
esac
done
if [ $TKCON ]; then
if [ $DNULL ]; then
exec /home/chuan/Desktop/magic_install/lib/magic/tcl/tkcon.tcl -eval "source /home/chuan/Desktop/magic_install/lib/magic/tcl/console.tcl" \
-slave "set argc $#; set argv [list $*]; source /home/chuan/Desktop/magic_install/lib/magic/tcl/magic.tcl"
else
exec /home/chuan/Desktop/magic_install/lib/magic/tcl/tkcon.tcl -eval "source /home/chuan/Desktop/magic_install/lib/magic/tcl/console.tcl" \
-slave "package require Tk; set argc $#; set argv [list $arglist]; \
source /home/chuan/Desktop/magic_install/lib/magic/tcl/magic.tcl"
fi
else
#
# Run the stand-in for wish (magicexec), which acts exactly like "wish"
# except that it replaces ~/.wishrc with magic.tcl. This executable is
# *only* needed when running without the console; the console itself is
# capable of sourcing the startup script.
#
# With option "-dnull" we set up for operation without Tk (simple interpreter
# only, efficient for running in batch mode).
#
if [ $DNULL ]; then
exec /home/chuan/Desktop/magic_install/lib/magic/tcl/magicdnull -nowrapper "$@"
else
exec /home/chuan/Desktop/magic_install/lib/magic/tcl/magicexec -- "$@"
fi
fi

406
tcltk/magic.tcl Normal file
View File

@ -0,0 +1,406 @@
# Wishrc startup for ToolScript (magic)
#
# For installation: Put this file and also magicwrap.so into
# directory /home/chuan/Desktop/magic_install/lib/magic/tcl, and set the "load" line below
# to point to the location of magicwrap.so. Also see comments
# in shell script "magic.sh".
global Opts
# If we called magic via the non-console script, then we want to reset
# the environment variable HOME to its original value.
if {${tcl_version} >= 8.6} {
load -lazy /home/chuan/Desktop/magic_install/lib/magic/tcl/tclmagic.so
} else {
load /home/chuan/Desktop/magic_install/lib/magic/tcl/tclmagic.so
}
# It is important to make sure no magic commands overlap with Tcl built-in
# commands, because otherwise the namespace import will fail.
proc pushnamespace { name } {
set y [namespace eval ${name} info commands ::${name}::*]
set z [info commands]
# Watch especially for magic "wizard" commands, as we don't want to confuse
# the literal "*" with a regular expression *. "regsub" below takes care of it.
foreach v $y {
regsub -all {\*} $v {\\*} i
set x [namespace tail $i]
if {[lsearch $z $x] < 0} {
namespace import $i
}
}
}
proc popnamespace { name } {
set z [info commands]
set l [expr [string length ${name}] + 5]
while {[set v [lsearch $z ${name}_tcl_*]] >= 0} {
set y [lindex $z $v]
set w [string range $y $l end]
interp alias {} ::$w {}
rename ::$y ::$w
puts "Info: replacing ::$w with ::$y"
}
namespace forget ::${name}::*
}
#----------------------------------------------------------------------
# Define the drcstate procedure expected by the background DRC code.
proc magic::drcstate {option} {
# (Null proc---see wrapper.tcl for a useful version)
}
#-----------------------------------------------------------------
# Define these console routines so that they don't produce errors
# when Magic is run in batch mode
if {[catch {tkcon title}]} {
proc magic::suspendout {} {}
proc magic::resumeout {} {}
proc magic::dialog {} {}
proc magic::consolegeometry {} {}
proc magic::consolefocus {} {}
}
#----------------------------------------------------------------------
# Cross-Application section
#----------------------------------------------------------------------
# Check namespaces for existence of other applications
set UsingIRSIM 0
set UsingXCircuit 0
set UsingNetgen 0
set nlist [namespace children]
foreach i $nlist {
switch $i {
::irsim { set UsingIRSIM 1 }
::xcircuit { set UsingXCircuit 1 }
::netgen { set UsingNetgen 1 }
}
}
# Setup IRSIM assuming that the Tcl version is installed.
# We do not need to rename procedure irsim to NULL because it is
# redefined in a script, which simply overwrites the original.
proc irsim { args } {
global CAD_ROOT
set irsimscript [glob -nocomplain ${CAD_ROOT}/irsim/tcl/irsim.tcl]
if { ${irsimscript} == {} } {
puts stderr "\"irsim\" requires Tcl-based IRSIM version 9.6 or newer."
puts stderr "Could not find script \"irsim.tcl\". If IRSIM is installed in a"
puts stderr "place other than CAD_ROOT (=${CAD_ROOT}), use the command"
puts stderr "\"source <path>/irsim.tcl\" before doing \"irsim\"."
} else {
source $irsimscript
eval {irsim} $args
}
}
# Setup Xcircuit assuming that the Tcl version is installed.
proc xcircuit { args } {
global CAD_ROOT
global argc
global argv
set xcircscript [glob -nocomplain ${CAD_ROOT}/xcircuit*/xcircuit.tcl]
if { ${xcircscript} == {} } {
puts stderr "\"xcircuit\" requires Tcl-based XCircuit version 3.1 or newer."
puts stderr "Could not find script \"xcircuit.tcl\". If XCircuit is installed in a"
puts stderr "place other than CAD_ROOT (=${CAD_ROOT}), use the command"
puts stderr "\"source <path>/xcircuit.tcl\"."
} else {
# if there are multiple installed versions, choose the highest version.
if {[llength $xcircscript] > 1} {
set xcircscript [lindex [lsort -decreasing -dictionary $xcircscript] 0]
}
# execute script in the scope of magic, because its variable space is
# not modularized.
set argv $args
set argc [llength $args]
uplevel #0 source $xcircscript
}
}
# Setup Netgen assuming that the Tcl version is installed.
proc netgen { args } {
global CAD_ROOT
global argc
global argv
set netgenscript [glob -nocomplain ${CAD_ROOT}/netgen/tcl/netgen.tcl]
if { ${netgenscript} == {} } {
puts stderr "\"netgen\" requires Tcl-based Netgen version 1.2 or newer."
puts stderr "Could not find script \"netgen.tcl\". If Netgen is installed in a"
puts stderr "place other than CAD_ROOT (=${CAD_ROOT}), use the command"
puts stderr "\"source <path>/netgen.tcl\"."
} else {
set argv $args
set argc [llength $args]
uplevel #0 source $netgenscript
}
}
# Add the "echo" command
proc echo {args} {
puts stdout $args
}
# Parse argument list for "-c[onsole]" and "-now[rapper]".
set celllist {}
set do_wrapper true
set do_recover false
set argafter {magic::initialize}
set x {}
for {set i 0} {$i < $argc} {incr i 1} {
set x [lindex $argv $i]
#
# Command-line argument handling goes here
# We have to handle all of magic's command line arguments so we can
# figure out if a cell has been named for preloading.
#
switch -regexp -- $x {
^-now(rap)?(per)?$ { ;# This regexp accepts -now, -nowrap, and -nowrapper
set do_wrapper false
}
^-dnull {
set do_wrapper false
lappend argafter $x
}
^-r(e)?(cover)?$ {
set do_recover true
}
^-rc(file)?$ {
lappend argafter $x
incr i 1
lappend argafter [lindex $argv $i]
}
^-d -
^-g -
^-m -
^-i -
^-T {
lappend argafter $x
incr i 1
lappend argafter [lindex $argv $i]
}
^-F {
lappend argafter $x
incr i 1
lappend argafter [lindex $argv $i]
incr i 1
lappend argafter [lindex $argv $i]
}
^--version {
puts stdout "8.2.12"
exit 0
}
^--prefix {
puts stdout $CAD_ROOT
exit 0
}
^-D -
^-n* {
lappend argafter $x
}
default {
lappend celllist $x
lappend argafter $x
}
}
}
if {$do_wrapper} {
source ${CAD_ROOT}/magic/tcl/wrapper.tcl
lappend argafter "-nowindow" ;# Set no-initial-window option in magic.
}
unset x i do_wrapper
if {[catch {eval $argafter}]} { ;# magic::initialize ${argv}
exit 1
}
#----------------------------------------------------------------------
# Check for presence of padlist manager script and include it
if {[file exists ${CAD_ROOT}/magic/tcl/padlist.tcl]} {
source ${CAD_ROOT}/magic/tcl/padlist.tcl
set Opts(padlist) 0
}
#----------------------------------------------------------------------
# Check for presence of the miscellaneous tools script and include it
if {[file exists ${CAD_ROOT}/magic/tcl/tools.tcl]} {
source ${CAD_ROOT}/magic/tcl/tools.tcl
set Opts(tools) 0
}
#----------------------------------------------------------------------
# Check for presence of the mazerouter script and include it
if {[file exists ${CAD_ROOT}/magic/tcl/mazeroute.tcl]} {
source ${CAD_ROOT}/magic/tcl/mazeroute.tcl
set Opts(mazeroute) 0
}
#----------------------------------------------------------------------
# Check for presence of the toolkit script and include it
# NOTE: This supercedes the older toolkit which is now
# named toolkit_rev0.tcl, and the intermediate bsitools.tcl,
# which are folded into the newer toolkit.tcl.
if {[file exists ${CAD_ROOT}/magic/tcl/toolkit.tcl]} {
source ${CAD_ROOT}/magic/tcl/toolkit.tcl
set Opts(toolkit) 0
}
#----------------------------------------------------------------------
# Magic start function drops back to interpreter after initialization & setup
set auto_noexec 1 ;# don't EVER call UNIX commands w/o "shell" in front
# Have we called magic from tkcon or a clone thereof? If so, set MagicConsole
if {[lsearch [interp aliases] tkcon] != -1} {
set MagicConsole tkcon
catch {wm withdraw .}
# Get rid of some overlapping tkcon commands which are not needed.
if {[lsearch [info commands] orig_edit] < 0} {rename edit orig_edit}
if {[lsearch [info commands] orig_dump] < 0} {rename dump orig_dump}
if {[lsearch [info commands] orig_what] < 0} {rename what orig_what}
} else {
rename unknown tcl_unknown
proc unknown { args } {
# CAD tools special:
# Check for commands which were renamed to tcl_(command)
set cmd [lindex $args 0]
if {[lsearch [info commands] tcl_$cmd] >= 0} {
set arglist [concat tcl_$cmd [lrange $args 1 end]]
set ret [catch {eval $arglist} result]
if {$ret == 0} {
return $result
} else {
return -code $ret -errorcode $errorCode $result
}
}
return [eval [concat tcl_unknown $args]]
}
}
# Set up certain commands to act like they do in non-Tcl-based magic;
# These are the commands whose names have been extended so they don't
# conflict with existing Tcl/Tk commands. This renaming & importing
# *requires* the special code in the magic Tcl command dispatcher to
# find and deal with each of these renamed commands!
if {[lsearch [info commands] orig_clock] < 0} {rename clock orig_clock}
if {[lsearch [info commands] tcl_flush] < 0} {rename flush tcl_flush}
if {[lsearch [info commands] tcl_load] < 0} {rename load tcl_load}
if {[lsearch [info commands] tcl_array] < 0} {rename array tcl_array}
if {[lsearch [info commands] tcl_label] < 0} {catch {rename label tcl_label}}
if {[lsearch [info commands] tcl_grid] < 0} {catch {rename grid tcl_grid}}
namespace eval magic namespace export *
pushnamespace magic
#----------------------------------------------------------------------
# Read system startup files (mostly macro definitions)
# Read user startup file, if any
# Load initial cell, if any
magic::startup
if {![catch {set toptitle [wm title .]}]} {
if {[string range $toptitle 0 3] == "wish"} {
wm withdraw .
}
if {[string range $toptitle 0 8] == "magicexec"} {
wm withdraw .
}
unset toptitle
}
# After loading, magic will wander off and do a complete DRC check
# before executing the rest of the script unless we temporarily
# disable the DRC checker.
set drcstate [drc status]
drc off
# Initial window for wrapper, if defined.
# empty string is equivalent to passing NULL cell name.
#
# If a startup file has created a window, then don't make another one.
if {[info commands magic::openwrapper] != {}} {
if {[windownames layout] == {}} {
set winname [magic::openwrapper]
magic::techmanager initall
magic::scrollupdate $winname
foreach cellname $celllist {
set fext [file extension $cellname]
puts stdout "handling file entry $cellname extension $fext"
switch $fext {
.lef -
.LEF {lef read $cellname}
.def -
.DEF {def read $cellname}
.gds -
.GDS -
.gds2 -
.GDS2 -
.gdsii -
.GDSII {gds read $cellname}
.cif -
.CIF {cif read $cellname}
.tcl {source $cellname}
.mag -
"" {magic::load $cellname}
default {puts stderr "don't know how to load file $cellname"}
}
}
}
} else {
# Initial geometry handler for the default window, non-wrapper version
catch {wm geometry .magic1 ${Opts(geometry)}}
}
# Print the technology name and description
puts stdout "Using technology \"[tech name]\", version [lindex [tech version] 0]"
# Set a box, and set the view; if no cell has been loaded, choose a default
# view.
if {![box exists]} {
box 0 0 1 1 ;# create a unit box
}
if {[llength $celllist] > 0} {
view
} else {
view -9 -9 10 10
}
# The Tcl version handles the "-r" on the command line by calling
# command crash recover.
if {$do_recover} {crash recover}
# Unset global TCL variables so they don't conflict with magic nodes.
unset celllist nlist do_recover
if {$drcstate == 1} {
drc on
}
unset drcstate

BIN
tcltk/magicdnull Executable file

Binary file not shown.

BIN
tcltk/magicexec Executable file

Binary file not shown.