Commit | Line | Data |
---|---|---|
3469b437 AC |
1 | # $Id: Makefile,v 1.4 1994/04/14 17:47:52 kdburg Exp $ |
2 | # Makefile for uurate 1.10 | |
41c799d4 | 3 | # |
3469b437 AC |
4 | |
5 | # Prefix directory for installation directories. | |
6 | prefix = /usr/local | |
7 | ||
8 | # Directory where the needed .h files are installed (uucp.h ...). | |
9 | uucpsrcs = ../ | |
41c799d4 C |
10 | |
11 | # Where uurate is installed | |
3469b437 AC |
12 | BIN=$(prefix)/bin |
13 | # Where uurate's man is installed | |
14 | MAN=$(prefix)/man/man1 | |
15 | ||
16 | # The directory to look in for Taylor style configuration files | |
17 | newconfigdir = $(prefix)/conf/uucp | |
41c799d4 C |
18 | |
19 | # Flags to use when compiling uurate | |
3469b437 AC |
20 | CC=gcc -O2 |
21 | CFLAGS=-I.. -Wall | |
22 | LDFLAGS=-s | |
41c799d4 | 23 | |
41c799d4 C |
24 | SHELL=/bin/sh |
25 | PROGS=uurate | |
26 | ||
27 | #----------- | |
3469b437 | 28 | MORECFLAGS= -I. -I$(uucpsrcs) -DNEWCONFIGLIB=\"$(newconfigdir)\" |
41c799d4 C |
29 | |
30 | all: $(PROGS) | |
31 | ||
3469b437 AC |
32 | uurate: uurate.c |
33 | $(CC) $(CFLAGS) $(MORECFLAGS) $@.c -o $@ $(LDFLAGS) | |
34 | ||
41c799d4 | 35 | install: $(PROGS) |
3469b437 AC |
36 | cp $(PROGS) $(BIN) |
37 | cp uurate.man $(MAN)/uurate.1 | |
41c799d4 C |
38 | |
39 | clean: | |
40 | rm -f $(PROGS) core |