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
|
#
# ============================================================================
#
# This is the Makefile for the uu library, part of the uudeview package.
# The values here were guessed by ./configure and are probably correct.
#
# Usefull targets
# all Compile the package
# clean Deletes the binaries and objects and all the
# other dirty stuff.
#
# ============================================================================
#
# $Id: Makefile.in,v 1.6 2002/03/11 09:15:46 fp Exp $
#
# your make might need this
#
SHELL = /bin/sh
#
# If you don't have the GNU C compiler installed, set CC=cc here
#
CC = @CC@
#
# Library options
SOMAJOR = 0
SOMINOR = $(PATCH)
SHLIB = libuu.so.$(SOMAJOR).$(SOMINOR)
SHLIBSOMAJ = libuu.so.$(SOMAJOR)
SHLIBSO = libuu.so
#
# C Compiler Options
#
CFLAGS = @CFLAGS@ -I. @CPPFLAGS@ @DEFS@ -fpic -shared
LDFLAGS = $(subst -pie,, $(subst -fPIE,,@LDFLAGS@))
#
# the ranlib program
#
RANLIB = @RANLIB@
#
###############################################################################
# You shouldn't have to change anything below.
###############################################################################
#
# Programs to compile, Manpages to install and Versions
#
VERSION = @VERSION@
PATCH = @PATCH@
VDEF = -DVERSION=\"$(VERSION)\" -DPATCH=\"$(PATCH)\"
#
UULIB_SOURCE = uulib.c uucheck.c uunconc.c uuutil.c uuencode.c \
uuscan.c uustring.c fptools.c crc32.c
UULIB_OBJ = ${UULIB_SOURCE:.c=.o}
#
# make stuff
#
.SUFFIXES:
.SUFFIXES: .c .o
all: $(SHLIB)
clean:
rm -f [Xx]deview gif2gfp
rm -f *.o *.a *.so $(SHLIBSOMAJ) $(SHLIB) core *~ TAGS
distclean: clean
rm -f config.status config.cache config.log Makefile config.h
rm -f uudeview-*tar* uudeview-sfx
realclean: distclean
new: clean
rm -f libuu.a
$(MAKE) all
$(SHLIB): $(UULIB_OBJ)
$(CC) -o $@ -fpic -shared -Wl,-soname,$(SHLIBSOMAJ) $(LDFLAGS) $^
ln -sf $(SHLIB) $(SHLIBSOMAJ)
ln -sf $(SHLIBSOMAJ) $(SHLIBSO)
libuu.a: $(UULIB_OBJ)
rm -f $@
ar r $@ $(UULIB_OBJ)
-$(RANLIB) $@
.c.o:
$(CC) -c $(CFLAGS) $(VDEF) $<
uuencode.o: uuencode.c uudeview.h uuint.h uustring.h fptools.h config.h
uulib.o: uulib.c uudeview.h uuint.h uustring.h fptools.h config.h
uunconc.o: uunconc.c uudeview.h uuint.h uustring.h fptools.h config.h
uucheck.o: uucheck.c uudeview.h uuint.h uustring.h fptools.h config.h
uuutil.o: uuutil.c uudeview.h uuint.h uustring.h fptools.h config.h
uuscan.o: uuutil.c uudeview.h uuint.h uustring.h fptools.h config.h
uustring.o: uustring.c uudeview.h uuint.h uustring.h config.h
fptools.o: fptools.c fptools.h config.h
uustring.h: uustring.c
awk -f uustring.awk < uustring.c > uustring.h
|