2020-07-13 15:45:04 -04:00
|
|
|
AD = ../..
|
|
|
|
CXXFLAGS = -Wall
|
|
|
|
CPPFLAGS = -I $(AD)/libs/evoral -I $(AD)/libs/pbd -I $(AD)/build/libs/pbd
|
|
|
|
CPPFLAGS += `pkg-config --cflags libxml-2.0 glibmm-2.4`
|
|
|
|
|
2022-02-05 10:04:32 -05:00
|
|
|
LDFLAGS = -L $(AD)/build/libs/pbd
|
|
|
|
LDFLAGS += -L $(AD)/build/libs/temporal
|
|
|
|
LDFLAGS += -L $(AD)/build/libs/evoral
|
2020-07-13 15:45:04 -04:00
|
|
|
|
2022-09-24 20:48:00 -04:00
|
|
|
LDLIBS = -Wl,--disable-new-dtags # set DT_RPATH
|
|
|
|
LDLIBS += -lpbd -Xlinker -rpath=$(AD)/build/libs/pbd
|
2022-02-05 10:04:32 -05:00
|
|
|
LDLIBS += -ltemporal -Xlinker -rpath=$(AD)/build/libs/temporal
|
|
|
|
LDLIBS += -levoral -Xlinker -rpath=$(AD)/build/libs/evoral
|
|
|
|
LDLIBS += `pkg-config --libs libxml-2.0 glibmm-2.4`
|
2020-07-13 15:45:04 -04:00
|
|
|
|
|
|
|
smfload: smfload.cc libevoral
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ smfload.cc $(LDLIBS)
|
|
|
|
|
|
|
|
libevoral:
|
|
|
|
cd $(AD); ./waf build --targets=libevoral
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f smfload
|
|
|
|
|
|
|
|
.PHONY: libevoral clean
|