$NetBSD: patch-ab,v 1.3 2012/02/15 21:37:48 hans Exp $ --- bplaysrc/Makefile.orig 2000-03-27 21:24:46.000000000 +0000 +++ bplaysrc/Makefile @@ -6,18 +6,27 @@ OBJS = bplay.o sndfunc.o shmbuf.o ../yes ../clrscr.o ../secshms.o #SRCS = bplay.c sndfunc.o shmbuf.c -CC = gcc -LDFLAGS = +#CC = gcc +#LDFLAGS = ########## CHOOSE YOUR ARCHITECTURE: (NOTE: also see ../Makefile!) +OS= $(shell uname -s) + +ifeq (${OS}, Linux) # For Linux (and maybe others), use these: CFLAGS = -Wall -O2 -DUSEBUFFLOCK -DREDHAT50 -DLP2CD -DVUMETER # -DDEBUG LIBS = -lncurses - +else +ifeq (${OS}, DragonFly) +CFLAGS = -Wall -O2 -DLP2CD -DVUMETER +LIBS = -lcurses ${LIBOSSAUDIO} +else # For FreeBSD (and maybe others), use these: -#CFLAGS = -Wall -O2 -DLP2CD -DVUMETER # -DDEBUG -#LIBS = -lncurses +CFLAGS = -Wall -O2 -DLP2CD -DVUMETER -DOLD_CURSES -D_SEM_SEMUN_UNDEFINED # -DDEBUG +LIBS = -lcurses ${LIBOSSAUDIO} +endif +endif # -DOLD_CURSES can be used here, too.