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
|
# makefile for EusLisp on sun4 with SunOS (Solaris)
#
# Copyright (1988) Toshihiro MATSUI, Electrotechnical Laboratory
# 1989/Oct
# 1990/Sep Second Tape Distribution
# KOBJECTS --- eus kernel objects written in C
# NOKOBJECTS-- eus kernel, but cannot be optimized with -O option
# CLIBOBJECTS- functions written in C, not members of kernel
# LOBJECTS --- functions coded in EUSLISP; must be compiled with euscomp
# GEOOBJECTS-- geometric modeling functions and classes
# XOBJECTS---- Xwindow interface
# XTKOBJECTS---- Xwindow interface
# ARITHOBJECTS
# MTOBJECTS--- multithread functions
#
# Environment variable MACHINE should be set to sun4.
#########################################################################
# Customizable section begins
#########################################################################
################################################################
# Directory locations
################################################################
# the directory to make EusLisp
# use the EUSDIR environment variable
# EUSDIR=/usr/local/eus/
# the directory where resulted executables should be installed
PUBBINDIR=/usr/local/bin
# directories under EUSDIR
BINDIR=bin
CDIR=c
LDIR=l
LIBDIR=lib
CLIBDIR=clib
LLIBDIR=llib
GEODIR=geo
VISIONDIR=vision
COMPDIR=comp
DOCDIR=doc/latex
TOOLDIR=tool
XWINDOWDIR=xwindow
#
# Select CFLAGS and XVERSION according to the version of SunOS and Xlib.
#
#CFLAGS=-D$(MACHINE) -Dbsd4_2
#CFLAGS=-D$(MACHINE) -DSunOS4 -Dbsd4_2 -Bstatic -I/usr/share/include \
# -I/usr/share/include/X11 -I/usr/share/include/X11/xview
# For SunOS4.1, add "-DSunOS4_1" in the following CFLAGS definition.
# add -DSolaris2 -D_REENTRANT
#CFLAGS=-D$(MACHINE) -DSunOS4_1 -DGCC \
# -I/usr/share/include/X11 -I$(EUSDIR)/$(CDIR)
CFLAGS=-signed -G 0 -D$(MACHINE) -DGCC -DIRIX -DVERSION=\"$(VERSION)\" \
\
-I/usr/include -I/usr/include/X11 -I$(EUSDIR)/$(CDIR)
# Use gcc for C-compiling on SunOS4. Sun's cc is ok on Solaris.
# ucb cc cannot compile since it doesnot recognize prototype declarations.
#CC=cc
CC=gcc
# -I/usr/include \
#XVERSION=X_V11R2
#XVERSION=X_V11R3
XVERSION=X_V11R4
#
# L I B R A R I E S
# Three kinds of libraries are needed to build eus.
# 1. RAWLIB: unix libraries needed to make eus0-eus2
# 2. XLIB: X window libraries
# When you use a window toolkit, you may need to override the 'read'
# function in libc.a with a specific window library such as libXview.a.
# 3. EUSLIB: euslisp functions that cannot be linked in eus because of
# 'GLOBAL OFFSET TABLE OVERFLOW', that are xwindow interface functions.
# You may add any optional user-supplied library in EUSLIB.
# On Solaris, XLIB and EUSLIB are combined together into lib/libeusx.so.
# Solaris2
#RAWLIB=-lsocket -ldl -lnsl -lelf -lthread -lm
#
# 4.1.3
#RAWLIB=-ldl -lm
# IRIX
RAWLIB=-lsocket -lnsl -lelf -lm
# Solaris2
#XLIB=-L/usr/openwin/lib -lxview -lolgx -lX11
#XLIB= -L/usr/openwin/lib -lX11
#
# 4.1.3
# XLIB=-lX11
# IRIX
XLIB=-lX11
# Solaris2
#LIBEUSX=$(LIBDIR)/libeusx.so
#EUSLIB=-R/usr/openwin/lib -R$(EUSDIR)/$(LIBDIR):/usr/local/lib \
# -L$(EUSDIR)/$(LIBDIR) -L/usr/local/lib -leusx -leusimg
# IRIX
LIBEUSX=$(LIBDIR)/libeusx.so
EUSLIB= -L$(EUSDIR)/$(LIBDIR) -L/usr/local/lib -leusx # -leusimg
# 4.1.3
#EUSLIB=-L$(EUSDIR) -leusx
#EUSLIB=-L$(EUSDIR)$(LIBDIR) -leusx
# -L/home/etlss10/matsui/eus/lib
# -leusx
# -leus -leusgeo -leusx
#
# If you don't like optimization, comment out the next line.
#OFLAGS=-O
OFLAGS=
# link-editor's default flags
#LDFLAGS= -dy -Bdynamic
LDFLAGS= -rdynamic
SOFLAGS= -shared
# No multithread functions
MTOBJECTS=
MTCOBJECTS=
#################################################################
# end of the customizable section
################################################################
include Makefile.generic
|