Browse Source

Use generic strip in Makefiles

tags/v0.6.1
Andrew Belt 6 years ago
parent
commit
bb17953143
3 changed files with 9 additions and 6 deletions
  1. +4
    -3
      Makefile
  2. +1
    -1
      arch.mk
  3. +4
    -2
      plugin.mk

+ 4
- 3
Makefile View File

@@ -11,6 +11,7 @@ endif

include arch.mk

STRIP ?= strip

# Sources and build flags

@@ -111,7 +112,7 @@ ifeq ($(ARCH), mac)

mkdir -p $(BUNDLE)/Contents/MacOS
cp $(TARGET) $(BUNDLE)/Contents/MacOS/
strip -S $(BUNDLE)/Contents/MacOS/$(TARGET)
$(STRIP) -S $(BUNDLE)/Contents/MacOS/$(TARGET)
cp icon.icns $(BUNDLE)/Contents/Resources/

otool -L $(BUNDLE)/Contents/MacOS/$(TARGET)
@@ -156,7 +157,7 @@ ifeq ($(ARCH), win)
cp Bridge/vst/dist/VCV-Bridge-32.dll dist/Rack/Bridge/
cp -R LICENSE* res dist/Rack/
cp $(TARGET) dist/Rack/
strip -s dist/Rack/$(TARGET)
$(STRIP) -s dist/Rack/$(TARGET)
cp /mingw64/bin/libwinpthread-1.dll dist/Rack/
cp /mingw64/bin/zlib1.dll dist/Rack/
cp /mingw64/bin/libstdc++-6.dll dist/Rack/
@@ -182,7 +183,7 @@ ifeq ($(ARCH), lin)
mkdir -p dist/Rack
cp -R LICENSE* res dist/Rack/
cp $(TARGET) Rack.sh dist/Rack/
strip -s dist/Rack/$(TARGET)
$(STRIP) -s dist/Rack/$(TARGET)
cp dep/lib/libspeexdsp.so dist/Rack/
cp dep/lib/libjansson.so.4 dist/Rack/
cp dep/lib/libGLEW.so.2.1 dist/Rack/


+ 1
- 1
arch.mk View File

@@ -2,7 +2,7 @@

ifndef ARCH

MACHINE = $(shell gcc -dumpmachine)
MACHINE = $(shell $(CC) -dumpmachine)
ifneq (, $(findstring linux, $(MACHINE)))
# Linux
ARCH = lin


+ 4
- 2
plugin.mk View File

@@ -6,6 +6,8 @@ ifndef SLUG
$(error SLUG is not defined)
endif

STRIP ?= strip

FLAGS += -DSLUG=$(SLUG)
FLAGS += -fPIC
FLAGS += -I$(RACK_DIR)/include -I$(RACK_DIR)/dep/include
@@ -46,9 +48,9 @@ dist: all
# Strip and copy plugin binary
cp $(TARGET) dist/$(SLUG)/
ifeq ($(ARCH), mac)
strip -S dist/$(SLUG)/$(TARGET)
$(STRIP) -S dist/$(SLUG)/$(TARGET)
else
strip -s dist/$(SLUG)/$(TARGET)
$(STRIP) -s dist/$(SLUG)/$(TARGET)
endif
# Copy distributables
cp -R $(DISTRIBUTABLES) dist/$(SLUG)/


Loading…
Cancel
Save