24 lines
887 B
Diff
24 lines
887 B
Diff
--- Makefile.orig 2016-02-05 14:41:31.862198725 -0700
|
|
+++ Makefile 2016-02-04 21:46:14.618379630 -0700
|
|
@@ -46,7 +46,7 @@ ARCHFLAGS := $(ARCHFLAGS)
|
|
|
|
OPTFLAGS ?= -g -O
|
|
|
|
-CFLAGS += -Wall -Wno-unused-function -Wno-write-strings -Wno-sign-compare $(ARCHFLAGS)
|
|
+CFLAGS += -Wno-unused-function $(OPTFLAGS) $(ARCHFLAGS) -Isrc
|
|
ifneq ($(findstring arm,$(shell uname -m)),)
|
|
CFLAGS += -DABC_MEMALIGN=4
|
|
endif
|
|
@@ -186,6 +186,12 @@ $(PROG): $(OBJ)
|
|
@echo "$(MSG_PREFIX)\`\` Building binary:" $(notdir $@)
|
|
$(VERBOSE)$(LD) -o $@ $^ $(LIBS)
|
|
|
|
+lib$(PROG).so: $(OBJ)
|
|
+ @echo "$(MSG_PREFIX)\`\` Linking:" $(notdir $@)
|
|
+ $(VERBOSE)$(LD) -shared -Wl,-h,lib$(PROG).so.0 -o lib$(PROG).so.0.0.0 $^ $(LIBS)
|
|
+ $(VERBOSE)ln -s lib$(PROG).so.0.0.0 lib$(PROG).so.0
|
|
+ $(VERBOSE)ln -s lib$(PROG).so.0 $@
|
|
+
|
|
lib$(PROG).a: $(OBJ)
|
|
@echo "$(MSG_PREFIX)\`\` Linking:" $(notdir $@)
|
|
$(VERBOSE)ar rv $@ $?
|