-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile.macos_common
45 lines (30 loc) · 1.01 KB
/
Makefile.macos_common
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
#
# Makefile.macos_common for CLIM 2.0
#
include Makefile.defs
SHARED_EXT = dylib
SHARED-XM-OBJS= climxm.dylib
SHARED-OL-OBJS= climol.dylib
Makefile=Makefile.macosx
XBASE:=$(shell brew --prefix)
XTBASE:=$(shell brew --prefix libx11)
MOTIFBASE:=$(shell brew --prefix openmotif)
SET_LIBRARY_PATH = LD_RUN_PATH=$(MOTIFBASE)/lib:$(XBASE)/lib:$(XTBASE)/lib:/lib:/usr/lib; export LD_RUN_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$(MOTIFBASE)/lib -weak-lXm
XTLIB=-L$(XBASE)/lib -weak-lXt
XLIB=-weak-lX11
XINCLUDES= -I$(XBASE)/include -I$(XTBASE)/include -I$(MOTIFBASE)/include
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
CODESIGN = yes
include Makefile.generic