2012-02-13 11:28:56 +01:00
|
|
|
BUNDLE = drmr.lv2
|
2012-02-07 12:42:51 +01:00
|
|
|
INSTALL_DIR = /usr/local/lib/lv2
|
2012-02-06 22:54:18 +01:00
|
|
|
CC=gcc
|
|
|
|
|
2012-02-13 17:34:51 +01:00
|
|
|
$(BUNDLE): manifest.ttl drmr.ttl drmr.so drmr_ui.so
|
2012-02-06 22:54:18 +01:00
|
|
|
rm -rf $(BUNDLE)
|
|
|
|
mkdir $(BUNDLE)
|
2012-02-13 17:34:51 +01:00
|
|
|
cp manifest.ttl drmr.ttl drmr.so drmr_ui.so $(BUNDLE)
|
2012-02-06 22:54:18 +01:00
|
|
|
|
|
|
|
drmr.so: drmr.c drmr_hydrogen.c
|
2012-02-15 12:20:11 +01:00
|
|
|
$(CC) -shared -Wall -fPIC -DPIC drmr.c drmr_hydrogen.c `pkg-config --cflags --libs lv2-plugin sndfile samplerate` -lexpat -lm -o drmr.so
|
2012-02-13 11:24:26 +01:00
|
|
|
|
2012-02-13 12:57:32 +01:00
|
|
|
drmr_ui.so: drmr_ui.c drmr_hydrogen.c
|
2012-02-15 12:20:11 +01:00
|
|
|
$(CC) -shared -Wall -fPIC -DPIC drmr_ui.c drmr_hydrogen.c `pkg-config --cflags --libs lv2-plugin gtk+-2.0 sndfile samplerate` -lexpat -lm -o drmr_ui.so
|
2012-02-13 11:24:26 +01:00
|
|
|
|
2012-02-21 10:29:54 +01:00
|
|
|
htest: drmr_hydrogen.c
|
|
|
|
$(CC) -D_TEST_HYDROGEN_PARSER -Wall -fPIC -DPIC drmr_hydrogen.c `pkg-config --cflags --libs sndfile samplerate` -lexpat -lm -o htest
|
|
|
|
|
2012-02-06 22:54:18 +01:00
|
|
|
install: $(BUNDLE)
|
|
|
|
mkdir -p $(INSTALL_DIR)
|
|
|
|
rm -rf $(INSTALL_DIR)/$(BUNDLE)
|
|
|
|
cp -R $(BUNDLE) $(INSTALL_DIR)
|
|
|
|
|
|
|
|
clean:
|
2012-02-13 11:24:26 +01:00
|
|
|
rm -rf $(BUNDLE) drmr.so drmr_ui.so
|