| 1 |
# |
| 2 |
# ============================================================================ |
| 3 |
# |
| 4 |
# This is the Makefile for the uu library, part of the uudeview package. |
| 5 |
# The values here were guessed by ./configure and are probably correct. |
| 6 |
# |
| 7 |
# Usefull targets |
| 8 |
# all Compile the package |
| 9 |
# clean Deletes the binaries and objects and all the |
| 10 |
# other dirty stuff. |
| 11 |
# |
| 12 |
# ============================================================================ |
| 13 |
# |
| 14 |
# $Id: Makefile.in,v 1.6 2002/03/11 09:15:46 fp Exp $ |
| 15 |
# |
| 16 |
# your make might need this |
| 17 |
# |
| 18 |
SHELL = /bin/sh |
| 19 |
# |
| 20 |
# If you don't have the GNU C compiler installed, set CC=cc here |
| 21 |
# |
| 22 |
CC = @CC@ |
| 23 |
# |
| 24 |
# C Compiler Options |
| 25 |
# |
| 26 |
CFLAGS = @CFLAGS@ -I. @CPPFLAGS@ @DEFS@ |
| 27 |
# |
| 28 |
# the ranlib program |
| 29 |
# |
| 30 |
RANLIB = @RANLIB@ |
| 31 |
# |
| 32 |
############################################################################### |
| 33 |
# You shouldn't have to change anything below. |
| 34 |
############################################################################### |
| 35 |
# |
| 36 |
# Programs to compile, Manpages to install and Versions |
| 37 |
# |
| 38 |
VERSION = @VERSION@ |
| 39 |
PATCH = @PATCH@ |
| 40 |
VDEF = -DVERSION=\"$(VERSION)\" -DPATCH=\"$(PATCH)\" |
| 41 |
# |
| 42 |
|
| 43 |
UULIB_SOURCE = uulib.c uucheck.c uunconc.c uuutil.c uuencode.c \ |
| 44 |
uuscan.c uustring.c fptools.c crc32.c |
| 45 |
UULIB_OBJ = ${UULIB_SOURCE:.c=.o} |
| 46 |
|
| 47 |
# |
| 48 |
# make stuff |
| 49 |
# |
| 50 |
|
| 51 |
.SUFFIXES: |
| 52 |
.SUFFIXES: .c .o |
| 53 |
|
| 54 |
all: libuu.a |
| 55 |
|
| 56 |
clean: |
| 57 |
rm -f [Xx]deview gif2gfp |
| 58 |
rm -f *.o *.a *.so core *~ TAGS |
| 59 |
|
| 60 |
distclean: clean |
| 61 |
rm -f config.status config.cache config.log Makefile config.h |
| 62 |
rm -f uudeview-*tar* uudeview-sfx |
| 63 |
|
| 64 |
realclean: distclean |
| 65 |
|
| 66 |
new: clean |
| 67 |
rm -f libuu.a |
| 68 |
$(MAKE) all |
| 69 |
|
| 70 |
libuu.a: $(UULIB_OBJ) |
| 71 |
rm -f $@ |
| 72 |
ar r $@ $(UULIB_OBJ) |
| 73 |
-$(RANLIB) $@ |
| 74 |
|
| 75 |
.c.o: |
| 76 |
$(CC) -c $(CFLAGS) $(VDEF) $< |
| 77 |
|
| 78 |
uuencode.o: uuencode.c uudeview.h uuint.h uustring.h fptools.h config.h |
| 79 |
uulib.o: uulib.c uudeview.h uuint.h uustring.h fptools.h config.h |
| 80 |
uunconc.o: uunconc.c uudeview.h uuint.h uustring.h fptools.h config.h |
| 81 |
uucheck.o: uucheck.c uudeview.h uuint.h uustring.h fptools.h config.h |
| 82 |
uuutil.o: uuutil.c uudeview.h uuint.h uustring.h fptools.h config.h |
| 83 |
uuscan.o: uuutil.c uudeview.h uuint.h uustring.h fptools.h config.h |
| 84 |
uustring.o: uustring.c uudeview.h uuint.h uustring.h config.h |
| 85 |
fptools.o: fptools.c fptools.h config.h |
| 86 |
|
| 87 |
uustring.h: uustring.c |
| 88 |
awk -f uustring.awk < uustring.c > uustring.h |