diff options
-rw-r--r-- | Makefile | 21 | ||||
-rw-r--r-- | src/Make.config | 1 |
2 files changed, 11 insertions, 11 deletions
@@ -1,28 +1,27 @@ +LIBRARY ?= static PREFIX ?= $(PWD)/dist -HPATH = include/xtract -static: LIBRARY = static -shared: LIBRARY = shared +HPATH = include/xtract export XTRACT_VERSION PREFIX LIBRARY -.PHONY: examples clean static shared install doc +.PHONY: examples clean install doc src -all: static examples +all: src examples -static shared: - @$(MAKE) -C src - -examples: +src: @$(MAKE) -C $@ doc: @$(MAKE) -C $@ +examples: + @$(MAKE) -C $@ + install: - $(MAKE) -C src install - $(MAKE) -C examples install + @$(MAKE) -C src install + @$(MAKE) -C examples install @mkdir -p $(PREFIX)/$(HPATH) @cp $(HPATH)/* $(PREFIX)/$(HPATH) diff --git a/src/Make.config b/src/Make.config index 202c0ab..75d5abe 100644 --- a/src/Make.config +++ b/src/Make.config @@ -1,5 +1,6 @@ NAME := xtract DIRS := . c-ringbuf ooura dywapitchtrack +FLAGS := -I../include ifeq ($(PLATFORM), Darwin) LDFLAGS = -framework Accelerate |