Browse Source

Update dep target

tags/v0.6.0
Andrew Belt 6 years ago
parent
commit
79f5eb28f9
1 changed files with 15 additions and 11 deletions
  1. +15
    -11
      Makefile

+ 15
- 11
Makefile View File

@@ -2,23 +2,27 @@ RACK_DIR ?= ../..
SLUG = Fundamental
VERSION = 0.6.0

FLAGS += -Idep/include
SOURCES += $(wildcard src/*.cpp)
DISTRIBUTABLES += $(wildcard LICENSE*) res

libsamplerate = dep/lib/libsamplerate.a
OBJECTS += $(libsamplerate)

include $(RACK_DIR)/plugin.mk

# Dependencies

include $(RACK_DIR)/dep.mk
DEP_FLAGS += -fPIC
DEP_LOCAL := dep

libsamplerate = dep/libsamplerate-0.1.9/src/.libs/libsamplerate.a
$(libsamplerate):
mkdir -p dep
cd dep && $(WGET) http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz
cd dep && $(UNTAR) libsamplerate-0.1.9.tar.gz
cd dep/libsamplerate-0.1.9 && $(CONFIGURE)
cd dep/libsamplerate-0.1.9 && $(MAKE)
cd dep/libsamplerate-0.1.9 && $(MAKE) install

# Plugin build

FLAGS += -Idep/libsamplerate-0.1.9/src

SOURCES += $(wildcard src/*.cpp)
DISTRIBUTABLES += $(wildcard LICENSE*) res
OBJECTS += $(libsamplerate)

include $(RACK_DIR)/plugin.mk
DEPS += $(libsamplerate)
include $(RACK_DIR)/dep.mk

Loading…
Cancel
Save