mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
Added uninstall rule to Makefile
This commit is contained in:
parent
e95313adad
commit
5daac864a3
8
Makefile
8
Makefile
@ -22,9 +22,8 @@ DYLIBCMD = $(CC) -shared -o $(DYLIBNAME)
|
|||||||
## create dynamic (shared) library on Darwin (base OS for MacOSX and IOS)
|
## create dynamic (shared) library on Darwin (base OS for MacOSX and IOS)
|
||||||
ifeq (Darwin, $(uname_S))
|
ifeq (Darwin, $(uname_S))
|
||||||
DYLIBNAME = $(LIBNAME).dylib
|
DYLIBNAME = $(LIBNAME).dylib
|
||||||
endif
|
|
||||||
## create dyanmic (shared) library on SunOS
|
## create dyanmic (shared) library on SunOS
|
||||||
ifeq (SunOS, $(uname_S))
|
else ifeq (SunOS, $(uname_S))
|
||||||
DYLIBCMD = $(CC) -G -o $(DYLIBNAME)
|
DYLIBCMD = $(CC) -G -o $(DYLIBNAME)
|
||||||
INSTALL = cp -r
|
INSTALL = cp -r
|
||||||
endif
|
endif
|
||||||
@ -56,5 +55,10 @@ install: $(DYLIBNAME) $(STLIBNAME)
|
|||||||
$(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH)
|
$(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH)
|
||||||
$(INSTALL) $(STLIBNAME) $(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:
|
clean:
|
||||||
rm -rf $(DYLIBNAME) $(STLIBNAME) $(TESTS) *.o
|
rm -rf $(DYLIBNAME) $(STLIBNAME) $(TESTS) *.o
|
||||||
|
Loading…
Reference in New Issue
Block a user