File: Makefile.SunOS5.i386

package info (click to toggle)
euslisp 9.27%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 55,344 kB
  • sloc: ansic: 41,162; lisp: 3,339; makefile: 256; sh: 208; asm: 138; python: 53
file content (88 lines) | stat: -rw-r--r-- 2,676 bytes parent folder | download | duplicates (2)
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
# makefile for EusLisp on sun4 with SunOS (Solaris)
#RCSid="@(#)$Id: Makefile.SunOS5.i386,v 1.1.1.1 2003/11/20 07:46:22 eus Exp $"
#	Copyright (1988) Toshihiro MATSUI, Electrotechnical Laboratory
#	1989/Oct
#	1990/Sep	Second Tape Distribution
#	1997/Jul	SunOS5 * i386 * gcc
#########################################################################
# Customizable section begins
#########################################################################

ARCH=SunOS5

include Makefile.generic1

THREAD= -DTHREADED

#
# Select CFLAGS and XVERSION according to the version of SunOS and Xlib.
#
#CFLAGS=-D$(MACHINE) -Dbsd4_2
# 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)/include
#CFLAGS=-ansi -I/usr/include
CFLAGS=	-D$(MACHINE) -DSolaris2  -D_REENTRANT -DVERSION=\"$(VERSION)\" \
	-DGCC \
	-I/usr/include/X11 -I$(EUSDIR)/include $(THREAD)
# Use gcc for C-compiling on SunOS4. Sun's cc is ok on Solaris.
# /usr/ucb/cc cannot compile because of its incapability of recognizing
# prototype declarations.
# CC=cc
CC=gcc
LD=gcc

#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

# Solaris2
XLIB= -L/usr/openwin/lib -lX11 

# Solaris2
EUSLIB=-R$(ADLIBDIR):/usr/local/lib:/usr/openwin/lib \
 -L$(ADLIBDIR) -L/usr/local/lib

# for openGL or MESA
GLINCLUDE=-I/opt/Mesa/include/
# There sould be symbolic links
# such as SunOS5/lib/libGL.so ->/opt/Mesa/lib/libMesaGL.so
#GLLIB= -ltk -lGLU -lGL -lXext -leusgl
GLLIB=  -lGLU -lGL -lXext -leusgl

# If you don't like optimization, comment out the next line.
OFLAGS=-O
# link-editor's default flags
#LDFLAGS= -dy -Bdynamic 
SOFLAGS= -G

#LDFLAGS= -dy 
LDFLAGS= 

MAPOPTION= -Wl,-m 
MTCOBJECTS=  $(OBJDIR)/mthread.o
MTOBJECTS=  $(OBJDIR)/par.o  \
	  $(OBJDIR)/cyclic.o 

#################################################################
# end of the customizable section
################################################################

include Makefile.generic2