~ubuntu-branches/ubuntu/hoary/xringd/hoary

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
# 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
DESTDIR=
# where we install
BINDIR=${DESTDIR}/usr/sbin
MANDIR=${DESTDIR}/usr/share/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/ttyS0

DEFS=-DVERSION=\"$(VERSION)\" -DMODEM_FILE=\"$(MODEM)\" -DCONF_FILE=\"$(CONF)\" -DINIT_TIMEOUT=$(INITWAIT) $(DBG)

CC=gcc
CFLAGS= -Wall -O2 $(DEFS) -s
LDFLAGS=-s

OBJ = ringsm.o xringd.o

xringd: $(OBJ)
	$(CC) $(LDFLAGS) $(OBJ) -o $@

install: xringd
	/usr/bin/install -o root -g bin -m 755 xringd $(BINDIR)
	/usr/bin/install -o root -g root -m 755 xringd.8 $(MANDIR)/man8
	#/usr/bin/install -o root -g root -m 600 xringd.conf ${DESTDIR}/etc

# util to show the internal kernel modem input counters
uartcount: uartcount.c
	$(CC) $(CFLAGS) $? -o $@

clean:
	rm -f *.o xringd errors tags uartcount