summaryrefslogtreecommitdiffstats
path: root/gnu/libexec/uucp/contrib/Makefile.uurt
blob: 855897737941d4b540db280201ff63e660f6c889 (plain)
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
# $FreeBSD$
# Makefile for uurate 1.10
#

# Prefix directory for installation directories.
prefix = /usr/local

# Directory where the needed .h files are installed (uucp.h ...).
uucpsrcs = ../

# Where uurate is installed
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

# Flags to use when compiling uurate
CC=gcc -O2
CFLAGS=-I.. -Wall
LDFLAGS=-s

SHELL=/bin/sh
PROGS=uurate

#-----------
MORECFLAGS= -I. -I$(uucpsrcs) -DNEWCONFIGLIB=\"$(newconfigdir)\"

all: $(PROGS)

uurate: uurate.c
	$(CC) $(CFLAGS) $(MORECFLAGS) $@.c -o $@ $(LDFLAGS)

install: $(PROGS)
	cp $(PROGS) $(BIN)
	cp uurate.man $(MAN)/uurate.1

clean:
	rm -f $(PROGS) core
OpenPOWER on IntegriCloud