diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -1,3 +1,7 @@ +PREFIX = /usr +LIB = /lib +INCLUDE = /include + OPTIMISE = -Os CPPFLAGS = CFLAGS = -std=c90 -Wall -Wextra -fPIC @@ -23,6 +27,20 @@ obj/%.o: src/%.c src/%.h $(CC) $(CC_FLAGS) -o "$@" -c "$<" +.PHONY: install +install: bin/libpassphrase.so + install -dm755 -- "$(DESTDIR)$(PREFIX)$(LIB)" + install -dm755 -- "$(DESTDIR)$(PREFIX)$(INCLUDE)" + install -m755 -- bin/libpassphrase.so "$(DESTDIR)$(PREFIX)$(LIB)" + install -m755 -- src/passphrase.h "$(DESTDIR)$(PREFIX)$(INCLUDE)" + + +.PHONY: uninstall +uninstall: + -rm -- "$(DESTDIR)$(PREFIX)$(LIB)/libpassphrase.so" + -rm -- "$(DESTDIR)$(PREFIX)$(INCLUDE)/passphrase.h" + + .PHONY: clean clean: -rm -r bin obj |