6 all: clean options ciopfs
9 @echo ciopfs build options
:
10 @echo
"CFLAGS = ${CFLAGS}"
11 @echo
"LDFLAGS = ${LDFLAGS}"
16 @
${CC} -c
${CFLAGS} $<
22 @
${CC} -o
$@
${OBJ} ${LDFLAGS}
25 @make CFLAGS
='${DEBUG_CFLAGS}'
28 @make CFLAGS_UNICODE
='' LDFLAGS_UNICODE
=''
31 @make CFLAGS_UNICODE
='${CFLAGS_GLIB}' LDFLAGS_UNICODE
='${LDFLAGS_GLIB}'
34 @make CFLAGS_UNICODE
='${CFLAGS_ICU}' LDFLAGS_UNICODE
='${LDFLAGS_ICU}'
38 @
rm -f ciopfs
${OBJ} ciopfs-
${VERSION}.
tar.gz
41 @echo creating
dist tarball
42 @mkdir
-p ciopfs-
${VERSION}
43 @cp
-R Makefile config.mk ciopfs.c ascii.c unicode-icu.c unicode-glib.c ciopfs-
${VERSION}
44 @
tar -cf ciopfs-
${VERSION}.
tar ciopfs-
${VERSION}
45 @gzip ciopfs-
${VERSION}.
tar
46 @
rm -rf ciopfs-
${VERSION}
49 @echo stripping executable
51 @echo installing executable file to
${DESTDIR}${PREFIX}/bin
52 @mkdir
-p
${DESTDIR}${PREFIX}/bin
53 @cp
-f ciopfs
${DESTDIR}${PREFIX}/bin
54 @chmod
755 ${DESTDIR}${PREFIX}/bin
/ciopfs
55 @echo creating symlink
${DESTDIR}/sbin
/mount.ciopfs
56 @mkdir
-p
${DESTDIR}/sbin
57 @ln
-sf
${PREFIX}/bin
/ciopfs
${DESTDIR}/sbin
/mount.ciopfs
58 # @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
59 # @mkdir -p ${DESTDIR}${MANPREFIX}/man1
60 # @sed "s/VERSION/${VERSION}/g" < ciopfs.1 > ${DESTDIR}${MANPREFIX}/man1/ciopfs.1
61 # @chmod 644 ${DESTDIR}${MANPREFIX}/man1/ciopfs.1
64 @echo removing executable file from
${DESTDIR}${PREFIX}/bin
65 @
rm -f
${DESTDIR}${PREFIX}/bin
/ciopfs
66 @echo removing symlink from
${DESTDIR}/sbin
/mount.ciopfs
67 @
rm -f
${DESTDIR}/sbin
/mount.ciopfs
68 # @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
69 # @rm -f ${DESTDIR}${MANPREFIX}/man1/ciopfs.1
71 .PHONY
: all options
clean dist install uninstall debug ascii unicode-glib unicode-icu