summaryrefslogtreecommitdiff
path: root/utils/Makefile
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-08-24 14:46:32 +0000
committerMiles Bader <miles@gnu.org>1995-08-24 14:46:32 +0000
commit28cbaf212eb5050da82a638c5a6734df266ed5ad (patch)
treeeb5ad553b205b8c77bf2c598bfc68e77ecdeac2a /utils/Makefile
parenta30d5a290f2a99cae4e38b4a23ef2ef8e204e956 (diff)
(all): New target.
(ps, settrans, showtrans, fsysopts): Put all dependencies in these targets. (settrans-HURDLIBS, showtrans-HURDLIBS, ps-HURDLIBS): Removed. (settrans, showtrans, fsysopts, ps): Get rid of things that are now in libshouldbeinlibc. Get rid of rules dealing with error.o.
Diffstat (limited to 'utils/Makefile')
-rw-r--r--utils/Makefile26
1 files changed, 8 insertions, 18 deletions
diff --git a/utils/Makefile b/utils/Makefile
index 264de6b2..b2797570 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -18,33 +18,23 @@
dir := utils
makemode := utilities
-SRCS = shd.c ps.c su.c settrans.c clri.c sync.c reboot.c halt.c showtrans.c mount.sh fsysopts.c
-OBJS = $(filter-out mount.sh,$(subst .c,.o,$(SRCS))) argz.o error.o
targets = shd ps settrans showtrans clri sync reboot halt su mount fsysopts
special-targets = mount
+SRCS = shd.c ps.c su.c settrans.c clri.c sync.c reboot.c halt.c showtrans.c mount.sh fsysopts.c
DIST_FILES = shd.ChangeLog
-ps-HURDLIBS=libps libihash
-REMHDRS=../hurd/ps.h ../lib/argz.h ../lib/error.h ../lib/start-trans.h
+OBJS = $(filter-out mount.sh,$(SRCS:.c=.o))
+
+all: $(targets)
+
+ps: ../libps/libps.a ../libihash/libihash.a
+settrans: start-trans.o
+ps settrans showtrans fsysopts: ../libshouldbeinlibc/libshouldbeinlibc.a
CPPFLAGS += -I../lib
-CPPFLAGS += $(CPPFLAGS-$(notdir $<))
vpath %.c ../lib
include ../Makeconf
-settrans: settrans.o start-trans.o argz.o error.o
-showtrans: showtrans.o argz.o error.o
-fsysopts: fsysopts.o argz.o error.o
-ps: ps.o error.o ../libps/libps.a ../libihash/libihash.a
-shd: shd.o
-su: su.o
-clri: clri.o
-sync: sync.o
-reboot: reboot.o
-halt: halt.o
-
mount: mount.sh
cp $< $@
-
-CPPFLAGS-error.c = -Dprogram_name=program_invocation_name -DHAVE_VPRINTF -DSTDC_HEADERS -DHAVE_STRERROR