1997-10-18 09:47:46 +04:00
|
|
|
# $NetBSD: Makefile.uurt,v 1.4 1997/10/18 05:47:48 lukem Exp $
|
1993-08-04 23:30:29 +04:00
|
|
|
#
|
1997-10-18 09:47:46 +04:00
|
|
|
# Makefile for uurate 1.10
|
1994-10-25 01:17:41 +03:00
|
|
|
|
|
|
|
# Prefix directory for installation directories.
|
|
|
|
prefix = /usr/local
|
|
|
|
|
|
|
|
# Directory where the needed .h files are installed (uucp.h ...).
|
|
|
|
uucpsrcs = ../
|
1993-08-04 23:30:29 +04:00
|
|
|
|
|
|
|
# Where uurate is installed
|
1994-10-25 01:17:41 +03:00
|
|
|
BIN=$(prefix)/bin
|
|
|
|
# Where uurate's man is installed
|
|
|
|
MAN=$(prefix)/man/man1
|
|
|
|
|
|
|
|
# The directory to look in for Taylor style configuration files
|
|
|
|
newconfigdir = $(prefix)/conf/uucp
|
1993-08-04 23:30:29 +04:00
|
|
|
|
|
|
|
# Flags to use when compiling uurate
|
1994-10-25 01:17:41 +03:00
|
|
|
CC=gcc -O2
|
|
|
|
CFLAGS=-I.. -Wall
|
|
|
|
LDFLAGS=-s
|
1993-08-04 23:30:29 +04:00
|
|
|
|
|
|
|
SHELL=/bin/sh
|
|
|
|
PROGS=uurate
|
|
|
|
|
|
|
|
#-----------
|
1994-10-25 01:17:41 +03:00
|
|
|
MORECFLAGS= -I. -I$(uucpsrcs) -DNEWCONFIGLIB=\"$(newconfigdir)\"
|
1993-08-04 23:30:29 +04:00
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
1994-10-25 01:17:41 +03:00
|
|
|
uurate: uurate.c
|
|
|
|
$(CC) $(CFLAGS) $(MORECFLAGS) $@.c -o $@ $(LDFLAGS)
|
|
|
|
|
1993-08-04 23:30:29 +04:00
|
|
|
install: $(PROGS)
|
1994-10-25 01:17:41 +03:00
|
|
|
cp $(PROGS) $(BIN)
|
|
|
|
cp uurate.man $(MAN)/uurate.1
|
1993-08-04 23:30:29 +04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(PROGS) core
|