@@ -75,7 +75,7 @@ include compile.mk | |||||
dist: all | dist: all | ||||
ifndef VERSION | ifndef VERSION | ||||
$(error VERSION must be defined when calling make) | |||||
$(error VERSION must be defined when making distributables) | |||||
endif | endif | ||||
rm -rf dist | rm -rf dist | ||||
$(MAKE) -C plugins/Fundamental dist | $(MAKE) -C plugins/Fundamental dist | ||||
@@ -42,16 +42,6 @@ DEPS = $(patsubst %, build/%.d, $(SOURCES)) | |||||
$(TARGET): $(OBJECTS) | $(TARGET): $(OBJECTS) | ||||
$(CXX) -o $@ $^ $(LDFLAGS) | $(CXX) -o $@ $^ $(LDFLAGS) | ||||
%.so: | |||||
$(CXX) -o $@ $^ $(LDFLAGS) | |||||
%.dylib: | |||||
$(CXX) -o $@ $^ $(LDFLAGS) | |||||
%.dll: | |||||
$(CXX) -o $@ $^ $(LDFLAGS) | |||||
# Object targets | |||||
-include $(DEPS) | -include $(DEPS) | ||||
@@ -8,21 +8,23 @@ include ../../arch.mk | |||||
ifeq ($(ARCH), lin) | ifeq ($(ARCH), lin) | ||||
LDFLAGS += -shared | LDFLAGS += -shared | ||||
PLUGIN_EXTENSION = so | |||||
TARGET = plugin.so | |||||
endif | endif | ||||
ifeq ($(ARCH), mac) | ifeq ($(ARCH), mac) | ||||
LDFLAGS += -shared -undefined dynamic_lookup | LDFLAGS += -shared -undefined dynamic_lookup | ||||
PLUGIN_EXTENSION = dylib | |||||
TARGET = plugin.dylib | |||||
endif | endif | ||||
ifeq ($(ARCH), win) | ifeq ($(ARCH), win) | ||||
LDFLAGS += -shared -L../../ -lRack | LDFLAGS += -shared -L../../ -lRack | ||||
PLUGIN_EXTENSION = dll | |||||
TARGET = plugin.dll | |||||
endif | endif | ||||
clean: | |||||
rm -rfv build *.$(PLUGIN_EXTENSION) dist | |||||
all: $(TARGET) | |||||
include ../../compile.mk | include ../../compile.mk | ||||
clean: | |||||
rm -rfv build $(TARGET) dist |