diff --git a/Makefile b/Makefile index 67807a3..8b54bf7 100644 --- a/Makefile +++ b/Makefile @@ -26,4 +26,17 @@ liblist: test: liblist gcc $(TEST_SRC) $(CFLAGS) -I$(INCLUDE) -o $(BUILD)/$@$(TARGET_TEST_EXT) $(LFLAGS) $(BUILD)/liblist.a - $(BUILD)/$@$(TARGET_TEST_EXT) \ No newline at end of file + $(BUILD)/$@$(TARGET_TEST_EXT) + +install: + cp $(BUILD)/*.a /usr/local/lib/ + cp $(INCLUDE)/*.h /usr/local/include/ + ln -sf /usr/local/lib/liblist.a /usr/lib/liblist.a + ln -sf /usr/local/include/list.h /usr/include/list.h + +uninstall: + rm /usr/local/lib/liblist.a + rm /usr/local/include/list.h + + rm /usr/lib/liblist.a + rm /usr/include/list.h diff --git a/build/liblist.a b/build/liblist.a deleted file mode 100644 index 24a3f89..0000000 Binary files a/build/liblist.a and /dev/null differ diff --git a/build/test.exe b/build/test.exe deleted file mode 100644 index 12d2f78..0000000 Binary files a/build/test.exe and /dev/null differ diff --git a/obj/list.o b/obj/list.o deleted file mode 100644 index 6b4c53f..0000000 Binary files a/obj/list.o and /dev/null differ diff --git a/obj/sorting.o b/obj/sorting.o deleted file mode 100644 index 7edb2fd..0000000 Binary files a/obj/sorting.o and /dev/null differ