diff --git a/Makefile b/Makefile index 7fbd916..abb33ef 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,13 @@ ARCHS=armv7 arm64 ifeq ($(shell uname),Linux) +# LINUX: GNU / ANDROID +# __ +# -=(o '. +# \.-.\ +# /| \\ +# '| || +# _\_):,_ CFLAGS+=-Wall @@ -14,10 +21,13 @@ PREFIX?=/usr clean: rm -f fsmon - -.PHONY: all fsmon clean install uninstall - else +# APPLE: OSX / IOS / IWATCH +# _ +# _\)/_ +# / \ +# \ / +# \_._/ DESTDIR?= PREFIX?=/usr/local @@ -79,7 +89,7 @@ clean: rm -f fsmon-osx fsmon-ios rm -rf fsmon*.dSYM -.PHONY: all ios osx wch fat clean +.PHONY: cydia ios osx fat wch endif @@ -91,6 +101,11 @@ uninstall: rm -f /usr/local/bin/fsmon rm -f $(DESTDIR)$(PREFIX)/share/man/man1/fsmon.1 +# ANDROID +# +# \.-----./ +# / o o \ +# `-------' LOLLIPOP_CFLAGS=-DHAVE_FANOTIFY=1 -DHAVE_SYS_FANOTIFY=0 KITKAT_CFLAGS=-DHAVE_FANOTIFY=0 -DHAVE_SYS_FANOTIFY=0 @@ -104,4 +119,6 @@ kitkat: ./ndk-gcc 19 -fPIC -pie $(KITKAT_CFLAGS) $(CFLAGS) $(LDFLAGS) -o fsmon-and \ main.c fsmon-linux.c util.c -.PHONY: android lollipop kitkat cydia +.PHONY: android lollipop kitkat +.PHONY: install uninstall +.PHONY: all fsmon clean diff --git a/cydia/CONFIG b/cydia/CONFIG index abf7460..862675e 100644 --- a/cydia/CONFIG +++ b/cydia/CONFIG @@ -1,5 +1,5 @@ PACKAGE=fsmon -VERSION=1.0 +VERSION=1.1 ARCH=iphoneos-arm SECTION=user/shell PRIORITY=optional diff --git a/cydia/Makefile b/cydia/Makefile index c3f5023..7280c4e 100644 --- a/cydia/Makefile +++ b/cydia/Makefile @@ -5,7 +5,8 @@ PACKAGE_DIR?=${PWD} all: $(SUDO) $(MAKE) mrproper mkdir -p data root/usr/bin - cp -rf ../fsmon-ios root/usr/bin/fsmon + cp -f ../fsmon-ios root/usr/bin/fsmon + cp -f ../fsmon.1 root/usr/share/man/man1/fsmon.1 $(SUDO) $(MAKE) debroot clean: diff --git a/fsmon.h b/fsmon.h index 0766cec..f89c464 100644 --- a/fsmon.h +++ b/fsmon.h @@ -1,7 +1,7 @@ #ifndef _FSMON_H_ #define _FSMON_H_ -#define FSMON_VERSION "1.0" +#define FSMON_VERSION "1.1" #include #include "fsev.h"