commit af06f858e1f5c117d1f19a5cd1bde9cf2fbbac55 parent 2cbc86bc7f6166a0e258b995571dc29961e2977b Author: Elliot Saba <staticfloat@gmail.com> Date: Tue, 29 Jul 2014 22:35:03 -0400 I like SHLIB_EXT, for consistency Diffstat:
M | Makefile | | | 12 | ++++++------ |
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile @@ -11,19 +11,19 @@ AR = ar OS := $(shell uname) ifeq ($(OS),Darwin) - SHARED_SUFFIX = dylib + SHLIB_EXT = dylib else #TODO Windows - SHARED_SUFFIX = so + SHLIB_EXT = so endif # meta targets all: c-library -c-library: libmojibake.a libmojibake.$(SHARED_SUFFIX) +c-library: libmojibake.a libmojibake.$(SHLIB_EXT) clean: - rm -f utf8proc.o libmojibake.a libmojibake.$(SHARED_SUFFIX) + rm -f utf8proc.o libmojibake.a libmojibake.$(SHLIB_EXT) update: utf8proc_data.c.new @@ -54,8 +54,8 @@ libmojibake.a: utf8proc.o $(AR) rs libmojibake.a utf8proc.o libmojibake.so: utf8proc.o - $(cc) -shared -o libmojibake.$(SHARED_SUFFIX) utf8proc.o - chmod a-x libmojibake.$(SHARED_SUFFIX) + $(cc) -shared -o libmojibake.$(SHLIB_EXT) utf8proc.o + chmod a-x libmojibake.$(SHLIB_EXT) libmojibake.dylib: utf8proc.o $(cc) -dynamiclib -o $@ $^ -install_name $(libdir)/$@