diff --git a/c/Makefile b/c/Makefile index aedf1d8..469e065 100644 --- a/c/Makefile +++ b/c/Makefile @@ -1,6 +1,6 @@ -all: build static-lib dynamic-lib example compile-tests +all: build static-lib dynamic-lib example compile-tests test build: gcc -c -g cmdlineoptions.c @@ -15,7 +15,7 @@ dynamic-lib: clean: - rm -f *.o *.a *.so example + rm -f *.o *.a *.so example-shared example-static tests-shared tests-static example: @@ -28,5 +28,13 @@ compile-tests: gcc tests.c -o tests-static libcmdlineoptions.a test: - LD_LIBRARY_PATH="." tests-shared - tests-static \ No newline at end of file + LD_LIBRARY_PATH="." ./tests-shared + ./tests-static + + +install: + cp libcmdlineoptions.so /usr/lib/ + cp libcmdlineoptions.a /usr/lib/ + +uninstall: + rm /usr/lib/libcmdlineoptions.* \ No newline at end of file