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 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


+ 0
- 10
compile.mk View File

@@ -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)




+ 7
- 5
plugin.mk View File

@@ -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

Loading…
Cancel
Save