Browse Source

Updated build instructions, refactored Makefiles

tags/v0.3.0
Andrew Belt 7 years ago
parent
commit
7776697d72
6 changed files with 27 additions and 21 deletions
  1. +3
    -3
      Makefile
  2. +19
    -14
      README.md
  3. +0
    -0
      arch.mk
  4. +0
    -0
      compile.mk
  5. +2
    -1
      dep/Makefile
  6. +3
    -3
      plugin.mk

+ 3
- 3
Makefile View File

@@ -1,5 +1,3 @@
include Makefile-arch.inc

FLAGS += \
-I./include

@@ -7,6 +5,8 @@ SOURCES = $(wildcard src/*.cpp src/*/*.cpp) \
ext/nanovg/src/nanovg.c


include arch.mk

ifeq ($(ARCH), lin)
SOURCES += ext/osdialog/osdialog_gtk2.c
CFLAGS += $(shell pkg-config --cflags gtk+-2.0)
@@ -54,4 +54,4 @@ clean:
%.res: %.rc
windres $^ -O coff -o $@

include Makefile.inc
include compile.mk

+ 19
- 14
README.md View File

@@ -1,27 +1,32 @@
***Note: This repo is unsupported until September 7. All issues and pull requests will be ignored until then.***
***Note: This repo is unsupported until September 7. See you at [Knobcon](https://knobcon.com/)!***

# Rack

Open source virtual Eurorack DAW
*Rack* is the engine for the VCV open-source virtual Eurorack DAW.

## Building

Install dependencies
*If the build fails for you, please report the issue with a detailed error message to help the portability of Rack.*

- [GLEW](http://www.glfw.org/)
- [GLFW](http://glew.sourceforge.net/)
- [jansson](http://www.digip.org/jansson/)
- [portaudio](http://www.portaudio.com/)
- [portmidi](http://portmedia.sourceforge.net/portmidi/)
- [libsamplerate](http://www.mega-nerd.com/SRC/)
- GTK+-2.0 if Linux (for file open/save dialog)
Clone this repository and `cd` into it.
On Windows, use [MSYS2](http://www.msys2.org/) to set up a \*NIX shell.

Run `make ARCH=lin` or `make ARCH=win` or `make ARCH=mac`
Clone submodules in `/ext`.

If the build breaks because you think I've missed a step, feel free to post an issue.
git submodule update --init

Build dependencies locally.

cd dep
make
cd ..

Build Rack.

make

## License

Rack source code by [Andrew Belt](https://andrewbelt.name/): [BSD-3-Clause](LICENSE.txt)
Rack source code by [Andrew Belt](https://andrewbelt.name/) licensed under the [BSD-3-Clause](LICENSE.txt)

Component Library graphics by [Grayscale](http://grayscale.info/): [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/)
Component Library graphics by [Grayscale](http://grayscale.info/) licensed under the [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/)

Makefile-arch.inc → arch.mk View File


Makefile.inc → compile.mk View File


+ 2
- 1
dep/Makefile View File

@@ -2,7 +2,8 @@
LOCAL = $(PWD)

# Arch-specifics
include ../Makefile-arch.inc
include ../arch.mk

ifeq ($(ARCH),mac)
export CFLAGS = -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk \
-mmacosx-version-min=10.7


Makefile-plugin.inc → plugin.mk View File

@@ -1,11 +1,11 @@
# All paths here assume the PWD is plugin/something

include ../../Makefile-arch.inc

FLAGS += -fPIC \
-I../../include


include ../../arch.mk

ifeq ($(ARCH), lin)
LDFLAGS += -shared
TARGET = plugin.so
@@ -27,4 +27,4 @@ all: $(TARGET)
clean:
rm -rfv build $(TARGET)

include ../../Makefile.inc
include ../../compile.mk

Loading…
Cancel
Save