commit b8306103c51d1ef80592dcd87be573b76f11e246 from: Tobias Heider date: Sat Feb 21 00:26:37 2026 UTC Add GNUmakefile to build on Linux commit - 2e179df643e72bfa73d8c6f4334b6f5e5ea1900b commit + b8306103c51d1ef80592dcd87be573b76f11e246 blob - 62b9f2b960db4a229fc83813d5be8b043832d0e5 blob + 6fdc13ef1d825c88d963020bca634594312b7ca8 --- Makefile +++ Makefile @@ -2,7 +2,9 @@ PROG= siomixer WARNINGS= yes BINDIR?= /usr/local/bin MANDIR?= /usr/local/man/man -CFLAGS+= $$(pkg-config --cflags gtk4) -g -O0 -Wall -fno-omit-frame-pointer -Wimplicit-fallthrough +CFLAGS+= $$(pkg-config --cflags gtk4) +CFLAGS+= -g -O0 -Wall -no-omit-frame-pointer +CFLAGS+= -Wimplicit-fallthrough LDADD+= -lutil -lsndio $$(pkg-config --libs gtk4) SRCS= siomixer.c ctlitem.c blob - /dev/null blob + 5aeaf7bc22a313b711d6828df171dff46cb7568b (mode 644) --- /dev/null +++ GNUmakefile @@ -0,0 +1,19 @@ +CFLAGS+= -Wall -Wimplicit-fallthrough \ + $(shell pkgconf --cflags gtk4) \ + $(shell pkgconf --cflags sndio) +LDFLAGS+= $(shell pkgconf --libs gtk4) \ + $(shell pkgconf --libs sndio) +BINDIR?= /usr/local/bin +MANDIR?= /usr/local/man/man + +.PHONY: all clean install +all: siomixer + +siomixer: siomixer.c ctlitem.c + $(CC) $(CPPFLAGS) $(CFLAGS) $? $(LDFLAGS) -o $@ + +clean: + rm -f siomixer siomixer.o ctlitem.o + +install: + install -c -m 555 -s siomixer -D -t ${DESTDIR}${BINDIR}