##############################################################################
#
# # Makefile.unixware:
# # XmHTMl makefile for Unixware 2.1.1, gcc 2.7.2.1, X11R5, Motif 1.2.3.
# # Contributed by: Thanh Ma (tma@encore.com)
# # Adjust at will
# #
#
##############################################################################
#
# # (C)Copyright 1995-1996 Ripley Software Development
# # All Rights Reserved
# #
# # This file is part of the XmHTML Widget Library.
# #
# # This library is free software; you can redistribute it and/or
# # modify it under the terms of the GNU Library General Public
# # License as published by the Free Software Foundation; either
# # version 2 of the License, or (at your option) any later version.
# #
# # This library is distributed in the hope that it will be useful,
# # but WITHOUT ANY WARRANTY; without even the implied warranty of
# # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# # Library General Public License for more details.
# #
# # You should have received a copy of the GNU Library General Public
# # License along with this library; if not, write to the Free
# # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
##############################################################################
# Don't change this number! VERSION = 1016 ARCHIVE = 1.0.16
# Directories in which to build. If you don't want the examples build, #
remove the examples directory from this line, likewise for the tools
SUBDIRS= src examples tools
# some common definitions # CP = cp RM = rm -f MV = mv
# for building the library. AR = ar cq # replace with echo if you system
doesn't have/need ranlib RANLIB= echo
SHELL = /bin/sh MAKE = make # change this to makedepend if your
system doesn't have gcc MAKEDEPEND= gccmakedep
##################### # # # Compiler Settings # #
# ##################### CC = gcc CFLAGS = -g -funroll-loops -Wall
-pipe -ansi LDFLAGS =
# Image Support # libXpm *is* required # JPEG images (jpeglib.h and libjpeg
required) => -DHAVE_JPEG # PNG images (png.h and libz _and_ libpng
required) => -DHAVE_PNG
IMAGEDEFINES = #-DHAVE_JPEG -DHAVE_PNG
# Header file locations. Add path to xpm.h if it isn't in the X11 include #
directory. IMAGEINCLUDES =
# Image libraries # No need to add -lXpm if you need to include it with
LIBS below IMAGELIBS = #-ljpeg -lpng -lz -lm
# It might be troublesome to know what the correct defines are for your #
system. # HPUX user probably have to add -D_HPUX_SOURCE -D_POSIX_SOURCE #
Linux needs -D_BSD_SOURCE or the compiler barfs about undefined strcasecmp
# Linux also needs -D_POSIX_SOURCE if you have defined -DHAVE_JPEG # # If
you have dmalloc, you might wish to add -DDMALLOC # # If your system does
not have strcasecmp, add -DNEED_STRCASECMP (unixware) # CPPFLAGS = -DDEBUG
-DNEED_STRCASECMP -D_POSIX_SOURCE -DSVR4
# include directories # If using dmalloc, add the path where the dmalloc.h
include file can be # found. On my system it's in /usr/local/include
INCLUDES = -I. -I/usr/X/include $(IMAGEINCLUDES)
# linker flags # If using dmalloc, add the path where the lib can be found
# On my system it's in /usr/local/lib LIBDIR = -L/usr/X/lib
# This is what is required under Unixware 2.1.1 # Your mileage may vary. #
If using dmalloc, add -ldmalloc LIBS = -lXm -lXpm -lXmu -lXt -lXext -lX11
-lsocket -lnsl
# final line fed to the linker LOADLIBES = $(LIBDIR) $(LIBS) $(IMAGELIBS)
### End of User configurable section ###
pass_flags = SHELL='$(SHELL)' VERSION='$(VERSION)' CC='$(CC)'
RM='$(RM)' AR='$(AR)' MV='$(MV)' CP='$(CP)'
RANLIB='$(RANLIB)' MAKEDEPEND='$(MAKEDEPEND)' CFLAGS='$(CFLAGS)'
LDFLAGS='$(LDFLAGS)' CPPFLAGS='$(CPPFLAGS)' INCLUDES='$(INCLUDES)'
LOADLIBES='$(LOADLIBES)'
all:: @( for dir in $(SUBDIRS) ; do (set -x ; cd $$dir ;
$(MAKE) $(pass_flags)) ; done)
depend:: @( for dir in $(SUBDIRS) ; do (set -x ; cd $$dir
; $(MAKE) depend $(pass_flags)) ; done)
clean:: @( for dir in $(SUBDIRS) ; do (set -x ; cd $$dir
; $(MAKE) clean $(pass_flags) ) ; done)
distclean:: @( for dir in $(SUBDIRS) ; do (set -x ; cd
$$dir ; $(MAKE) distclean $(pass_flags) ) ; done) $(CP)
Makefile.org Makefile
dist:: distclean ln -snf . XmHTML-$(ARCHIVE) tar cvf -
XmHTML-$(ARCHIVE)/* | gzip -c > XmHTML-$(ARCHIVE).tar.gz
|