From 8104423a98f872a36610b20e9abf90ee4a9e5fb1 Mon Sep 17 00:00:00 2001 From: snow Date: Sat, 29 Aug 2020 22:49:35 -0700 Subject: [PATCH] Add Makefile and gitignore --- .gitignore | 3 +++ Makefile | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5b49304 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.so +*.o +*.swp diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..63ddd5c --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +CXX = g++ +LD = g++ +LDFLAGS = -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib +CXXFLAGS = -I/usr/pkg/include +PREFIX = /usr/pkg + +all: netbsdout.so + +netbsdout.so: + ${CXX} ${CPPFLAGS} ${CXXFLAGS} -fPIC -o src/netbsdout.o -c src/netbsdout.cc + ${LD} ${LDFLAGS} -shared -o netbsdout.so src/netbsdout.o + +clean: + rm netbsdout.so src/netbsdout.o + +install: + install -m 0755 netbsdout.so ${PREFIX}/lib/audacious/Output/netbsdout.so