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
|
# Makefile for splitdigest
# Copyright (c) 1994-1998 by Christopher Heng. All rights reserved.
# $Id: Makefile,v 2.12 1998/03/30 13:35:19 chris Released $
CC = gcc
DBG=-O2 -fomit-frame-pointer -s
CFLAGS = $(DBG) -Wall
LDFLAGS = $(DBG)
# You may define the following to change the default values.
# DEFCONFIG default pathname of the configuration file.
# If you change this, change the macro LIBDIR below
# as well.
# MAXCFTABLE maximum number of digest types in the config file.
# SEPCHAR separator character between messages in a digest
DEFCONFIG = /etc/splitdigest.config
MAXCFTABLE = 128
MAXSCANFBUF = 512
SEPCHAR = -
DEFINES = -DDEFCONFIG=\"$(DEFCONFIG)\" -DMAXCFTABLE=$(MAXCFTABLE) \
-DSEPCHAR=\'$(SEPCHAR)\'
BINDIR = $(DESTDIR)/usr/bin
MANDIR = $(DESTDIR)/usr/man/man1
LIBDIR = $(DESTDIR)/usr/lib
CONFIGDIR = $(DESTDIR)/etc
INSTALL = install -m 755 -o root -g root
INSTALLDATA = install -m 644 -o root -g root
INSTALLDIR = install -m 755 -o root -g root -d
# -----------------------------------------------------------------------
# End of configurable section of the Makefile.
# You should not need to modify anything below this line
# ------------------------------------------------------------------------
OBJS = main.o cftables.o uncatfile.o
FILES = COPYING CHANGES README Makefile \
main.c uncatfile.c cftables.c splitdigest.h version.h cftables.h \
sysdep.h splitdigest.1 splitdigest.config splitdigest.lsm
DOSFILES = msdos/getopt.c msdos/getopt.h msdos/mktemp.c msdos/mktemp.h
SDVERSTR = -nR2_4
SDVERNUM = 2.4
RCSSTATE = -sReleased
all: splitdigest
splitdigest: $(OBJS)
$(CC) $(LDFLAGS) -o splitdigest $(OBJS)
install: all
$(INSTALLDIR) $(BINDIR)
$(INSTALLDIR) $(MANDIR)
$(INSTALLDIR) $(CONFIGDIR)
$(INSTALL) splitdigest $(BINDIR)/
$(INSTALLDATA) splitdigest.1 $(MANDIR)/
$(INSTALLDATA) splitdigest.config $(CONFIGDIR)/
clean:
rm -f *.o splitdigest
main.o: main.c splitdigest.h version.h cftables.h sysdep.h
$(CC) $(CFLAGS) $(DEFINES) -o main.o -c main.c
cftables.o: cftables.c splitdigest.h cftables.h
$(CC) $(CFLAGS) $(DEFINES) -o cftables.o -c cftables.c
uncatfile.o: uncatfile.c splitdigest.h cftables.h sysdep.h
$(CC) $(CFLAGS) $(DEFINES) -o uncatfile.o -c uncatfile.c
checkin:
ci $(SDVERSTR) -u$(RCSVERNUM) $(RCSSTATE) $(FILES)
ci $(SDVERSTR) -u$(RCSVERNUM) $(RCSSTATE) $(DOSFILES)
checkout:
co $(FILES)
co $(DOSFILES)
develcheckout:
co -l $(FILES)
co -l $(DOSFILES)
mytar: all
cd ..;\
tar cvvf spdig-$(SDVERNUM).tar splitdigest-$(SDVERNUM) ;\
gzip -9 spdig-$(SDVERNUM).tar
dist: mytar
rm -rf RCS msdos test bin
rm *.o
cd ..;\
tar cvvf splitdigest-$(SDVERNUM).tar splitdigest-$(SDVERNUM) ;\
gzip -9 splitdigest-$(SDVERNUM).tar
|