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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
##############################################################################
# #
# Makefile.org: default XmHTML tools makefile. #
# Adjust at will #
# #
##############################################################################
# #
# (C)Copyright 1995-1997 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. #
##############################################################################
# List of sources
SRCS = GetRepTypes.c WidgetSize.c gifinfo.c ImBuffer.c gif2gzf.c \
httpget.c miniparse.c ../lib/common/parse.c ../lib/common/LZWStream.c
# List of object files
OBJS = GetRepTypes.o WidgetSize.o gifinfo.o ImBuffer.o gif2gzf.o \
httpget.o miniparse.o parse.o LZWStream.o
# Targets to make
TARGETS = reptype wsize gifinfo HTMLparse gif2gzf httpget
# rule to create .o files from .c files
.c.o:
$(RM) $@
$(CC) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) -c $<
#
# Special object rules
#
#
# gif2gzf needs to know where zlib lives
#
gif2gzf.o: gif2gzf.c
$(RM) $@
$(CC) -c $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(ZLIBINC) $*.c
#
# LZWStream compiled for standalone usage
#
LZWStream.o: ../lib/common/LZWStream.c
$(RM) $@
$(CC) -c $(INCLUDES) $(CFLAGS) $(CPPFLAGS) -DNO_XmHTML ../lib/common/LZWStream.c
#
# XmHTML HTML Parser compiled for standalone usage
#
parse.o: ../lib/common/parse.c
$(RM) $@
$(CC) -c $(INCLUDES) $(CFLAGS) $(CPPFLAGS) -DMINIPARSE ../lib/common/parse.c
#
# All Targets
#
all: $(TARGETS)
# targets to build
reptype:: GetRepTypes.o
$(RM) $@ \
$(CC) -o $@ $(LDFLAGS) GetRepTypes.o $(LOADLIBES)
wsize:: WidgetSize.o
$(RM) $@ \
$(CC) -o $@ $(LDFLAGS) WidgetSize.o
gifinfo:: gifinfo.o ImBuffer.o
$(RM) $@ \
$(CC) -o $@ $(LDFLAGS) gifinfo.o ImBuffer.o
httpget:: httpget.o
$(RM) $@ \
$(CC) -o $@ $(LDFLAGS) httpget.o -L../http -lhttp $(DMALLOCLIB)
# gif to gzf converter
gif2gzf:: gif2gzf.o LZWStream.o ImBuffer.o
$(RM) $@ \
$(CC) -o $@ $(LDFLAGS) gif2gzf.o LZWStream.o ImBuffer.o $(ZLIBLIB)
# stand alone parser
HTMLparse:: parse.o miniparse.o
$(RM) $@
$(CC) -o $@ $(LDFLAGS) parse.o miniparse.o
depend:: $(SRCS)
$(MAKEDEPEND) $(INCLUDES) $(CPPFLAGS) -DMINIPARSE -DNO_XmHTML $(SRCS)
clean::
$(RM) $(OBJS)
$(RM) $(TARGETS)
distclean:: clean
$(RM) core *.out *.log make.world *.bak *.last *.auto *.rej *.orig
$(CP) Makefile.org Makefile
#--------------------------------------------------------------------------
# don't delete anything below this line, makedepend depends on it
#--------------------------------------------------------------------------
|