summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/Makefile.common5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/Makefile.common b/build/Makefile.common
index 74948d5..4091382 100644
--- a/build/Makefile.common
+++ b/build/Makefile.common
@@ -48,7 +48,12 @@ OBJECTS := $(subst /,_,$(subst .c,.o,$(SOURCES)))
# Rules
release: setup $(addprefix $(RELEASEDIR)/,$(OBJECTS))
+
+ifeq ($(BUILD_SHARED),yes)
+ @$(LD) -o $(COMPONENT).so $(addprefix $(RELEASEDIR)/,$(OBJECTS)) $(LDFLAGS)
+else
@$(AR) $(ARFLAGS) $(COMPONENT).a $(addprefix $(RELEASEDIR)/,$(OBJECTS))
+endif
debug: setup $(addprefix $(DEBUGDIR)/,$(OBJECTS))
@$(AR) $(ARFLAGS) $(COMPONENT)-debug.a \