Browse Source

Update build system

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
6375186492
1 changed files with 14 additions and 9 deletions
  1. +14
    -9
      Makefile

+ 14
- 9
Makefile View File

@@ -1,19 +1,24 @@
RACK_DIR ?= ../..
SLUG = Fundamental SLUG = Fundamental
VERSION = 0.6.0 VERSION = 0.6.0


SOURCES += $(wildcard src/*.cpp)
# Dependencies


DISTRIBUTABLES += $(wildcard LICENSE*) res
include $(RACK_DIR)/dep.mk


FLAGS += -Idep/libsamplerate/src

libsamplerate = dep/libsamplerate/src/.libs/libsamplerate.a
libsamplerate = dep/libsamplerate-0.1.9/src/.libs/libsamplerate.a
$(libsamplerate): $(libsamplerate):
cd dep/libsamplerate && ./autogen.sh
cd dep/libsamplerate && CFLAGS=-fPIC ./configure
cd dep/libsamplerate && $(MAKE)
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)

# Plugin build


FLAGS += -Idep/libsamplerate-0.1.9/src

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


RACK_DIR ?= ../..
include $(RACK_DIR)/plugin.mk include $(RACK_DIR)/plugin.mk

Loading…
Cancel
Save