Permalink
Browse files

Made id3as_common_c a static library on OSX as well as Linux

  • Loading branch information...
srstrong committed Jan 26, 2014
1 parent 1d1b9bb commit baa8a0afde4d1bfa1138d27b97012f4ac7ce4028
Showing with 3 additions and 3 deletions.
  1. +3 −3 Makefile
View
@@ -5,10 +5,10 @@ UNAME := $(shell uname)
ifeq ($(UNAME), Darwin)
ERL_DIR = $(shell erl -noshell -eval 'io:format("~p~n", [code:lib_dir(erl_interface)])' -eval 'init:stop()')
- TARGET = priv/libid3as_common.so
+ TARGET = priv/libid3as_common.a
CFLAGS += -I $(ERL_DIR)/include
- LDFLAGS += -L /usr/local/lib -L $(ERL_DIR)/lib -l ei -dynamiclib
- MAKE_TARGET = $(CC) $(OBJECTS) $(LDFLAGS) -o $(TARGET)
+ LDFLAGS += -L /usr/local/lib -L $(ERL_DIR)/lib -l ei
+ MAKE_TARGET = ar rcs $(TARGET) $(OBJECTS)
endif
ifeq ($(UNAME), Linux)
TARGET = priv/libid3as_common.a

0 comments on commit baa8a0a

Please sign in to comment.