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
|
#
# Makefile -- xringd
#
# Copyright (c) 1995-1996 Angelo Haritsis. All rights reserved.
#
# $Id: Makefile,v 1.5 1996/02/17 15:50:07 ah Exp ah $
#
VERSION=1.20
# where we install
BINDIR=/usr/local/sbin
MANDIR=/usr/local/man
# Number of seconds (compiled-in) to wait after resetting the state machine
# before accepting any new rings; can also be set on cmd line (-t)
INITWAIT=15
# compiled-in configuration file; can stil be changed
# from the command line
CONF=/etc/xringd.conf
# compiled-in modem device; can be specified on command line (-c)
MODEM=/dev/modem
#DBG=-DRINGSM_DUMP -DDEBUG # include ringsm debug code
DEFS=-DVERSION=\"$(VERSION)\" -DMODEM_FILE=\"$(MODEM)\" -DCONF_FILE=\"$(CONF)\" -DINIT_TIMEOUT=$(INITWAIT) $(DBG)
CC=gcc
CFLAGS =-Wall -O2 -g $(DEFS)
#CFLAGS = -g $(DEFS)
LDFLAGS=
#LDFLAGS=-g
OBJ = ringsm.o xringd.o
xringd: $(OBJ)
$(CC) $(LDFLAGS) $(OBJ) -o $@
install: xringd
-install -o root -g bin -m 755 xringd $(BINDIR)
-install -o root -g root -m 755 xringd.8 $(MANDIR)/man8
@echo "!!! You also need a config file, eg. /etc/xringd.conf"
dist:
-mv -f xringd*.lsm xringd-$(VERSION).lsm > /dev/null 2>&1
-perl -pi -e "s/Version:\t[0-9.]+/Version:\t$(VERSION)/;s/xringd-[0-9]+\.[0-9]+/xringd-$(VERSION)/g;" xringd-$(VERSION).lsm
#-perl -pi -e "s/xringd [0-9.]+/xringd $(VERSION)/;" README
cp xringd*.lsm $(HOME)/
( cd .. ; tar --exclude \*.o --exclude RCS --exclude test \
--exclude .gdb_history \
-zcvSf $(HOME)/xringd-$(VERSION).tgz xringd \
)
# util to show the internal kernel mdoem input counters
uartcount: uartcount.c
$(CC) $(CFLAGS) $? -o $@
clean:
rm -f *.o xringd errors tags
|