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 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369
|
# SCCS-info %W% %E%
#
# /*--------------------------------------------------------------------*/
# /* */
# /* VCG : Visualization of Compiler Graphs */
# /* -------------------------------------- */
# /* */
# /* file: tMakefile.tpl */
# /* version: 1.00.00 */
# /* creation: 1.4.1993 */
# /* author: I. Lemke (...-Version 0.99.99) */
# /* G. Sander (Version 1.00.00-...) */
# /* Universitaet des Saarlandes, W-66041 Saarbruecken */
# /* ESPRIT Project #5399 Compare */
# /* description: Top level Makefile */
# /* status: in work */
# /* */
# /*--------------------------------------------------------------------*/
#
# $Id$
#
# $Log$
#
#========================= CHANGE AREA =========================
# Please update the change area according to your system.
# NOTE: you must also adapt the file src/globals.h and demo/demo.csh
# accordingly.
SHELL = /bin/sh
# where the binaries go
# BINDIR = /usr/local/bin/
# BINDIR = /RW/esprit/users/sander/PUBLIC/CMD/
BINDIR = BINPATHNAME
# where the manual pages go
# MANDIR = /usr/local/man/manl/
# MANDIR = /RW/esprit/users/sander/PUBLIC/MAN/
MANDIR = MANPATHNAME
# what the manual extension is
MANEXT = MANEXTNAME
# how the VCG tool should be called
# For the Sunview version I use the name vcg.
# For the X11 version I prefer the name xvcg.
# VCGTOOL = vcg
# VCGTOOL = xvcg
VCGTOOL = VCGNAME
# Note: you can test the tool before it is installed.
# Thus we need the path of the tool for the tests.
# It may also be the path of the tool after installation.
# Then use
VCGCALL = $(BINDIR)/$(VCGTOOL)
#
# Used during the demoanimations:
# where the vcg is during the tests.
# Please enter the absolute path to the VCG-tool.
# VCGCALL = /usr/local/bin/vcg
# VCGCALL = /RW/esprit/users/sander/PUBLIC/CMD/$(VCGTOOL)
#-------------------------- Flags ------------------------------
# Flags for the C compiler
# Important: Do not use -Dlint with gcc. This causes confusion
# during linking (!!!), e.g. some undefined messages.
#CFLAGS = -O -finline-functions
#CFLAGS = -O -finline-functions -DDRAWLIB_TOO_LARGE
#CFLAGS = -g -finline-functions -Wall
CFLAGS = CFLAGSNAME
# Flags for debugging
DFLAGS =
# Flags for the C linker
#CLINKFLAGS = -Bstatic -o
CLINKFLAGS = CLINKFLAGSNAME
# Include directories
# If you use gcc, it may happen that not all ANSI header files
# are on the right place. Example: we often have problems to
# find stdarg.h. Look for this file and add the directory here,
# e.g.:
# INCLUDES = /usr/local/include/gnuansi/
#
# For Sunview, this should be enough, because on Suns, Sunview
# is normally installed in standard directories:
# INCLUDES =
#
# For X11, it depends where it is installed. Look for Xlib.h,
# Xproto.h or Xutil.h.
# For instance, if you find /usr/local/X11/include/X11/Xlib.h
# then please use
# INCLUDES = -I/usr/local/X11/include/
# INCLUDES = -I/RW/esprit/X11R5/include/
INCLUDES = ADDINCLUDEPATHNAME
# Library directories
# For Sunview, this should be enough, because on Suns, Sunview
# is normally installed in standard directories:
# LIBPATH =
#
# For X11, it depends where it is installed. Look for libX.a,
# or libX11.so.<version_number>, or libXext.a, etc.
# For instance, if you find /usr/local/X11/lib/libX11.a
# then please use
# LIBPATH = -L/usr/local/X11/lib/
# LIBPATH = -L/RW/esprit/X11R5/lib/
LIBPATH = ADDLIBPATHNAME
# Libraries
# Libraries for SunView
# LIBRARIES = -lsuntool -lsunwindow -lpixrect -lm
#
# Libraries for X11
# LIBRARIES = -lXext -lX11 -lm
LIBRARIES = ADDLIBSNAME
#-------------------------- Tools ------------------------------
# C compiler
# CC = gcc -pipe
CC = CCNAME
# C linker
# CCLINK = gcc -static
CCLINK = CCLINKNAME
# If you use gcc and the sun driver, you need the normal sun
# preprocessor because of incompatibilities of the system libraries
CPP = $(CC) -E
# If you dont need a special preprocessor, change the .c.o rule or
# define this:
#CPP = cat
# Install software. You can use /bin/cp instead of /bin/install.
# I prefer that binaries are stripped.
# For directories:
# INSTALLDIR = /bin/install -d -m 755
INSTALLDIR = INSTALLDIRNAME
# For binary files:
# Assume that you want to install s file called dummy.
# INSTALL = /bin/install -s -m 755 dummy $(BINDIR)/dummy
INSTALL = INSTALLBINNAME
# For manual pages:
# Assume that you want to install s file called dummy.
# INSTALLMAN = /bin/install -m 644 dummy $(MANDIR)/dummy
INSTALLMAN = INSTALLMANNAME
# To make the documentation
LATEX = LATEXNAME
# To make the short documentation using big-latex
BIGLATEX = BIGLTEXNAME
# For the pictures, we need some transfig-tools.
# If the files doc/foldpath.tex, doc/foldpath.ps,
# doc/foldtree.tex, doc/foldtree.ps, doc/hideedge.tex,
# doc/hideedge.ps, doc/window.tex, doc/window.ps
# are available, we do not need this.
#
TRANSFIGTEX = FIGTOPSTOTEXNAME
TRANSFIGPS = FIGTODEVNAME
# The tools CHECKOUT, CHECKEDIT and CHECKIN are not needed unless
# you want to develop, change or maintain the VCG tool sources
# under control of RCS.
# RCS check out shellscript (normally not needed)
CHECKOUT = co
# RCS check edit shellscript (normally not needed)
CHECKEDIT = ce
# RCS check in shellscript (normally not needed)
CHECKIN = ci
# parser pregenerator. If the files src/grammar.y and src/grammar.l
# are available, you don't need this.
PARSEGEN = parsegen
# lex-compatible scanner generator
LEX = FLEXNAME
# yacc-compatible parser generator. Currently, it does not work
# with yacc because some bison features are used directly.
YACC = BISONNAME
# Make
# MAKE = make
MAKE = MAKENAME
# MakeDepend (should understand the -f option)
# DEPEND = makedepend
DEPEND = MAKEDEPENDNAME
# Streameditor
# SED = /bin/sed
SED = SEDNAME
# Move File
# MV = /bin/mv
MV = MVNAME
# Link Files (or Copy them)
# LN = /bin/ln -s
LN = LNNAME
# Remove File
# RM = /bin/rm
RM = RMNAME
# Change directory
CD = cd
# Touch file
# TOUCH = touch
TOUCH = TOUCHNAME
#==================== END OF CHANGE AREA ======================
#-------------------------- Files ------------------------------
# Directories
DIRECTORIES = src man demo doc expl
# The tarfiles of subdirectories, to make a distribution
SUBTARFILES = src/vcg.tar man/manpages.tar demo/demo.tar doc/doc.tar \
expl/expl.tar
# These files are generated, but included into a distribution.
# They are in the directory preconf.
GEN_DISTFILES = tMakefile src/globals.h demo/demo.csh
# Directories where we have something to make
MAKEDIRS = src demo man doc
# Directories where we have something to install
INSTDIRS = src demo man doc
#-------------------------- Rules ------------------------------
MAKEARGUS = \
SHELL="$(SHELL)" \
BINDIR="$(BINDIR)" \
MANDIR="$(MANDIR)" \
MANEXT="$(MANEXT)" \
VCGTOOL="$(VCGTOOL)" \
VCGCALL="$(VCGCALL)" \
CFLAGS="$(CFLAGS)" \
CLINKFLAGS="$(CLINKFLAGS)" \
DFLAGS="$(DFLAGS)" \
INCLUDES="$(INCLUDES)" \
LIBPATH="$(LIBPATH)" \
LIBRARIES="$(LIBRARIES)" \
CC="$(CC)" \
CCLINK="$(CCLINK)" \
CPP="$(CPP)" \
LATEX="$(LATEX)" \
BIGLATEX="$(BIGLATEX)" \
TRANSFIGTEX="$(TRANSFIGTEX)" \
TRANSFIGPS="$(TRANSFIGPS)" \
INSTALLDIR="$(INSTALLDIR)" \
INSTALL="$(INSTALL)" \
INSTALLMAN="$(INSTALLMAN)" \
CHECKOUT="$(CHECKOUT)" \
CHECKEDIT="$(CHECKEDIT)" \
CHECKIN="$(CHECKIN)" \
PARSEGEN="$(PARSEGEN)" \
LEX="$(LEX)" \
YACC="$(YACC)" \
MAKE="$(MAKE)" \
DEPEND="$(DEPEND)" \
SED="$(SED)" \
MV="$(MV)" \
LN="$(LN)" \
RM="$(RM)" \
CD="$(CD)" \
TOUCH="$(TOUCH)"
all: stamp-src stamp-demo stamp-doc stamp-shortdoc
stamp-src: src
($(CD) src; $(MAKE) $(MAKEARGUS))
$(TOUCH) stamp-src
stamp-demo: demo
($(CD) demo; $(MAKE) $(MAKEARGUS))
$(TOUCH) stamp-demo
stamp-doc: doc
($(CD) doc; $(MAKE) $(MAKEARGUS))
$(TOUCH) stamp-doc
stamp-shortdoc: doc
($(CD) doc; $(MAKE) $(MAKEARGUS) short)
$(TOUCH) stamp-shortdoc
demonstration: test
documentation: doc
shortdocu: stamp-shortdoc
install: stamp-src stamp-demo
for i in $(INSTDIRS) ;\
do \
($(CD) $$i; $(MAKE) $(MAKEARGUS) install); \
done
test: stamp-src stamp-demo
($(CD) demo; csh demo.csh);
clean:
for i in $(MAKEDIRS) ;\
do \
($(CD) $$i; $(MAKE) RM="$(RM)" clean); \
done
$(RM) -f stamp-* core
veryclean:
for i in $(MAKEDIRS) ;\
do \
($(CD) $$i; $(MAKE) RM="$(RM)" veryclean); \
done
$(RM) -f stamp-* core
targetclean:
for i in $(MAKEDIRS) ;\
do \
($(CD) $$i; $(MAKE) RM="$(RM)" targetclean); \
done
$(RM) -f stamp-* core
distclean:
for i in $(MAKEDIRS) ;\
do \
($(CD) $$i; $(MAKE) RM="$(RM)" distclean); \
done
$(RM) -f stamp-* core
depend:
for i in $(MAKEDIRS) ;\
do \
($(CD) $$i; $(MAKE) $(MAKEARGUS) depend); \
done
tar: tMakefile Makefile $(DIRECTORIES)
for i in $(DIRECTORIES) ;\
do \
($(CD) $$i; $(MAKE) $(MAKEARGUS) dist); \
done
tar -cf vcgcomplete.tar README README.SYS COPYING \
demotrue config tMakefile.tpl Makefile preconf $(SUBTARFILES)
dist: tar
# DO NOT DELETE THIS LINE -- make depend depends on it.
|