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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
# Makefile for prctl
# Copyright (c) 2000 Hewlett Packard Co
# Copyright (c) 2000 Khalid Aziz <khalid_aziz@hp.com
# Copyright (c) 2014 Khalid Aziz <khalid@gonehiking.org
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License Version 2 as
# published by the Free Software Foundation
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#### Start of system configuration section. ####
srcdir = @srcdir@
VPATH = @srcdir@
CC = @CC@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
DEFS = @DEFS@
LIBS = @LIBS@
CPPFLAGS = @CPPFLAGS@
CFLAGS = @CFLAGS@
# If you want debug on by default, use: CFLAGS="-g" ./configure
LDFLAGS = @LDFLAGS@
prefix = @prefix@
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
scriptdir = $(bindir)
# scriptdir is the directory in which shell scripts should be installed
#datadir = $(prefix)/lib
#libdir = $(prefix)/lib
#infodir = $(prefix)/info
# Extension (not including `.') for the installed manual page filenames.
manext = 1
# Where to install the manual pages.
mandir = $(prefix)/share/man/man$(manext)
# Use manlinks=so to use the .so method instead of hard links
manlinks = ln
alldirs = $(bindir) $(scriptdir) $(datadir) $(libdir) $(infodir) $(mandir)
#### End of system configuration section. ####
SHELL = /bin/sh
LOADLIBES = $(LIBS)
TAR = tar
SRCS = prctl.c
OBJS = prctl.o
HDRS =
.c.o:
$(CC) -c $(DEFS) $(CFLAGS) $<
default: prctl
all: prctl
install: installdirs installbin installman
installdirs:
-if test ! -d $(prefix)/share; then \
mkdir -p $(prefix)/share; fi
-if test ! -d $(prefix)/share/man; then \
mkdir -p $(prefix)/share/man; fi
-for dir in $(alldirs) ; do \
if test ! -d $${dir}; then \
mkdir -p $${dir}; fi; \
done
installbin: all
$(INSTALL_PROGRAM) prctl $(bindir)/prctl
installman: prctl.1
rm -f $(mandir)/prctl.$(manext)
$(INSTALL_DATA) prctl.1 $(mandir)/prctl.$(manext)
uninstall:
rm -f $(bindir)/prctl
rm -f $(mandir)/prctl.$(manext)
Makefile: Makefile.in ./config.status
./config.status
./config.status: configure
$(srcdir)/configure --srcdir=$(srcdir) --no-create
clean:
rm -f *.o prctl
distclean: clean
rm -f Makefile config.status config.log config.cache
prctl: Makefile $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
# end of file
|