-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile.linux
49 lines (36 loc) · 977 Bytes
/
Makefile.linux
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
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 -lXext
XTLIB=-lXt
XLIB=-lX11
ifdef FI_USE_DMALLOC
THREADLIB = -lpthread -ldmallocth
CFLAGS = -I/usr/local/include
else
THREADLIB = -lpthread
endif
ifeq ($(MACHINE),x86)
CFLAGS = -m32
MAKE_SHARED = cc -m32 -shared
else
MAKE_SHARED = cc -shared
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 =
STD_DEFINES = -DSVR4 -DSYSV
AR = ar cq
include Makefile.generic