aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-05-20 15:28:54 +0100
committerRichard van der Hoff <richard@matrix.org>2016-05-20 15:28:54 +0100
commit85f2d57e0859c40a702ef79c73357fb641fa63a2 (patch)
treee2fd864c35d7fd9e9bb79b7eaa90b828cb350585 /Makefile
parent488567a45f95cefd258f5f1a4cdf00c8848576d9 (diff)
Add an 'all' target to the Makefile
So that we can build everything together.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9e01a1f..27abf45 100644
--- a/Makefile
+++ b/Makefile
@@ -53,6 +53,9 @@ $(JS_TARGET): LDFLAGS += $(JS_OPTIMIZE_FLAGS)
### top-level targets
+lib: $(TARGET)
+.PHONY: lib
+
$(TARGET): $(OBJECTS)
$(CXX) $(LDFLAGS) --shared -fPIC \
-Wl,--version-script,version_script.ver \
@@ -86,6 +89,9 @@ $(JS_EXPORTED_FUNCTIONS): $(PUBLIC_HEADERS)
perl -MJSON -ne '/(olm_[^( ]*)\(/ && push @f, "_$$1"; END { print encode_json \@f }' $^ > $@.tmp
mv $@.tmp $@
+all: test js lib
+.PHONY: lib
+
### rules for building objects
$(BUILD_DIR)/%.o: src/%.c
$(COMPILE.c) $(OUTPUT_OPTION) $<