Browse Source

Rearrange makefiles

tags/v0.6.0
Andrew Belt 6 years ago
parent
commit
b738fe22f4
2 changed files with 16 additions and 9 deletions
  1. +15
    -8
      Makefile
  2. +1
    -1
      compile.mk

+ 15
- 8
Makefile View File

@@ -9,11 +9,13 @@ ifdef RELEASE
FLAGS += -DRELEASE=$(RELEASE)
endif

SOURCES += $(wildcard src/*.cpp src/*/*.cpp)
SOURCES += dep/nanovg/src/nanovg.c
include arch.mk


include arch.mk
# Sources and build flags

SOURCES += $(wildcard src/*.cpp src/*/*.cpp)
SOURCES += dep/nanovg/src/nanovg.c

ifeq ($(ARCH), lin)
SOURCES += dep/osdialog/osdialog_gtk2.c
@@ -47,7 +49,9 @@ ifeq ($(ARCH), win)
endif


all: $(TARGET)
# Convenience targets

all: dep $(TARGET)

dep:
$(MAKE) -C dep
@@ -79,20 +83,18 @@ ifeq ($(ARCH), lin)
LD_LIBRARY_PATH=dep/lib perf record --call-graph dwarf ./Rack
endif


clean:
rm -rfv $(TARGET) libRack.a Rack.res build dist

ifeq ($(ARCH), win)
# For Windows resources
%.res: %.rc
windres $^ -O coff -o $@

include compile.mk
endif


dist: all
rm -rf dist

# Rack distribution
$(MAKE) -C plugins/Fundamental dist

@@ -226,5 +228,10 @@ distplugins:
plugins:
for f in plugins/*; do (cd "$$f" && ${CMD}); done


# Includes

include compile.mk

.PHONY: all dep run debug clean dist allplugins cleanplugins distplugins plugins
.DEFAULT_GOAL := all

+ 1
- 1
compile.mk View File

@@ -69,7 +69,7 @@ build/%.m.o: %.m | dep
@mkdir -p $(@D)
$(CC) $(CFLAGS) -c -o $@ $<

# Do nothing by default
# Dummy target
dep:

.PHONY: dep

Loading…
Cancel
Save