## ----------------------------------------------------------------------- ## ## 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