Add Makefile and gitignore

This commit is contained in:
snow 2020-08-29 22:49:35 -07:00
parent f23767ad93
commit 8104423a98
2 changed files with 20 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
*.so
*.o
*.swp

17
Makefile Normal file
View file

@ -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