Commit 1ce20ee4 authored by Josh Coalson's avatar Josh Coalson
Browse files

parameterize static and shared library suffixes

parent 992009a8
......@@ -28,19 +28,20 @@ CCC = g++
endif
NASM = nasm
LINK = ar cru
LIBPATH = ../../obj/lib
ifeq ($(DARWIN_BUILD),yes)
LINKD = $(CC) -dynamiclib -flat_namespace -undefined suppress -install_name ../../obj/lib/libFLAC.dylib
#LINKD = $(CC) -dynamiclib -flat_namespace -undefined suppress -install_name ../../obj/lib/libFLAC.1.dylib -compatibility_version 3 -current_version 3.1
STATIC_LIB_SUFFIX = a
DYNAMIC_LIB_SUFFIX = dylib
else
LINKD = ld -G
STATIC_LIB_SUFFIX = a
DYNAMIC_LIB_SUFFIX = so
endif
LIBPATH = ../../obj/lib
STATIC_LIB = $(LIBPATH)/$(LIB_NAME).a
STATIC_LIB = $(LIBPATH)/$(LIB_NAME).$(STATIC_LIB_SUFFIX)
DYNAMIC_LIB = $(LIBPATH)/$(LIB_NAME).$(DYNAMIC_LIB_SUFFIX)
ifeq ($(DARWIN_BUILD),yes)
DYNAMIC_LIB = $(LIBPATH)/$(LIB_NAME).dylib
#DYNAMIC_LIB = $(LIBPATH)/$(LIB_NAME).1.1.1.dylib
LINKD = $(CC) -dynamiclib -flat_namespace -undefined suppress -install_name $(DYNAMIC_LIB)
else
DYNAMIC_LIB = $(LIBPATH)/$(LIB_NAME).so
LINKD = ld -G
endif
all : release
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment