1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
|
#------------------------------------------------------------------------
# Imakefile for Xcircuit
# (c) 1998 Tim Edwards, Johns Hopkins University
#------------------------------------------------------------------------
#
#------------------------------------------------------------------------
# Compile flags (should not be necessary to uncomment anything unless
# you have a DEC Alpha or if problems are encountered during compilation):
#------------------------------------------------------------------------
#
#CC = cc
# If you wish to compile with GNU cc, uncomment the following:
#CC = gcc
#
# cckr is for SGI only (non-ansi-standard switch):
#CCOPTIONS = -O2 -cckr -Wf,-XNh2000
# for DEC Alpha:
#CCOPTIONS = -Olimit 1000 -taso -D
# for DEC ULTRIX:
#CCOPTIONS = -Olimit 1000
# for Linux:
#CCOPTIONS = -O2 -m486
# otherwise try:
#CCOPTIONS = -O2
#
# for debugging purposes uncomment the following line:
#CDEBUGFLAGS = -g
#------------------------------------------------------------------------
# Installation directories:
# Change the following as desired to suit your environment:
#------------------------------------------------------------------------
#
PREFIX = /usr/local
XCIRCUIT_LIB_DIR = $(PREFIX)/lib/xcircuit-2.0
# XCIRCUIT_LIB_DIR = $(PREFIX)/src/xcircuit-2.0/psfiles
XCIRCUIT_BIN_DIR = $(PREFIX)/X11R6/bin
XCIRCUIT_MAN_DIR = $(PREFIX)/man/man1
#------------------------------------------------------------------------
# Support for graphics double-buffering (A memory hog, but yields fastest
# graphics rendering).
#------------------------------------------------------------------------
#
DO_BUFFER= -DDOUBLEBUFFER
# DO_BUFFER=
#------------------------------------------------------------------------
# Support for pixmap icon using xpm
#define HAVE_XPM
#------------------------------------------------------------------------
# Support for reading various file formats
# (other than Xcircuit PostScript)
#
# MAKE_LGF Support for Caltech tools' "analog" simulator .lgf
# file format.
#------------------------------------------------------------------------
#
#define MAKE_LGF
#------------------------------------------------------------------------
# Support for schematic capture
#
#define SCHEMA
SCHEMPROG = xschema
SCHEMFLAG = -schem
#------------------------------------------------------------------------
#
# System-specific compile-time definitions
#
#------------------------------------------------------------------------
# For DEC Alpha, or if the compilation fails due to an error
# redefining "uchar", uncomment the following definition:
#HAVE_UCHAR = -DHAVE_UCHAR
# Otherwise,
HAVE_UCHAR =
# DEC Alpha, Solaris and other SVR4 systems need the following,
# or if you have compilation errors about "dp->d_name" being
# undefined:
#DIRENT = -DSVR4_DIRENT
# Otherwise,
DIRENT =
# My DECstation (Ultrix) has something funny going on in XLib. . . if there
# is a compile-time error "ld: Undefined: XUniqueContext *** Error code 1"
# then enable the following definition:
#CONTEXT_FIX = -DUniqueContextProblem
# Otherwise,
CONTEXT_FIX =
#------------------------------------------------------------------------
# You should not need to change anything after this line
#------------------------------------------------------------------------
# Version number
VERSION = 2.0
# PostScript source files directory
XCIRCUIT_LIBSRC_DIR = ./psfiles
# Standard library files
BUILTINS_FILE = builtins.lps
USER_RC_FILE = .xcircuitrc
PROLOGUE_FILE = xcircps2.pro
BUILTINS_DEP1 = analog.lps
BUILTINS_DEP2 = avlsi.lps
BUILTINS_DEP3 = digital.lps
LGF_LIB = lgf.lps
SIGNAL_LIB = signal.lps
MUSIC_LIB = musiclib.lps
# Xw library
XWLIB = -L./Xw -lxcXw
#ifdef HAVE_XPM
XPM_ICON = -DHAVE_XPM
XPMLIB = -lXpm
#else
XPM_ICON =
XPMLIB =
#endif
DEPLIBS = $(DEPXLIB)
LOCAL_LIBRARIES = $(XWLIB) $(XPMLIB) $(XTOOLLIB) $(XLIB) -lm
SRCS = files.c text.c events.c selection.c elements.c libraries.c \
functions.c formats.c rcfile.c schema.c netlist.c help.c \
filelist.c menucalls.c xcircuit.c
OBJS = files.o text.o events.o selection.o elements.o libraries.o \
functions.o formats.o rcfile.o schema.o netlist.o help.o \
filelist.o menucalls.o xcircuit.o
#ifdef MAKE_LGF
P_LGF = -DLGF
#else
P_LGF =
#endif
#ifdef SCHEMA
P_SCHEMA = -DSCHEMA
#else
P_SCHEMA =
#endif
PACKAGES = ${P_LGF} ${P_SCHEMA}
DEFINES = -DBUILTINS_DIR=\"${XCIRCUIT_LIB_DIR}\" \
-DBUILTINS_FILE=\"${BUILTINS_FILE}\" \
-DUSER_RC_FILE=\"${USER_RC_FILE}\" \
-DPROLOGUE_DIR=\"${XCIRCUIT_LIB_DIR}\" \
-DPROLOGUE_FILE=\"${PROLOGUE_FILE}\" \
-DLGF_LIB=\"${LGF_LIB}\" \
-DSCHEM_PROG=\"${SCHEMPROG}\" \
-DSCHEM_FLAG=\"${SCHEMFLAG}\" \
-DVERSION=\"${VERSION}\" ${CONTEXT_FIX} \
${PACKAGES} ${DIRENT} ${DO_BUFFER} \
${HAVE_UCHAR} ${XPM_ICON}
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
AllTarget(libxcXw.a)
#ifdef MakeNsubdirMakefiles
MakeNsubdirMakefiles()
#endif
MakeMakeSubdirs(Xw, libxcXw.a)
MakeSubdirs(Xw)
DependSubdirs(Xw)
AllTarget(menudep)
menudep: menudep.o
$(CC) -o menudep menudep.o
AllTarget(xcircuit)
help.c: menudep.h
menudep.h: menudep
./menudep
xcircuit: $(OBJS) $(DEPLIBS)
RemoveTargetProgram($@)
$(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) \
$(EXTRA_LOAD_FLAGS)
DependTarget()
install::
InstallProgram(xcircuit, ${XCIRCUIT_BIN_DIR})
#ifdef SCHEMA
(cd ${XCIRCUIT_BIN_DIR}; ln -sf xcircuit ${SCHEMPROG})
#endif
MakeDir(${XCIRCUIT_LIB_DIR})
InstallNonExec(${XCIRCUIT_LIBSRC_DIR}/${BUILTINS_FILE}, ${XCIRCUIT_LIB_DIR})
InstallNonExec(${XCIRCUIT_LIBSRC_DIR}/${PROLOGUE_FILE}, ${XCIRCUIT_LIB_DIR})
InstallNonExec(${XCIRCUIT_LIBSRC_DIR}/${BUILTINS_DEP1}, ${XCIRCUIT_LIB_DIR})
InstallNonExec(${XCIRCUIT_LIBSRC_DIR}/${BUILTINS_DEP2}, ${XCIRCUIT_LIB_DIR})
InstallNonExec(${XCIRCUIT_LIBSRC_DIR}/${BUILTINS_DEP3}, ${XCIRCUIT_LIB_DIR})
InstallNonExec(${XCIRCUIT_LIBSRC_DIR}/${LGF_LIB}, ${XCIRCUIT_LIB_DIR})
InstallNonExec(${XCIRCUIT_LIBSRC_DIR}/${SIGNAL_LIB}, ${XCIRCUIT_LIB_DIR})
InstallNonExec(${XCIRCUIT_LIBSRC_DIR}/${MUSIC_LIB}, ${XCIRCUIT_LIB_DIR})
install.man::
InstallManPage(xcircuit, ${XCIRCUIT_MAN_DIR})
clean::
$(RM) xcircuit xschema menudep *.o *.bak core
(cd ./Xw; $(RM) *.o *.bak core)
veryclean::
$(RM) xcircuit xschema *.o *.bak Makefile menudep menudep.h core
(cd ./Xw; $(RM) *.o *.a *.bak Makefile core)
|