| 1 |
# |
| 2 |
# Makefile for mount.fedfs |
| 3 |
# |
| 4 |
|
| 5 |
-include ../Makefile.conf |
| 6 |
include ../Makefile.rules |
| 7 |
|
| 8 |
SRCS = mount.fedfs.c |
| 9 |
HDRS = fedfs-getsrvinfo.h fedfs-gpl-boiler.h fedfs-nls.h \ |
| 10 |
fedfs-token.h |
| 11 |
|
| 12 |
fedfs-getsrvinfo_OBJ = fedfs-getsrvinfo.o |
| 13 |
|
| 14 |
mount_fedfs_OBJ = mount.fedfs.o |
| 15 |
fedfs-map-nfs4_OBJ = fedfs-map-nfs4.o |
| 16 |
|
| 17 |
version := $(shell cat ../.version) |
| 18 |
|
| 19 |
CFLAGS += -rdynamic $(DAEMON_CFLAGS) -D_GNU_SOURCE -I../include |
| 20 |
CFLAGS += -DVERSION_STRING=\"$(version)\" |
| 21 |
LDFLAGS += -rdynamic |
| 22 |
|
| 23 |
all: mount.fedfs fedfs-map-nfs4 |
| 24 |
|
| 25 |
mount.fedfs: $(mount_fedfs_OBJ) $(fedfs-getsrvinfo_OBJ) $(HDRS) |
| 26 |
$(CC) $(DAEMON_LDFLAGS) -o mount.fedfs \ |
| 27 |
$(mount_fedfs_OBJ) $(fedfs-getsrvinfo_OBJ) \ |
| 28 |
$(LDFLAGS) $(LIBRESOLV) $(LIBS) |
| 29 |
|
| 30 |
fedfs-map-nfs4: $(fedfs-map-nfs4_OBJ) $(fedfs-getsrvinfo_OBJ) $(HDRS) |
| 31 |
$(CC) $(DAEMON_LDFLAGS) -o fedfs-map-nfs4 \ |
| 32 |
$(fedfs-map-nfs4_OBJ) $(fedfs-getsrvinfo_OBJ) \ |
| 33 |
$(LDFLAGS) $(LIBRESOLV) $(LIBS) |
| 34 |
|
| 35 |
clean: |
| 36 |
rm -f *.o *.s *~ mount.fedfs |
| 37 |
|
| 38 |
install: all |
| 39 |
install -d -m 755 $(INSTALLROOT)$(sbindir) |
| 40 |
install -c fedfs-map-nfs4 -m 755 $(INSTALLROOT)$(sbindir); \ |
| 41 |
if ! test -x $(INSTALLROOT)$(sbindir)/mount.fedfs; \ |
| 42 |
then \ |
| 43 |
install -c mount.fedfs -m 755 $(INSTALLROOT)$(sbindir); \ |
| 44 |
fi |