summaryrefslogtreecommitdiff
path: root/libps/Makefile
blob: 20e0dc35df1b6dabf0b57d9a1518580e56a4dadc (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
# Makefile for libps
#
#   Copyright (C) 1995, 1996, 1999 Free Software Foundation, Inc.
#   Written by Michael I. Bushnell.
#
#   This file is part of the GNU Hurd.
#
#   The GNU Hurd 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; either version 2, or (at
#   your option) any later version.
#
#   The GNU Hurd 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.

dir := libps
makemode := library

libname = libps
SRCS = context.c filters.c fmt.c host.c proclist.c procstat.c spec.c \
	tty.c user.c write.c
LCLHDRS=ps.h common.h
installhdrs=$(LCLHDRS)
installhdrsubdir = .

HURDLIBS=ihash shouldbeinlibc
OBJS = $(SRCS:.c=.o) msgUser.o termUser.o

msg-MIGUFLAGS = -D'MSG_IMPORTS=waittime 1000;' -DUSERPREFIX=ps_
term-MIGUFLAGS = -D'TERM_IMPORTS=waittime 1000;' -DUSERPREFIX=ps_

ps_%.h: %_U.h
	sed 's/_$*_user_/_ps_$*_user_/g' $< > $@

include ../Makeconf