| 1 |
# Makefile for libps |
| 2 |
# |
| 3 |
# Copyright (C) 1995,96,99,2002,2012 Free Software Foundation, Inc. |
| 4 |
# Written by Michael I. Bushnell. |
| 5 |
# |
| 6 |
# This file is part of the GNU Hurd. |
| 7 |
# |
| 8 |
# The GNU Hurd is free software; you can redistribute it and/or |
| 9 |
# modify it under the terms of the GNU General Public License as |
| 10 |
# published by the Free Software Foundation; either version 2, or (at |
| 11 |
# your option) any later version. |
| 12 |
# |
| 13 |
# The GNU Hurd is distributed in the hope that it will be useful, but |
| 14 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
# General Public License for more details. |
| 17 |
# |
| 18 |
# You should have received a copy of the GNU General Public License |
| 19 |
# along with this program; if not, write to the Free Software |
| 20 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 21 |
|
| 22 |
dir := libps |
| 23 |
makemode := library |
| 24 |
|
| 25 |
libname = libps |
| 26 |
SRCS = context.c filters.c fmt.c host.c proclist.c procstat.c spec.c \ |
| 27 |
tty.c user.c write.c ../utils/msgids.c |
| 28 |
installhdrs = ps.h |
| 29 |
installhdrsubdir = . |
| 30 |
|
| 31 |
HURDLIBS=ihash shouldbeinlibc |
| 32 |
OBJS = $(SRCS:.c=.o) msgUser.o termUser.o |
| 33 |
|
| 34 |
msg-MIGUFLAGS = -D'MSG_IMPORTS=waittime 1000;' -DUSERPREFIX=ps_ |
| 35 |
term-MIGUFLAGS = -D'TERM_IMPORTS=waittime 1000;' -DUSERPREFIX=ps_ |
| 36 |
../utils/msgids-CPPFLAGS = -DDATADIR=\"${datadir}\" |
| 37 |
|
| 38 |
ps_%.h: %_U.h |
| 39 |
sed 's/_$*_user_/_ps_$*_user_/g' $< > $@ |
| 40 |
|
| 41 |
include ../Makeconf |