--- XmHTML-1.1.7/Makefile Thu Feb 4 00:43:27 1999
+++ XmHTML-1.1.7-patched/Makefile Thu Feb 21 10:23:43 2002
@@ -40,7 +40,7 @@
# remove the examples directory from this line.
# If you want to build the XmHTML tutorial examples, add the book directory.
-SUBDIRS= lib http examples tools
+SUBDIRS= lib
# some common definitions
#
@@ -64,7 +64,7 @@
# Compiler Settings #
# #
#####################
-CC = gcc
+CC = cc -fno-common
CFLAGS = -g -funroll-loops -Wall -pipe -ansi
LDFLAGS =
@@ -114,8 +114,8 @@
# HAVE_LIBPNG => png.h and zlib.h
# HAVE_LIBZ => zlib.h
-ZLIBINC =
-IMAGEINCLUDES = $(ZLIBINC)
+ZLIBINC = -I/usr/include
+IMAGEINCLUDES = -I@prefix@/include $(ZLIBINC)
# Image libraries
# No need to add -lXpm if you need to include it with LIBS below
@@ -125,8 +125,8 @@
# HAVE_LIBPNG => libpng and libz (and possibly libm)
# HAVE_LIBZ => libz (and possibly libm)
-ZLIBLIB = -lz -lm
-IMAGELIBS = -ljpeg -lpng $(ZLIBLIB)
+ZLIBLIB = -L/usr/lib -lz -lm
+IMAGELIBS = -L@prefix@/lib -ljpeg -lpng $(ZLIBLIB)
# It might be troublesome to know what the correct defines are for your
# system. A possible set of defines for some OS's is given below. Pick
@@ -173,7 +173,7 @@
# Platform specific includes
ifeq ($(PLATFORM),Motif)
-PLATFORMINC=-I../../include/XmHTML -I/usr/X11R6/include
+PLATFORMINC=-I../../include/XmHTML -I/usr/X11R6/include -I@prefix@/include
else
ifeq ($(PLATFORM),gtk)
PLATFORMINC=-I../../include/gtk-xmhtml -I/usr/local/include
@@ -192,7 +192,7 @@
# Motif version (default)
ifeq ($(PLATFORM),Motif)
-LIBDIR = -L/usr/X11R6/lib
+LIBDIR = -L/usr/X11R6/lib -L@prefix@/lib
# This is what is required under Linux (Motif 2.0.1).
# Your mileage may vary.
LIBS = -lXm -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE