|
Packit Service |
4c70d1 |
#
|
|
Packit Service |
4c70d1 |
# Makefile for mount.fedfs
|
|
Packit Service |
4c70d1 |
#
|
|
Packit Service |
4c70d1 |
|
|
Packit Service |
4c70d1 |
-include ../Makefile.conf
|
|
Packit Service |
4c70d1 |
include ../Makefile.rules
|
|
Packit Service |
4c70d1 |
|
|
Packit Service |
4c70d1 |
SRCS = mount.fedfs.c
|
|
Packit Service |
4c70d1 |
HDRS = fedfs-getsrvinfo.h fedfs-gpl-boiler.h fedfs-nls.h
|
|
Packit Service |
4c70d1 |
|
|
Packit Service |
4c70d1 |
fedfs-getsrvinfo_OBJ = fedfs-getsrvinfo.o
|
|
Packit Service |
4c70d1 |
|
|
Packit Service |
4c70d1 |
mount_fedfs_OBJ = mount.fedfs.o
|
|
Packit Service |
4c70d1 |
|
|
Packit Service |
4c70d1 |
version := $(shell cat ../.version)
|
|
Packit Service |
4c70d1 |
|
|
Packit Service |
4c70d1 |
CFLAGS += -rdynamic $(DAEMON_CFLAGS) -D_GNU_SOURCE -I../include
|
|
Packit Service |
4c70d1 |
CFLAGS += -DVERSION_STRING=\"$(version)\"
|
|
Packit Service |
4c70d1 |
LDFLAGS += -rdynamic
|
|
Packit Service |
4c70d1 |
|
|
Packit Service |
4c70d1 |
all: mount.fedfs
|
|
Packit Service |
4c70d1 |
|
|
Packit Service |
4c70d1 |
mount.fedfs: $(mount_fedfs_OBJ) $(fedfs-getsrvinfo_OBJ) $(HDRS)
|
|
Packit Service |
4c70d1 |
$(CC) -o mount.fedfs \
|
|
Packit Service |
4c70d1 |
$(mount_fedfs_OBJ) $(fedfs-getsrvinfo_OBJ) \
|
|
Packit Service |
4c70d1 |
$(LDFLAGS) $(LIBRESOLV) $(LIBS)
|
|
Packit Service |
4c70d1 |
|
|
Packit Service |
4c70d1 |
clean:
|
|
Packit Service |
4c70d1 |
rm -f *.o *.s *~ mount.fedfs
|
|
Packit Service |
4c70d1 |
|
|
Packit Service |
4c70d1 |
install: all
|
|
Packit Service |
4c70d1 |
install -d -m 755 $(INSTALLROOT)$(sbindir)
|
|
Packit Service |
4c70d1 |
if ! test -x $(INSTALLROOT)$(sbindir)/mount.fedfs; \
|
|
Packit Service |
4c70d1 |
then \
|
|
Packit Service |
4c70d1 |
install -c mount.fedfs -m 755 $(INSTALLROOT)$(sbindir); \
|
|
Packit Service |
4c70d1 |
fi
|