Do not ignore Makefile

main
Benoît Rouits 10 months ago
parent 87522336ef
commit b253e13018
  1. 1
      .gitignore
  2. 27
      headset/Makefile

1
.gitignore vendored

@ -116,7 +116,6 @@ qrc_*.cpp
ui_*.h
*.qmlc
*.jsc
Makefile*
*build-*
*.qm
*.prl

@ -0,0 +1,27 @@
BUNDLE = headset.lv2
PREFIX=/usr/local
INSTALL_DIR = ${DESTDIR}$(PREFIX)/lib/lv2
$(BUNDLE): manifest.ttl headset.ttl headset.so headset_ui.so
$(RM) -r $(BUNDLE)
mkdir $(BUNDLE)
cp manifest.ttl headset.ttl headset.so headset_ui.so $(BUNDLE)
headset.so: headset.c
$(CC) -shared -fPIC -DPIC $< -o $@
headset_ui.so: headset_ui.c
$(CC) `pkg-config --cflags x11` -shared -fPIC -DPIC $< `pkg-config --libs x11` -Wl,-z,nodelete -o $@
install: $(BUNDLE)
mkdir -p $(INSTALL_DIR)
$(RM) -r $(INSTALL_DIR)/$(BUNDLE)
cp -R $(BUNDLE) $(INSTALL_DIR)
uninstall:
$(RM) -r $(INSTALL_DIR)/$(BUNDLE)
clean:
$(RM) -r $(BUNDLE)
$(RM) headset_ui.so
$(RM) headset.so
Loading…
Cancel
Save