Debian Codegraph @

sutils/Makefile

raw ◀ ▶
1 Debian patch touch this file
1 # Makefile for sutils
2 #
3 # Copyright (C) 1996,97,99,2000,2010,2012 Free Software Foundation, Inc.
4 #
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License as
7 # published by the Free Software Foundation; either version 2, or (at
8 # your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 #
19
20 dir := sutils
21 makemode := utilities
22
23 progs = reboot halt fsck swapon swapoff bless smp
24 scripts = e2os MAKEDEV losetup
25 targets = $(special-targets) $(progs)
26 special-targets = $(scripts)
27 installationdir = $(sbindir)
28 SRCS = $(progs:=.c) clookup.c fstab.c update.c $(scripts:=.sh)
29
30 OBJS = $(progs:=.o)
31 HURDLIBS = store shouldbeinlibc
32
33 include ../Makeconf
34
35 fsck: fstab.o clookup.o
36 swapon swapoff: ../libstore/libstore.a default_pagerUser.o
37 $(progs): %: %.o ../libshouldbeinlibc/libshouldbeinlibc.a
38
•39 install: $(DESTDIR)/dev/MAKEDEV
40 $(DESTDIR)/dev/MAKEDEV: $(DESTDIR)/dev
41 ln -sf ../sbin/MAKEDEV $@
•42 $(DESTDIR)/dev:
43 @$(MKINSTALLDIRS) $@