From 5daac864a38aa2ba39e8fc021c7c5ccb645ace96 Mon Sep 17 00:00:00 2001 From: Eswar Yaganti Date: Thu, 11 Feb 2016 18:26:54 +0530 Subject: [PATCH] Added uninstall rule to Makefile --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f196c81..e107202 100644 --- a/Makefile +++ b/Makefile @@ -22,9 +22,8 @@ DYLIBCMD = $(CC) -shared -o $(DYLIBNAME) ## create dynamic (shared) library on Darwin (base OS for MacOSX and IOS) ifeq (Darwin, $(uname_S)) DYLIBNAME = $(LIBNAME).dylib -endif ## create dyanmic (shared) library on SunOS -ifeq (SunOS, $(uname_S)) +else ifeq (SunOS, $(uname_S)) DYLIBCMD = $(CC) -G -o $(DYLIBNAME) INSTALL = cp -r endif @@ -56,5 +55,10 @@ install: $(DYLIBNAME) $(STLIBNAME) $(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH) $(INSTALL) $(STLIBNAME) $(INSTALL_LIBRARY_PATH) +uninstall: + rm -rf $(INSTALL_LIBRARY_PATH)/$(DYLIBNAME) + rm -rf $(INSTALL_LIBRARY_PATH)/$(STLIBNAME) + rm -rf $(INSTALL_INCLUDE_PATH)/cJSON.h + clean: rm -rf $(DYLIBNAME) $(STLIBNAME) $(TESTS) *.o