summaryrefslogtreecommitdiffstats
path: root/Makefile.in
blob: 8cc88a1c298caeb2c7e0c603ac9aa6ded6b2721b (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
41
42
43
44
45
46
47
## -----------------------------------------------------------------------
##   
##   Copyright 1995-2008 H. Peter Anvin - All Rights Reserved
##
##   This program is free software; you can redistribute it and/or modify
##   it under the terms of the GNU General Public License as published by
##   the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
##   Boston MA 02110-1301, USA; either version 2 of the License, or
##   (at your option) any later version; incorporated herein by reference.
##
## -----------------------------------------------------------------------

CC	= @CC@
CFLAGS	= @CFLAGS@
LDFLAGS	= @LDFLAGS@
INSTALL	= @INSTALL@

SOURCES = ranpwd.c ranpwd.1 configure.in configure Makefile.in ranpwd.spec

prefix		= @prefix@
exec_prefix	= @exec_prefix@
bindir		= @bindir@
mandir		= @mandir@
datarootdir	= @datarootdir@	# Shut up autoconf

man1dir	= $(mandir)/man1

all:	ranpwd

.PREFIXES: .c .o

.c.o:
	$(CC) $(CFLAGS) -c $<

ranpwd: ranpwd.o
	$(CC) $(LDFLAGS) -o $@ $<

install:
	mkdir -m 755 -p $(INSTALLROOT)$(bindir) $(INSTALLROOT)$(man1dir)
	$(INSTALL) -m 755 ranpwd   $(INSTALLROOT)$(bindir)
	$(INSTALL) -m 644 ranpwd.1 $(INSTALLROOT)$(man1dir)

clean:
	rm -f ranpwd *.o *~ \#* core

distclean: clean
	rm -rf config.log config.status autom4te.cache Makefile