Browse Source

Clean up build system

tags/v0.5.0
Andrew Belt 7 years ago
parent
commit
df69ba0d51
3 changed files with 8 additions and 16 deletions
  1. +1
    -1
      Makefile
  2. +0
    -10
      compile.mk
  3. +7
    -5
      plugin.mk

+ 1
- 1
Makefile View File

@@ -75,7 +75,7 @@ include compile.mk

dist: all
ifndef VERSION
$(error VERSION must be defined when calling make)
$(error VERSION must be defined when making distributables)
endif
rm -rf dist
$(MAKE) -C plugins/Fundamental dist


+ 0
- 10
compile.mk View File

@@ -42,16 +42,6 @@ DEPS = $(patsubst %, build/%.d, $(SOURCES))
$(TARGET): $(OBJECTS)
$(CXX) -o $@ $^ $(LDFLAGS)

%.so:
$(CXX) -o $@ $^ $(LDFLAGS)

%.dylib:
$(CXX) -o $@ $^ $(LDFLAGS)

%.dll:
$(CXX) -o $@ $^ $(LDFLAGS)

# Object targets

-include $(DEPS)



+ 7
- 5
plugin.mk View File

@@ -8,21 +8,23 @@ include ../../arch.mk

ifeq ($(ARCH), lin)
LDFLAGS += -shared
PLUGIN_EXTENSION = so
TARGET = plugin.so
endif

ifeq ($(ARCH), mac)
LDFLAGS += -shared -undefined dynamic_lookup
PLUGIN_EXTENSION = dylib
TARGET = plugin.dylib
endif

ifeq ($(ARCH), win)
LDFLAGS += -shared -L../../ -lRack
PLUGIN_EXTENSION = dll
TARGET = plugin.dll
endif


clean:
rm -rfv build *.$(PLUGIN_EXTENSION) dist
all: $(TARGET)

include ../../compile.mk

clean:
rm -rfv build $(TARGET) dist

Loading…
Cancel
Save