|
Lines 1-37
Link Here
|
| 1 |
--- Makefile.orig |
1 |
--- Makefile.orig 2015-10-26 10:22:55 UTC |
| 2 |
+++ Makefile |
2 |
+++ Makefile |
| 3 |
@@ -46,7 +46,7 @@ |
3 |
@@ -61,7 +61,7 @@ HAVE_XPM=1 |
| 4 |
# remove the examples directory from this line. |
4 |
ifeq ($(OS),IRIX) |
| 5 |
# If you want to build the XmHTML tutorial examples, add the book directory. |
5 |
SUBDIRS= lib http |
| 6 |
|
6 |
else |
| 7 |
-SUBDIRS= lib http examples tools |
7 |
-SUBDIRS= lib http examples tools |
| 8 |
+SUBDIRS= lib http |
8 |
+SUBDIRS= lib http |
|
|
9 |
endif |
| 9 |
|
10 |
|
| 10 |
# some common definitions |
11 |
# some common definitions |
| 11 |
# |
12 |
@@ -81,7 +81,7 @@ RANLIB = ranlib |
| 12 |
@@ -61,7 +61,7 @@ |
13 |
endif |
| 13 |
RANLIB= ranlib |
|
|
| 14 |
|
14 |
|
| 15 |
SHELL = /bin/sh |
15 |
SHELL = /bin/sh |
| 16 |
-MAKE = make |
16 |
-MAKE = make |
| 17 |
+#MAKE = make |
17 |
+#MAKE = make |
| 18 |
# change this to makedepend if your system doesn't have gcc |
18 |
# change this to makedepend if your system doesn't have gcc |
| 19 |
MAKEDEPEND= gccmakedep |
19 |
MAKEDEPEND= gccmakedep |
| 20 |
|
20 |
|
| 21 |
@@ -70,9 +70,9 @@ |
21 |
@@ -99,9 +99,9 @@ endif |
| 22 |
# Compiler Settings # |
22 |
# Compiler Settings # |
| 23 |
# # |
23 |
# # |
| 24 |
##################### |
24 |
##################### |
| 25 |
-CC = gcc |
25 |
-CC = gcc |
| 26 |
-CFLAGS = -g -funroll-loops -Wall -pipe -ansi $(EXTRA_CFLAGS) |
26 |
-CFLAGS = -funroll-loops -Wall -pipe -ansi -fPIC $(OS_CFLAGS) $(EXTRA_CFLAGS) |
| 27 |
-LDFLAGS = |
27 |
-LDFLAGS = |
| 28 |
+#CC = gcc |
28 |
+#CC = gcc |
| 29 |
+#CFLAGS = -g -funroll-loops -Wall -pipe -ansi $(EXTRA_CFLAGS) |
29 |
+#CFLAGS = -funroll-loops -Wall -pipe -ansi -fPIC $(OS_CFLAGS) $(EXTRA_CFLAGS) |
| 30 |
+#LDFLAGS = |
30 |
+#LDFLAGS = |
| 31 |
|
31 |
|
| 32 |
# The following flags are *very* usefull if you are getting unresolved |
32 |
# The following flags are *very* usefull if you are getting unresolved |
| 33 |
# references to functions in libraries that you *know* to exist. |
33 |
# references to functions in libraries that you *know* to exist. |
| 34 |
@@ -125,7 +125,7 @@ |
34 |
@@ -160,7 +160,7 @@ endif |
| 35 |
# HAVE_LIBZ => zlib.h |
35 |
# HAVE_LIBZ => zlib.h |
| 36 |
|
36 |
|
| 37 |
ZLIBINC = |
37 |
ZLIBINC = |
|
Lines 40-55
Link Here
|
| 40 |
|
40 |
|
| 41 |
# Image libraries |
41 |
# Image libraries |
| 42 |
# No need to add -lXpm if you need to include it with LIBS below |
42 |
# No need to add -lXpm if you need to include it with LIBS below |
| 43 |
@@ -136,7 +136,7 @@ |
43 |
@@ -171,7 +171,7 @@ IMAGEINCLUDES = $(ZLIBINC) |
| 44 |
# HAVE_LIBZ => libz (and possibly libm) |
44 |
# HAVE_LIBZ => libz (and possibly libm) |
| 45 |
|
45 |
|
| 46 |
ZLIBLIB = -lz -lm |
46 |
ZLIBLIB = -lz -lm |
| 47 |
-IMAGELIBS = -ljpeg -lpng $(ZLIBLIB) |
47 |
-IMAGELIBS = -ljpeg -lpng $(ZLIBLIB) |
| 48 |
+IMAGELIBS = `libpng-config --libs` -L${LOCALBASE}/lib -ljpeg $(ZLIBLIB) |
48 |
+IMAGELIBS = `libpng-config --libs` -L${LOCALBASE}/lib -ljpeg $(LDFLAGS) |
| 49 |
|
49 |
|
| 50 |
# It might be troublesome to know what the correct defines are for your |
50 |
# It might be troublesome to know what the correct defines are for your |
| 51 |
# system. A possible set of defines for some OS's is given below. Pick |
51 |
# system. A possible set of defines for some OS's is given below. Pick |
| 52 |
@@ -176,7 +176,7 @@ |
52 |
@@ -211,7 +211,7 @@ IMAGELIBS = -ljpeg -lpng $(ZLIBLIB) |
| 53 |
# Add -DDEBUG to enable selective debug output (see the file DEBUGGING for more |
53 |
# Add -DDEBUG to enable selective debug output (see the file DEBUGGING for more |
| 54 |
# info). |
54 |
# info). |
| 55 |
# |
55 |
# |
|
Lines 58-78
Link Here
|
| 58 |
$(EXTRA_CPPFLAGS) \ |
58 |
$(EXTRA_CPPFLAGS) \ |
| 59 |
$(IMAGEDEFINES) \ |
59 |
$(IMAGEDEFINES) \ |
| 60 |
$(XFT_DEFINES) |
60 |
$(XFT_DEFINES) |
| 61 |
@@ -186,7 +186,7 @@ |
61 |
@@ -224,7 +224,7 @@ ifeq ($(TOOLKIT),Motif) |
| 62 |
|
62 |
ifeq ($(OS),IRIX) |
| 63 |
# Platform specific includes |
63 |
TOOLKITINC=-I../../include/XmHTML -I/usr/include |
| 64 |
ifeq ($(PLATFORM),Motif) |
64 |
else |
| 65 |
-PLATFORMINC=-I../../include/XmHTML -I/usr/X11R6/include -I/usr/include/freetype2 |
65 |
-TOOLKITINC=-I../../include/XmHTML -I/usr/X11R6/include -I/usr/include/freetype2 |
| 66 |
+PLATFORMINC=-I../../include/XmHTML `pkg-config --cflags xft` |
66 |
+TOOLKITINC=-I../../include/XmHTML `pkg-config --cflags xft` |
|
|
67 |
endif |
| 68 |
else |
| 69 |
ifeq ($(TOOLKIT),gtk) |
| 70 |
@@ -250,7 +250,7 @@ ifeq ($(TOOLKIT),Motif) |
| 71 |
ifeq ($(OS),IRIX) |
| 72 |
LIBDIR = -L/usr/lib32 |
| 67 |
else |
73 |
else |
| 68 |
ifeq ($(PLATFORM),gtk) |
|
|
| 69 |
PLATFORMINC=\ |
| 70 |
@@ -209,7 +209,7 @@ |
| 71 |
# Motif version (default) |
| 72 |
ifeq ($(PLATFORM),Motif) |
| 73 |
|
| 74 |
-LIBDIR = -L/usr/X11R6/lib |
74 |
-LIBDIR = -L/usr/X11R6/lib |
| 75 |
+LIBDIR = -L${LOCALBASE}/lib |
75 |
+LIBDIR = -L${LOCALBASE}/lib |
|
|
76 |
endif |
| 76 |
# This is what is required under Linux (Motif 2.0.1). |
77 |
# This is what is required under Linux (Motif 2.0.1). |
| 77 |
# Your mileage may vary. |
78 |
# Your mileage may vary. |
| 78 |
LIBS = -lXm -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE |
|
|