diff options
author | Roland McGrath <roland@gnu.org> | 1999-11-19 05:06:38 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-11-19 05:06:38 +0000 |
commit | 99d3db0311f353fdbfa0eac8c862ba1afd7fab67 (patch) | |
tree | ec9743fcdad607751216535e70f944ef0a922013 /sutils | |
parent | f3fd9b5b42381cfaa98eec2e7e600d5534d0e6e8 (diff) |
1999-11-19 Roland McGrath <roland@baalperazim.frob.com>
* Makefile (progs, scripts): New variables.
(targets, special-targets, SRCS, OBJS): Define in terms of those.
(libshouldbeinlibc dep rule): Replaced with static pattern rule
with $(progs) as target list, giving %.o dep as well.
Diffstat (limited to 'sutils')
-rw-r--r-- | sutils/Makefile | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sutils/Makefile b/sutils/Makefile index dcb6604b..5b5c2110 100644 --- a/sutils/Makefile +++ b/sutils/Makefile @@ -20,23 +20,22 @@ dir := sutils makemode := utilities -targets = $(special-targets) reboot halt fsck swapon swapoff -special-targets = e2os MAKEDEV losetup +progs = reboot halt fsck swapon swapoff +scripts = e2os MAKEDEV losetup +targets = $(special-targets) $(progs) +special-targets = $(scripts) installationdir = $(sbindir) -SCRIPTS = e2os.sh MAKEDEV.sh losetup.sh -SRCS = reboot.c halt.c fsck.c fstab.c clookup.c swapon.c swapoff.c $(SCRIPTS) +SRCS = $(progs:=.c) $(scripts:=.sh) LCLHDRS = fstab.h -OBJS = $(filter-out $(SCRIPTS),$(SRCS:.c=.o)) +OBJS = $(progs:=.c) HURDLIBS = store shouldbeinlibc include ../Makeconf fsck: fstab.o clookup.o swapon swapoff: ../libstore/libstore.a -reboot halt fsck swapon swapoff: ../libshouldbeinlibc/libshouldbeinlibc.a - -$(filter-out $(special-targets), $(targets)): %: %.o +$(progs): %: %.o ../libshouldbeinlibc/libshouldbeinlibc.a install: $(prefix)/dev $(prefix)/dev/MAKEDEV $(prefix)/dev/MAKEDEV: |