Debian Codegraph @

libdiskfs/Makefile

raw
1 # Copyright (C) 1994,95,96,97,98,99,2000,01,2006,2012,2016-2019
2 # Free Software Foundation, Inc.
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License as
6 # published by the Free Software Foundation; either version 2, or (at
7 # your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with the GNU Hurd. If not, see <http://www.gnu.org/licenses/>.
16
17 dir := libdiskfs
18 makemode := library
19
20 libname = libdiskfs
21 FSSRCS= dir-chg.c dir-link.c dir-lookup.c dir-mkdir.c dir-mkfile.c \
22 dir-readdir.c dir-rename.c dir-rmdir.c dir-unlink.c \
23 file-access.c file-chauthor.c file-chflags.c file-chg.c \
24 file-chmod.c file-chown.c file-exec.c file-get-fs-opts.c \
25 file-get-trans.c file-get-transcntl.c file-getcontrol.c \
26 file-getfh.c file-getlinknode.c file-lock-stat.c \
27 file-lock.c file-set-size.c file-set-trans.c file-statfs.c \
28 file-sync.c file-syncfs.c file-utimes.c file-record-lock.c \
29 file-reparent.c
30 IOSRCS= io-async-icky.c io-async.c io-duplicate.c io-get-conch.c io-revoke.c \
31 io-map-cntl.c io-map.c io-modes-get.c io-modes-off.c \
32 io-modes-on.c io-modes-set.c io-owner-mod.c io-owner-get.c \
33 io-pathconf.c io-prenotify.c io-read.c io-readable.c io-identity.c \
34 io-reauthenticate.c io-rel-conch.c io-restrict-auth.c io-seek.c \
35 io-select.c io-stat.c io-stubs.c io-write.c io-version.c io-sigio.c
36 FSYSSRCS=fsys-getroot.c fsys-goaway.c fsys-startup.c fsys-getfile.c \
37 fsys-options.c fsys-syncfs.c fsys-forward.c \
38 fsys-get-children.c fsys-get-source.c
39 IFSOCKSRCS=ifsock.c
40 OTHERSRCS = conch-fetch.c conch-set.c dir-clear.c dir-init.c dir-renamed.c \
41 extern-inline.c \
42 node-create.c node-drop.c node-make.c node-rdwr.c node-update.c \
43 node-nref.c node-nput.c node-nrele.c node-lastref.c node-nrefl.c \
44 node-nputl.c node-nrelel.c node-cache.c \
45 peropen-make.c peropen-rele.c protid-make.c protid-rele.c \
46 init-init.c init-startup.c init-first.c init-main.c \
47 rdwr-internal.c boot-start.c demuxer.c node-times.c shutdown.c \
48 sync-interval.c sync-default.c \
49 opts-set.c opts-get.c opts-std-startup.c opts-std-runtime.c \
50 opts-append-std.c opts-common.c opts-runtime.c opts-version.c \
51 trans-callback.c readonly.c readonly-changed.c \
52 remount.c console.c disk-pager.c \
53 name-cache.c direnter.c dirrewrite.c dirremove.c lookup.c dead-name.c \
54 validate-mode.c validate-group.c validate-author.c validate-flags.c \
55 validate-rdev.c validate-owner.c priv.c get-source.c journal.c
56 SRCS = $(OTHERSRCS) $(FSSRCS) $(IOSRCS) $(FSYSSRCS) $(IFSOCKSRCS)
57 installhdrs = diskfs.h diskfs-pager.h
58
59 MIGSTUBS = fsServer.o ioServer.o fsysServer.o exec_startupServer.o \
60 fsys_replyUser.o fs_notifyUser.o ifsockServer.o \
61 startup_notifyServer.o
62 OBJS = $(sort $(SRCS:.c=.o) $(MIGSTUBS))
63
64 HURDLIBS = fshelp iohelp store ports shouldbeinlibc pager ihash
65 LDLIBS += -lpthread
66
67 fsys-MIGSFLAGS = -imacros $(srcdir)/fsmutations.h -DREPLY_PORTS
68 fs-MIGSFLAGS = -imacros $(srcdir)/fsmutations.h
69 io-MIGSFLAGS = -imacros $(srcdir)/fsmutations.h
70 ifsock-MIGSFLAGS = -imacros $(srcdir)/fsmutations.h
71 exec_startup-MIGSFLAGS = -imacros $(srcdir)/fsmutations.h
72 MIGCOMSFLAGS = -prefix diskfs_
73
74 include ../Makeconf