You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
555 B
38 lines
555 B
include Makefile.conf
|
|
|
|
TARGET_MODULE=synth_shed.so
|
|
# C++
|
|
CXX=clang
|
|
CXXFLAGS+=-std=c++11 -g
|
|
|
|
# Sources
|
|
SRCS+=$(wildcard *.cc)
|
|
OBJS+=$(SRCS:.cc=.o)
|
|
|
|
#Compile
|
|
CXXFLAGS+=$(INCLUDES) -I$(PREFIX)/include
|
|
|
|
#Link
|
|
LDFLAGS+=-undefined dynamic_lookup $(LIBS_PATH) $(LIBS)
|
|
|
|
|
|
$(info -----BUILD INFO----)
|
|
$(info SRCS $(SRCS))
|
|
$(info OBJS $(OBJS))
|
|
|
|
.PHONY: all gen module clean
|
|
|
|
all: gen module
|
|
|
|
gen:
|
|
$(MAKE) -C gen
|
|
|
|
module: $(TARGET_MODULE)
|
|
|
|
$(TARGET_MODULE) : $(OBJS)
|
|
$(CXX) $(LDFLAGS) -o $@ $^
|
|
|
|
clean:
|
|
$(MAKE) -C gen clean
|
|
rm -f $(TARGET_MODULE)
|
|
rm -f $(OBJS)
|
|
|