Add an 'all' target to the Makefile

So that we can build everything together.
This commit is contained in:
Richard van der Hoff 2016-05-20 15:28:54 +01:00
parent 488567a45f
commit 85f2d57e08

View file

@ -53,6 +53,9 @@ $(JS_TARGET): LDFLAGS += $(JS_OPTIMIZE_FLAGS)
### top-level targets ### top-level targets
lib: $(TARGET)
.PHONY: lib
$(TARGET): $(OBJECTS) $(TARGET): $(OBJECTS)
$(CXX) $(LDFLAGS) --shared -fPIC \ $(CXX) $(LDFLAGS) --shared -fPIC \
-Wl,--version-script,version_script.ver \ -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 perl -MJSON -ne '/(olm_[^( ]*)\(/ && push @f, "_$$1"; END { print encode_json \@f }' $^ > $@.tmp
mv $@.tmp $@ mv $@.tmp $@
all: test js lib
.PHONY: lib
### rules for building objects ### rules for building objects
$(BUILD_DIR)/%.o: src/%.c $(BUILD_DIR)/%.o: src/%.c
$(COMPILE.c) $(OUTPUT_OPTION) $< $(COMPILE.c) $(OUTPUT_OPTION) $<