Skip to content
Snippets Groups Projects
Commit 2b0c2fa5 authored by Craig Lanning's avatar Craig Lanning
Browse files

Removed Makefiles

parent 117653ce
No related branches found
No related tags found
No related merge requests found
# If ../makefile.top doesn't exist, then you must specify HOST=xxx on the
# `make' command line.
include ../makefile.top
include ../makefile.defs
ifeq ($(OS_NAME),windows)
HOST = windows
endif
ifeq ($(OS_NAME),sunos)
ifeq ($(MACHINE),sparc)
HOST = sun4-svr4
endif
ifeq ($(MACHINE),x86_64)
HOST = solamd64
endif
endif
ifeq ($(OS_NAME),linux)
ifeq ($(MACHINE),ppc)
HOST = linuxppc
else
ifeq ($(MACHINE),arm64)
HOST = arm64
else
ifeq ($(SIXTYFOURBIT),yes)
HOST = amd64
else
HOST = linux
endif
endif
endif
endif
ifeq ($(OS_NAME),freebsd)
HOST = freebsd
endif
ifeq ($(OS_NAME),darwin)
HOST = macosx
endif
ifeq ($(OS_NAME),hp-ux)
ifeq ($(SIXTYFOURBIT),yes)
HOST = hp64
else
HOST = hpprism
endif
endif
ifeq ($(OS_NAME),irix)
HOST = sgi4d-svr4
endif
ifeq ($(OS_NAME),aix)
ifeq ($(SIXTYFOURBIT),yes)
HOST = power64
else
HOST = rs6000
endif
endif
ifeq ($(OS_NAME),osf1)
ifeq ($(MACHINE),alpha)
HOST = alpha
endif
endif
# If no HOST specified then we'd like to get an error immediately
# rather than ploughing on with an inappropriate default
ifndef HOST
HOST = unknown
endif
include Makefile.$(HOST)
# $Header: /repo/cvs.copy/clim2/Makefile.alpha,v 2.4 2003/12/15 18:35:11 layer Exp $
#
# Makefile.alpha for CLIM 2.0
include Makefile.defs
Makefile=Makefile.alpha
ifeq ($(SIXTYFOURBIT),yes)
CFLAGS = -O -G 0 -DAcl64Bit -resumption_safe
else
CFLAGS = -O -G 0 -taso -xtaso -xtaso_short -resumption_safe
endif
STD_DEFINES = -DDEC -DR5_XLIB -DSMT
AR = ar cqls
TKLIB=-lXm
XTLIB=-lXt
XLIB=-lX11
XINCLUDES=-I/usr/include
PRODUCT-OBJS= $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS) $(SHARED-XM-OBJS)
PICFLAGS =
SHAREFLAGS =
ifeq ($(SIXTYFOURBIT),yes)
MAKE_SHARED = sh ../src/bin/make_shared.dec64
else
MAKE_SHARED = sh ../src/bin/make_shared.dec
endif
include Makefile.generic
include Makefile.defs
Makefile=Makefile.amd64
ifeq ($(shell if test -d /usr/include/openmotif; then echo yes; fi),yes)
XINCLUDES = -I/usr/include/openmotif
XLIBDIR = /usr/lib64/openmotif
endif
# This is the old location, but include it here, just in case
ifeq ($(shell if test -d /usr/X11R6/include; then echo yes; fi),yes)
XINCLUDES = -I/usr/X11R6/include
XLIBDIR = /usr/X11R6/lib
endif
XINCLUDES ?= /usr/include
XLIBDIR ?= /usr/lib64
TKLIB=-lXm -lXpm -lXext -lXp
XTLIB=-lXt
XLIB=-lX11
ifdef FI_USE_DMALLOC
THREADLIB = -lpthread -ldmallocth
CFLAGS = -I/usr/local/include
else
THREADLIB = -lpthread
endif
SET_LIBRARY_PATH = LD_RUN_PATH=$(XLIBDIR):/lib:/usr/lib; export LD_RUN_PATH
PRODUCT-OBJS= $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS) $(SHARED-XM-OBJS)
#MOTIFXTRAS=-lgen
PICFLAGS = -fPIC
SHAREFLAGS =
MAKE_SHARED = ld -shared -L$(XLIBDIR)
STD_DEFINES = -DSVR4 -DSYSV
AR = ar cq
include Makefile.generic
include Makefile.defs
Makefile=Makefile.arm64
ifeq ($(shell if test -d /usr/include/openmotif; then echo yes; fi),yes)
XINCLUDES = -I/usr/include/openmotif
XLIBDIR = /usr/lib64/openmotif
endif
XINCLUDES ?= -I/usr/include
XLIBDIR ?= /usr/lib64
TKLIB=-lXm -lXpm -lXext -lXp
XTLIB=-lXt
XLIB=-lX11
CFLAGS = -fomit-frame-pointer -Wno-unused-result -Wno-pointer-to-int-cast -Wno-unused-but-set-variable -DAcl64Bit -march=armv8-a -mstrict-align
LDFLAGS = -E
ifdef FI_USE_DMALLOC
THREADLIB = -lpthread -ldmallocth
else
THREADLIB = -lpthread
endif
SET_LIBRARY_PATH = LD_RUN_PATH=$(XLIBDIR):/lib:/usr/lib; export LD_RUN_PATH
PRODUCT-OBJS= $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS) $(SHARED-XM-OBJS)
#MOTIFXTRAS=-lgen
PICFLAGS = -fPIC
SHAREFLAGS =
MAKE_SHARED = ld -shared -L$(XLIBDIR)
STD_DEFINES = -DSVR4 -DSYSV
AR = ar cq
include Makefile.generic
# $Id: Makefile.cobjs,v 2.4 2003/12/15 18:35:11 layer Exp $
#
# Makefile.cobj for CLIM 2.0
#
# stub files - identify the required definitions from Xm,Ol,Xt,X11
stub-motif.c: $(XMC_UNDEFS) $(XM_UNDEFS) misc/make-stub-file misc/make-stub-file1
sh misc/make-stub-file "void ___lisp_load_motif_stub ()" \
$(XM_UNDEFS) > stub-motif.c
sh misc/make-stub-file1 "void ___lisp_load_motif_stub_vars ()" \
$(XMC_UNDEFS) >> stub-motif.c
stub-olit.c: $(OLC_UNDEFS) $(OL_UNDEFS) misc/make-stub-file misc/make-stub-file1
sh misc/make-stub-file "void ___lisp_load_olit_stub ()" \
$(OL_UNDEFS) > stub-olit.c
sh misc/make-stub-file1 "void ___lisp_load_olit_stub_vars ()" \
$(OLC_UNDEFS) >> stub-olit.c
stub-xt.c: $(XT_UNDEFS) misc/make-stub-file
sh misc/make-stub-file "void ___lisp_load_xt_stub ()" \
$(XT_UNDEFS) > stub-xt.c
stub-x.c: $(UNDEFS) misc/make-stub-file
sh misc/make-stub-file "void ___lisp_load_x_stub ()" \
$(UNDEFS) > stub-x.c
stub-wnn.c: $(WNN_UNDEFS) misc/make-stub-file
sh misc/make-stub-file "void ___lisp_load_wnn_stub ()" \
$(WNN_UNDEFS) > stub-wnn.c
# support files - CLIM's C source files
xmsupport.o : misc/xmsupport.c misc/climgccursor.c \
misc/MyDrawingA.c misc/MyDrawingA.h misc/MyDrawingAP.h
$(CC) -c $(PICFLAGS) $(CFLAGS) $(XINCLUDES) \
-o xmsupport.o misc/xmsupport.c
olsupport.o: misc/olsupport.c misc/climgccursor.c
$(CC) -c $(PICFLAGS) $(CFLAGS) $(XINCLUDES) \
-o olsupport.o misc/olsupport.c
xtsupport.o : misc/xtsupport.c
$(CC) -c $(PICFLAGS) $(CFLAGS) $(XINCLUDES) \
-o xtsupport.o misc/xtsupport.c
xlibsupport.o : xlib/xlibsupport.c
$(CC) -c $(PICFLAGS) $(CFLAGS) $(XINCLUDES) \
-o xlibsupport.o xlib/xlibsupport.c
# .so's made from above support files (for dynamic loading)
climxm.$(SHARED_EXT): xlibsupport.o xtsupport.o xmsupport.o $(IMPORTS)
(eval '$(SET_LIBRARY_PATH)' ; \
$(MAKE_SHARED) $(SHAREFLAGS) -o climxm.$(SHARED_EXT) \
xlibsupport.o xtsupport.o xmsupport.o $(THREADLIB) \
$(IMPORTS) $(TKLIB) $(XTLIB) $(XLIB) $(MOTIFXTRAS))
# climxm.sl: xlibsupport.o xtsupport.o xmsupport.o $(IMPORTS)
# (eval '$(SET_LIBRARY_PATH)' ; \
# $(MAKE_SHARED) $(SHAREFLAGS) -o climxm.sl \
# xlibsupport.o xtsupport.o xmsupport.o \
# $(IMPORTS) $(TKLIB) $(XTLIB) $(XLIB) $(MOTIFXTRAS))
climol.$(SHARED_EXT): xlibsupport.o xtsupport.o olsupport.o $(IMPORTS)
(eval '$(SET_LIBRARY_PATH)' ; \
$(MAKE_SHARED) $(SHAREFLAGS) -o climol.$(SHARED_EXT) \
xlibsupport.o xtsupport.o olsupport.o \
$(IMPORTS) $(TKLIB) $(XTLIB) $(XLIB))
# climol.sl: xlibsupport.o xtsupport.o olsupport.o $(IMPORTS)
# (eval '$(SET_LIBRARY_PATH)' ; \
# $(MAKE_SHARED) $(SHAREFLAGS) -o climol.sl \
# xlibsupport.o xtsupport.o olsupport.o \
# $(IMPORTS) $(TKLIB) $(XTLIB) $(XLIB))
# mainxm.o contains foreign code from the libraries X11,Xt and Xm
# required by Motif version of CLIM statically linked
makemainxm: $(ACL_MAIN_OBJ) $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS)
(eval '$(SET_LIBRARY_PATH)' ; \
ld -r $(LDFLAGS) -o $(MAIN_OBJ) \
$(ACL_MAIN_OBJ) \
stub-xt.o stub-x.o stub-motif.o \
$(TKLIB) $(XTLIB) $(XLIB) $(MOTIFXTRAS))
# Here's the deal on the CLIM cobjs. (cim 3/13/96)
#
# 1. Objects that contain CLIM's C support code. When building a CLIM image
# these should always be linked in to the initial executable if possible.
# NB they are still required even if mainxm.o is being used.
#
# xtsupport.o
# xlibsupport.o
# xmsupport.o
#
# If they're not linked in then when climxm is loaded they will be
# loaded individually or in the case of dlfcn
#
# climxm.$(SHARED_EXT)
#
# (a shared library made from all of the above) will be loaded.
#
# 2. Stub files that define what we need from the X libraries -
#
# stub-xt.o
# stub-x.o
# stub-motif.o
#
# These also should always be linked in to the initial executable if
# possible. They are not required if mainxm.o is being used but using
# them will not do any harm as long as
#
# 3. All of the required functionality from the X libraries put into a
# single .o (with main for licensing restrictions on SunOS)
#
# mainxm.o
# ics_mainxm.o
#
# ics_mainxm.o is identical to mainxm.o except that it's built from a
# ci/main.o rather than a c/main.o
#
# in the distn
# mainxm.o -> dist-clim2/build/c/mainxm.o
# ics_mainxm.o -> dist-clim2-ics/build/ci/mainxm.o
#
# This needs to be used where the libraries are not available on the
# machine on which CLIM is being installed. If this is not available
# then the 3 stub files must be used.
#
# 4. Stub files + library for wnn
#
# stub-wnn.o
# libwnn.a
#
# Use both of these in creating the initial executable - the stub-wnn.o
# must come before the libwnn.a in the list of cobjs.
#
# On dlfcn we _have_ to link into the initial executable because we
# don't currently have a shared version of libwnn
# $Header: /repo/cvs.copy/clim2/Makefile.dec3100,v 2.4 2003/12/15 18:35:11 layer Exp $
#
# Makefile.dec3100 for CLIM 2.0
#
include Makefile.defs
Makefile=Makefile.dec3100
TKLIB=/usr/lib/DXM/lib/Xm/libXm.a
XTLIB=/usr/lib/DXM/lib/Xt/libXt.a
XLIB=/usr/lib/libX11.a
XINCLUDES=-I/usr/lib/DXM/lib -I/usr/lib/DXM/lib/Xt
include Makefile.generic
# $Id: Makefile.defs,v 2.6 2007/03/01 19:30:24 layer Exp $
#
# Makefile.defs for CLIM 2.0
# where to dump the CLIM images
CLIM = clim.dxl
SHARED_EXT = so
LISP = ../src/lispi$(exe)
DCL = dcli
# Set the case mode when building and dumping an image
# case_mode:
# ansi -- traditional case-insensitive upper-case CL
# modern -- case-sensitive lower-case CL
case_mode = modern
ifeq ($(case_mode),ansi)
CASE_MODE = :case-insensitive-upper
endif
ifeq ($(case_mode),modern)
CASE_MODE = :case-sensitive-lower
endif
ifndef CASE_MODE
..........................case_mode not defined or bad value...................
endif
# This controls whether patches are loaded before dumping an image.
# They should be loaded except during development
# load_patches:
# yes -- load them
# no -- don't load
load_patches = yes
ifeq ($(load_patches),no)
STOP_PATCHES = '(pushnew :clim-dont-load-patches *features*)'
endif
CL = $(LISP) -I $(DCL)
CLOPTS = -qq -batch -backtrace-on-error -locale japan.euc
RM = rm
CAT = cat
ECHO = echo
TAGS = etags
SHELL = sh
# Lisp optimization for compiling
SPEED ?= 3
SAFETY ?= 1
# This next should be set to 1 for distribution
DEBUG ?= 1
# Training
TRAIN_TIMES=1
# view, file, print
PSVIEW=:file
HPGLVIEW=:file
TRAIN_COMPILE=t
TRAIN_PROFILEP=t
TRAIN_BM=t
FRAME_TESTS=t
ifneq ($(OS_NAME),windows)
CFLAGS = -O -D_NO_PROTO -DSTRINGS_ALIGNED -DNO_REGEX -DNO_ISDIR \
-DUSE_RE_COMP -DUSER_GETWD
endif
# Used for tags
ALL_SRC = *.lisp */*.lisp *.cl */*.cl *.c */*.c *.h */*.h
# These are the files that make up the source code product.
PRODUCT_SRC_FILES = sys/*.lisp utils/*.lisp silica/*.lisp clim/*.lisp \
demo/*.lisp test/test-suite.lisp
ifneq ($(OS_NAME),windows)
# This has to be kept consistent with xlib/xlib-funs.lisp
UNDEFS=misc/undefinedsymbols
# This has to be kept consistent with tk/xt-funs.lisp
XT_UNDEFS=misc/undefinedsymbols.xt
# This has to be kept consistent with tk/xm-funs.lisp
XM_UNDEFS=misc/undefinedsymbols.motif
# This has to be kept consistent with tk/xm-classes.lisp
XMC_UNDEFS=misc/undefinedsymbols.cmotif
# This has to be kept consistent with tk/ol-funs.lisp
OL_UNDEFS=misc/undefinedsymbols.olit
# This has to be kept consistent with tk/ol-classes.lisp
OLC_UNDEFS=misc/undefinedsymbols.colit
# This has to be kept consistent with wnn/jl-funs.lisp
WNN_UNDEFS=misc/undefinedsymbols.wnn
# These are the fasls and the .o that form the product
PRODUCT-GENERIC-FASLS = \
climg.fasl climdemo.fasl clim-debug.fasl climps.fasl \
climhpgl.fasl # climgg.fasl
PRODUCT-XM-FASLS = climxm.fasl clim-debugxm.fasl
PRODUCT-OL-FASLS = climol.fasl clim-debugol.fasl
PRODUCT-WNN-FASLS = climwnn.fasl clim-debugwnn.fasl
PRODUCT-GENERIC-OBJS= \
stub-xt.o stub-x.o xtsupport.o xlibsupport.o
STATIC-XM-OBJS= stub-motif.o xmsupport.o
SHARED-XM-OBJS= climxm.$(SHARED_EXT)
STATIC-OL-OBJS= stub-olit.o olsupport.o
SHARED-OL-OBJS= climol.$(SHARED_EXT)
WNNLIB = libwnn.a
STATIC-WNN-OBJS=stub-wnn.o $(WNNLIB)
SYSTEM= motif-clim
PRODUCT-FASLS= $(PRODUCT-GENERIC-FASLS) $(PRODUCT-XM-FASLS)
PRODUCT-OBJS= $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS)
ICS-PRODUCT-FASLS= $(PRODUCT-WNN-FASLS)
ICS-PRODUCT-OBJS= $(STATIC-WNN-OBJS)
else
# this is for Windows.
# I don't know if we need the other things too.
PRODUCT-GENERIC-FASLS = \
climg.fasl climdemo.fasl climps.fasl
PRODUCT-WIN32-FASLS = climnt.fasl
SYSTEM= aclnt-clim
PRODUCT-FASLS = $(PRODUCT-GENERIC-FASLS) $(PRODUCT-WIN32-FASLS)
endif
# not used anymore
make = xxx
BENCHMARK_FILE=nil
# $Id: Makefile.freebsd,v 2.4 2003/12/15 18:35:11 layer Exp $
include Makefile.defs
Makefile=Makefile.freebsd
XINCLUDES=-I/usr/X11R6/include -I /usr/local/include
TKLIB=-lXm -lXpm -lXext -lXp
XTLIB=-lXt -lSM -lICE
XLIB=-lX11
SET_LIBRARY_PATH = LD_RUN_PATH=/usr/X11R6/lib:/lib:/usr/lib:/usr/local/lib; export LD_RUN_PATH
PRODUCT-OBJS= $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS) $(SHARED-XM-OBJS)
#MOTIFXTRAS=-lgen
PICFLAGS = -fPIC -DPIC
SHAREFLAGS =
MAKE_SHARED = ld -Bshareable -Bdynamic -L/usr/X11R6/lib -L/usr/local/lib
STD_DEFINES =
AR = ar cq
include Makefile.generic
# $Id: Makefile.generic,v 2.5 2004/03/26 15:07:35 layer Exp $
# Makefile.generic for CLIM 2.0
all: compile cat # $(CLIM)
makeclimfasls: compile cat
ifneq ($(OS_NAME),windows)
compile_depends = wnn.$(SHARED_EXT)
endif
ifeq ($(OS_NAME),windows)
build_runlisp_args = -o build.out
concat_runlisp_args = -o concat.out
endif
compile: FORCE $(PRODUCT-OBJS) $(ICS-PRODUCT-OBJS) $(compile_depends)
rm -f build.tmp
echo '(setq sys::*libtk-pathname* "$(TKLIB)")' >> build.tmp
echo '(setq sys::*libxt-pathname* "$(XTLIB)")' >> build.tmp
echo '(setq sys::*libx11-pathname* "$(XLIB)")' >> build.tmp
echo '(setq sys::*libwnn-pathname* "$(WNNLIB)")' >> build.tmp
echo '(excl:set-case-mode $(CASE_MODE))' >> build.tmp
echo $(STOP_PATCHES) >> build.tmp
echo '(load "misc/compile-1.lisp")' >> build.tmp
echo '(declaim (optimize (speed $(SPEED)) (debug $(DEBUG)) (safety $(SAFETY))))' >> build.tmp
echo '(setq *compile-print* $(compile_print))' >> build.tmp
echo '(setq *compile-verbose* $(compile_verbose))' >> build.tmp
echo '(setq excl::*warn-smp-usage* nil)' >> build.tmp
echo '(setq excl:*redefinition-warnings* $(redef_warning))' >> build.tmp
echo '(setq excl:*record-source-file-info* $(RECORD_SOURCE_FILE_INFO))' >> build.tmp
echo '(setq comp:save-local-names-switch $(SAVE_LOCAL_NAMES))' >> build.tmp
echo '(setq comp:save-source-level-debug-info-switch $(SAVE_SOURCE_DEBUG))' >> build.tmp
echo '(setq excl:*load-local-names-info* $(LOAD_LOCAL_NAMES_INFO))' >> build.tmp
echo '(setq excl:*load-source-file-info* $(LOAD_SOURCE_FILE_INFO))' >> build.tmp
echo '(setq excl:*record-xref-info* $(RECORD_XREF_INFO))' >> build.tmp
echo '(setq excl:*load-xref-info* $(LOAD_XREF_INFO))' >> build.tmp
echo '(setf (sys:gsgc-switch :print) $(gc_print))' >> build.tmp
echo '(compile-it (quote $(SYSTEM)))' >> build.tmp
echo '(exit 0)' >> build.tmp
(eval '$(SET_LIBRARY_PATH)'; \
bash ../src/runlisp.sh -f build.tmp $(build_runlisp_args) \
$(CL) $(CLOPTS))
# Concatenation
cat: compile
rm -f cat.tmp
echo '(load "misc/compile-1.lisp")' >> cat.tmp
echo '(setf (sys:gsgc-switch :print) $(gc_print))' >> cat.tmp
echo '(concatenate-it (quote $(SYSTEM)))' >> cat.tmp
echo '(exit 0)' >> cat.tmp
(eval '$(SET_LIBRARY_PATH)'; \
bash ../src/runlisp.sh -f cat.tmp $(concat_runlisp_args) \
$(CL) $(CLOPTS))
ls -lt $(PRODUCT-FASLS) $(ICS-PRODUCT_FASLS) >> Clim-sizes.n
ls -lt $(PRODUCT-FASLS) $(ICS-PRODUCT_FASLS)
$(PRODUCT-FASLS) $(ICS-PRODUCT_FASLS): cat
# Building (loading and dumping)
# It is VERY important not to side-effect
# logical-pathname-translations-database-pathnames in the building phase of
# clim*.dxl. The reason: this change is propagated to delivered images,
# which is very bad. Mostly, it's bad for testing because usually the
# value of (current-directory) below is accessible during testing and it is
# the wrong thing (we always want sys:hosts.cl to be used when testing a
# distribution that users will get).
$(CLIM): FORCE $(PRODUCT-OBJS) $(ICS-PRODUCT-OBJS)
-$(RM) -f $(CLIM)
(eval '$(SET_LIBRARY_PATH)' ; \
$(ECHO) " \
(progn \
(generate-application \
\"$(CLIM)\" \"./\" \
nil \
:pre-load-form \
(quote \
(progn \
(setq sys::*libtk-pathname* \"$(TKLIB)\") \
(setq sys::*libxt-pathname* \"$(XTLIB)\") \
(setq sys::*libx11-pathname* \"$(XLIB)\") \
(setq sys::*libwnn-pathname* \"$(WNNLIB)\") \
(excl:set-case-mode $(CASE_MODE)) \
(load \"misc/dev-load-1.lisp\") \
(load-it '$(SYSTEM)))) \
:autoload-warning nil \
:image-only t \
:purify t \
:debug-on-error t \
:internal-debug \"build-clim.out\" \
:shlib-warning nil \
:libfasl-warning nil \
:record-source-file-info $(RECORD_SOURCE_FILE_INFO) \
:load-source-file-info $(LOAD_SOURCE_FILE_INFO) \
:record-xref-info $(RECORD_XREF_INFO) \
:load-xref-info $(LOAD_XREF_INFO) \
:discard-local-name-info t \
:discard-source-file-info t \
:discard-xref-info t) \
(exit 0))" | $(CL) $(CLOPTS))
@ls -lLt $(CLIM) >> Clim-sizes.n
@ls -lLt $(CLIM)
@echo $(SYSTEM) built!!!!
# Training
train: FORCE
(eval '$(SET_LIBRARY_PATH)' ; \
$(ECHO) " \
(progn \
(load \"misc/train.lisp\") \
(train-clim :frame-tests $(FRAME_TESTS) :train-times $(TRAIN_TIMES) \
:benchmarkp $(TRAIN_BM) :profilep $(TRAIN_PROFILEP) \
:compile $(TRAIN_COMPILE) :psview $(PSVIEW) \
:hpglview $(HPGLVIEW)))" \
| $(LISP) -I $(CLIM) $(CLOPTS))
echo $(SYSTEM) trained!!!!
# the following two rules are used by make-dist so that we don't have
# to build a slim image to run the test suite
load-train: FORCE
(eval '$(SET_LIBRARY_PATH)' ; \
$(ECHO) " \
(setq sys::*libtk-pathname* \"$(TKLIB)\") \
(setq sys::*libxt-pathname* \"$(XTLIB)\") \
(setq sys::*libx11-pathname* \"$(XLIB)\") \
(setq sys::*libwnn-pathname* \"$(WNNLIB)\") \
(load \"misc/dev-load-1.lisp\") \
(load-it '$(SYSTEM)) \
(load \"misc/train.lisp\") \
(train-clim :frame-tests $(FRAME_TESTS) :train-times $(TRAIN_TIMES) \
:benchmarkp $(TRAIN_BM) :profilep $(TRAIN_PROFILEP) \
:compile $(TRAIN_COMPILE) :psview $(PSVIEW) \
:hpglview $(HPGLVIEW) :report-file \"$(REPORT_FILE)\") \
(clim-test::generate-pretty-test-report :file \"$(REPORT_FILE)\")" \
| $(LISP) -I $(CLIM) $(CLOPTS))
generate_test_report: FORCE
($(ECHO) " \
(clim-test::generate-pretty-test-report :file \"$(REPORT_FILE)\")" \
| $(LISP) -I $(CLIM) $(CLOPTS))
profile: FORCE
($(ECHO) " \
(clim-user::run-profile-clim-tests)" \
| $(LISP) -I $(CLIM) $(CLOPTS))
benchmark: FORCE
($(ECHO) " \
(clim-test::benchmark-clim $(BENCHMARK_FILE))" \
| $(LISP) -I $(CLIM) $(CLOPTS))
testps: FORCE
($(ECHO) " \
(load \"test/postscript-tests.lisp\") \
(clim-user::run-postscript-tests :output $(PSVIEW))" \
| $(LISP) -I $(CLIM) $(CLOPTS))
# Misc
cleanobjs:
rm -f *.o
cleanfasls: FORCE
find . -name '*.fasl' -print | xargs rm -f
clean:
rm -f *.out *.tmp
find . -name '*.fasl' -print | xargs rm -f
rm -f *.o *.$(SHARED_EXT) *.a slim \
stub-motif.c stub-olit.c stub-xt.c stub-x.c stub-wnn.c
rm -f *.z *.Z *.gz *.ilt so_locations
rm -f *.pll *.dxl
clean-notes:
cd notes; find . -name '*.lisp' -print | xargs rm -f
tags: FORCE
rm -f TAGS
find . -name '*.lisp' -print | xargs $(TAGS) -a
wc:
wc $(ALL_SRC)
echo_XTLIB:
@echo $(XTLIB)
echo_XLIB:
@echo $(XLIB)
echo_TKLIB:
@echo $(TKLIB)
echo_WNNLIB:
@echo $(WNNLIB)
makeclimobjs: $(PRODUCT-OBJS) $(ICS-PRODUCT-OBJS)
install_obj:
cp $(PRODUCT-OBJS) $(ICS-PRODUCT-OBJS) $(DEST)
install_clim: install_obj
cp $(PRODUCT-FASLS) $(ICS-PRODUCT-FASLS) $(DEST)
echo_src_files:
@echo $(PRODUCT_SRC_FILES)
include Makefile.cobjs
include Makefile.wnn
FORCE:
# $Header: /repo/cvs.copy/clim2/Makefile.hp64,v 2.4 2003/12/15 18:35:11 layer Exp $
#
# Makefile.hpprism for CLIM 2.0
#
include Makefile.defs
Makefile=Makefile.hp64
SET_LIBRARY_PATH = \
LD_LIBRARY_PATH=/usr/lib/pa20_64:/lib:/usr/lib:$(LD_LIBRARY_PATH); export LD_LIBRARY_PATH
STD_DEFINES = -DSYSV
AR = ar clq
#TKLIB=-lXm
TKLIB=/usr/lib/pa20_64/libXm.4 /usr/lib/pa20_64/libXp.2 /usr/lib/pa20_64/libXext.3
XTLIB=/usr/lib/pa20_64/libXt.3 /usr/lib/pa20_64/libSM.2 /usr/lib/pa20_64/libICE.2
XLIB=/usr/lib/pa20_64/libX11.3
XINCLUDES=
CC= /usr/bin/cc
CFLAGS= -O -Ae +DA2.0W -DAcl64Bit
MOTIFXTRAS=-lc
PICFLAGS = +Z
SHAREFLAGS =
MAKE_SHARED = ld -b +s
PRODUCT-OBJS= $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS) $(SHARED-XM-OBJS)
include Makefile.generic
# $Header: /repo/cvs.copy/clim2/Makefile.hpprism,v 2.4 2003/12/15 18:35:11 layer Exp $
#
# Makefile.hpprism for CLIM 2.0
#
include Makefile.defs
SHARED_EXT = sl
SHARED-XM-OBJS= climxm.sl
SHARED-OL-OBJS= climol.sl
Makefile=Makefile.hpprism
SET_LIBRARY_PATH = \
LPATH=/lib/pa1.1:/lib:/usr/lib:$(LPATH); export LPATH
#CL=../src/xm-dcl
STD_DEFINES = -DSYSV
AR = ar clq
#TKLIB=-lXm
TKLIB=/lib/libXm.1
XTLIB=-lXt
XLIB=-lX11
XINCLUDES=
CC= /usr/bin/cc
CFLAGS= -O -Ae +DA1.1
MOTIFXTRAS=-lc
PICFLAGS = +Z
SHAREFLAGS =
MAKE_SHARED = ld -b
PRODUCT-OBJS= $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS) $(SHARED-XM-OBJS)
include Makefile.generic
include Makefile.defs
Makefile=Makefile.linux
ifeq ($(shell if test -d /usr/include/openmotif; then echo yes; fi),yes)
XINCLUDES = -I/usr/include/openmotif
XLIBDIR = /usr/lib/openmotif
endif
# This is the old location, but include it here, just in case
ifeq ($(shell if test -d /usr/X11R6/include; then echo yes; fi),yes)
XINCLUDES = -I/usr/X11R6/include
XLIBDIR = /usr/X11R6/lib
endif
XINCLUDES ?= /usr/include
XLIBDIR ?= /usr/lib
TKLIB=-lXm -lXpm -lXext -lXp
XTLIB=-lXt
XLIB=-lX11
ifdef FI_USE_DMALLOC
THREADLIB = -lpthread -ldmallocth
CFLAGS = -I/usr/local/include
else
THREADLIB = -lpthread
endif
SET_LIBRARY_PATH = LD_RUN_PATH=$(XLIBDIR):/lib:/usr/lib; export LD_RUN_PATH
PRODUCT-OBJS= $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS) $(SHARED-XM-OBJS)
#MOTIFXTRAS=-lgen
#PICFLAGS = -K pic
SHAREFLAGS =
MAKE_SHARED = ld -shared -L$(XLIBDIR)
STD_DEFINES = -DSVR4 -DSYSV
AR = ar cq
include Makefile.generic
# $Id: Makefile.linuxppc,v 2.4 2003/12/15 18:35:11 layer Exp $
include Makefile.defs
Makefile=Makefile.linuxppc
XINCLUDES=-I/usr/X11R6/include
TKLIB=-lXm -lXpm -lXext -lXp
XTLIB=-lXt -lSM -lICE
XLIB=-lX11
SET_LIBRARY_PATH = LD_RUN_PATH=/usr/X11R6/lib:/lib:/usr/lib:/usr/local/lib; export LD_RUN_PATH
PRODUCT-OBJS= $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS) $(SHARED-XM-OBJS)
#MOTIFXTRAS=-lgen
PICFLAGS = -fPIC
SHAREFLAGS =
MAKE_SHARED = ld -shared -L/usr/X11R6/lib -L/usr/local/lib
STD_DEFINES = -DSVR4 -DSYSV
AR = ar cq
include Makefile.generic
# $Id: Makefile.macosx,v 2.6 2006/04/12 03:53:55 layer Exp $
#
# Makefile.macosx for CLIM 2.0
#
include Makefile.defs
SHARED_EXT = dylib
SHARED-XM-OBJS= climxm.dylib
SHARED-OL-OBJS= climol.dylib
Makefile=Makefile.macosx
# removed /usr/local/lib:
SET_LIBRARY_PATH =
#CL=../src/xm-dcl
# Since the linker hard-codes the truenames of these libraries and
# loading climxm.dylib fails when users attempt to load it with the
# files missing, we use -weak-l and preload the libraries (see
# tk/load-xm.lisp):
TKLIB=-L/opt/local/lib -L/usr/local/lib -weak-lXm
XTLIB=-L/usr/X11/lib -weak-lXt
XLIB=-weak-lX11
XINCLUDES=-I/usr/X11R6/include -I/opt/local/include -I/usr/local/include
ifeq ($(SIXTYFOURBIT),yes)
CFLAGS = -arch x86_64 -DAcl64Bit
MAKE_SHARED = ld -arch x86_64 -bundle /usr/lib/bundle1.o -force_cpusubtype_ALL -flat_namespace
else
ifeq ($(MACHINE),x86)
CFLAGS= -arch i386
MAKE_SHARED = ld -arch i386 -bundle /usr/lib/bundle1.o -force_cpusubtype_ALL -flat_namespace
else
CFLAGS=
MAKE_SHARED = ld -bundle /usr/lib/bundle1.o -force_cpusubtype_ALL -flat_namespace
endif
endif
PICFLAGS =
SHAREFLAGS =
AR = ar cq
# Make sure the wnn build is happy:
REDHATLIBS = -lc
PRODUCT-OBJS= $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS) $(SHARED-XM-OBJS)
IMPORTS = stub-x.o stub-xt.o stub-motif.o
include Makefile.generic
# $Header: /repo/cvs.copy/clim2/Makefile.power64,v 2.4 2003/12/15 18:35:11 layer Exp $
#
# Makefile.rs6000 for CLIM 2.0
#
include Makefile.defs
Makefile=Makefile.power64
## For info on Motif1.2 vs Motif 2.1, see /usr/lpp/X11/README
##
CFLAGS = -q64 -DAcl64Bit -O -D_BSD -I/usr/include/Motif1.2
### the R5 directory contains Motif 1.2 on loveshaq
### -- what a botch. Can't use the latest X11 just because we want
### to use an older Motif! How I love AIX.... not!
SET_LIBRARY_PATH= \
LIBPATH=/usr/lpp/X11/lib/R6:/lib:/usr/lib; export LIBPATH; env
TKLIB=-L/usr/lpp/X11/lib/R6/Motif2.1 -lXm
XTLIB=-lXt
XLIB=-lX11
XINCLUDES= -I/usr/include/Motif2.1
PRODUCT-OBJS= $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS) $(SHARED-XM-OBJS)
MAKE_SHARED = sh ../src/bin/make_shared.ibm64 -make_exp ../src/bin/make_exp
STD_DEFINES =
AR = ar -X64 clq
# This should be defined in make-dist. For CLIM devel (ie making
# slim images) we use climdcl-devel and don't use the shared library
IMPORTS = stub-x.o stub-xt.o stub-motif.o ../src/lisp.exp
stubs = c2stubs
include Makefile.generic
# $Header: /repo/cvs.copy/clim2/Makefile.rs6000,v 2.5 2004/03/11 02:13:07 layer Exp $
#
# Makefile.rs6000 for CLIM 2.0
#
include Makefile.defs
Makefile=Makefile.rs6000
## For info on Motif1.2 vs Motif 2.1, see /usr/lpp/X11/README
CFLAGS = -O -D_BSD -I/usr/include/Motif2.1
SET_LIBRARY_PATH= \
LIBPATH=/usr/lpp/X11/lib/R6:/lib:/usr/lib; export LIBPATH; env
TKLIB=-L/usr/lpp/X11/lib/R6 -lXm
XTLIB=-lXt
XLIB=-lX11
XINCLUDES= -I/usr/include/Motif2.1
PRODUCT-OBJS= $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS) $(SHARED-XM-OBJS)
MAKE_SHARED = sh ../src/bin/make_shared.ibm -make_exp ../src/bin/make_exp
STD_DEFINES =
AR = ar clq
# This should be defined in make-dist. For CLIM devel (ie making
# slim images) we use climdcl-devel and don't use the shared library
IMPORTS = stub-x.o stub-xt.o stub-motif.o ../src/lisp.exp
stubs = c2stubs
include Makefile.generic
# $Id: Makefile.sgi4d-svr4,v 2.4 2003/12/15 18:35:11 layer Exp $
#
# Makefile.sigi4d-svr4 for CLIM 2.0
#
include Makefile.defs
Makefile=Makefile.sgi4d-svr4
TKLIB=-lXm
XTLIB=-lXt
XLIB=-lX11 # -lcvt
XINCLUDES=-I/usr/include
PRODUCT-OBJS = $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS) $(SHARED-XM-OBJS)
PICFLAGS = -KPIC -n32
SHAREFLAGS =
MAKE_SHARED = ld -n32 -shared -all
STD_DEFINES = -DSVR4
AR = /usr/bin/ar cq
include Makefile.generic
# $Id: Makefile.solamd64,v 2.1 2005/08/03 05:07:13 layer Exp $
#
# Makefile.sun4-svr4 for CLIM 2.0
#
include Makefile.defs
Makefile=Makefile.sun4-svr4
# for other Motif versions use
# /net/sole/opt/ICS/Motif1.2.4/usr/include
# /net/vapor/3rd/motif-1.2.2-sol2/ICS/Motif/usr/include
XINCLUDES=-I/usr/openwin/include -I/usr/dt/include
# on sol7 and later -lXm is motif 2, and we need 1.x.
## Let's try it again, anyway, since sparc64 has no 1.x:
TKLIB=-lXm
#TKLIB=/usr/dt/lib/libXm.so.3
XTLIB=-lXt
XLIB=-lX11
CFLAGS = -xarch=amd64 -DAcl64Bit
SET_LIBRARY_PATH= \
LD_LIBRARY_PATH=/usr/lib/amd64; export LD_LIBRARY_PATH
# for other Motif versions use
# /net/sole/opt/ICS/Motif1.2.4/usr/lib:/usr/lib
# /net/vapor/3rd/motif-1.2.2-sol2/ICS/Motif/usr/lib:/usr/lib
PRODUCT-OBJS= $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS) $(SHARED-XM-OBJS)
# from here on this file should be the same as Makefile.sun4-svr4-ol
MOTIFXTRAS=-lgen
PICFLAGS = -KPIC
SHAREFLAGS =
MAKE_SHARED = ld -G -64
STD_DEFINES =
AR = ar cq
include Makefile.generic
# $Header: /repo/cvs.copy/clim2/Makefile.sun4,v 2.4 2003/12/15 18:35:11 layer Exp $
#
# Makefile.sun4 for CLIM 2.0
#
include Makefile.defs
Makefile=Makefile.sun4
MOTIFHOME=/net/vapor/3rd/motif-1.2.4
XINCLUDES=-I$(MOTIFHOME)/usr/include
TKLIB=$(MOTIFHOME)/usr/lib/libXm.a
XTLIB=/net/louie/malle/colin/X11R5/Ximp-libs/libXt.a
XLIB=/net/louie/malle/colin/X11R5/Ximp-libs/libX11.a
AR = ar cq
include Makefile.generic
# $Id: Makefile.sun4-svr4,v 2.4 2003/12/15 18:35:11 layer Exp $
#
# Makefile.sun4-svr4 for CLIM 2.0
#
include Makefile.defs
Makefile=Makefile.sun4-svr4
# for other Motif versions use
# /net/sole/opt/ICS/Motif1.2.4/usr/include
# /net/vapor/3rd/motif-1.2.2-sol2/ICS/Motif/usr/include
XINCLUDES=-I/usr/openwin/include -I/usr/dt/include
# on sol7 and later -lXm is motif 2, and we need 1.x.
## Let's try it again, anyway, since sparc64 has no 1.x:
TKLIB=-lXm
#TKLIB=/usr/dt/lib/libXm.so.3
XTLIB=-lXt
XLIB=-lX11
ifeq ($(SIXTYFOURBIT),yes)
CFLAGS = -xarch=v9 -DAcl64Bit
SET_LIBRARY_PATH= \
LD_LIBRARY_PATH=/usr/lib/sparcv9; export LD_LIBRARY_PATH
else
SET_LIBRARY_PATH= \
LD_LIBRARY_PATH=/usr/dt/lib:/usr/openwin/lib:/usr/lib; export LD_LIBRARY_PATH
endif
# for other Motif versions use
# /net/sole/opt/ICS/Motif1.2.4/usr/lib:/usr/lib
# /net/vapor/3rd/motif-1.2.2-sol2/ICS/Motif/usr/lib:/usr/lib
PRODUCT-OBJS= $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS) $(SHARED-XM-OBJS)
# from here on this file should be the same as Makefile.sun4-svr4-ol
MOTIFXTRAS=-lgen
PICFLAGS = -K pic
SHAREFLAGS =
MAKE_SHARED = ld -G
STD_DEFINES = -DSVR4 -DSYSV
AR = ar cq
include Makefile.generic
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment