52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
$NetBSD: patch-aa,v 1.5 2012/02/15 21:37:48 hans Exp $
|
|
|
|
--- Makefile.orig 2000-03-28 15:23:58.000000000 -0500
|
|
+++ Makefile
|
|
@@ -13,28 +13,34 @@ SRCS = boxes.c buttons.c checkfile.c dir
|
|
OBJS = $(SRCS:.c=.o)
|
|
SHELL = /bin/sh
|
|
|
|
-CC = gcc
|
|
-LDFLAGS =
|
|
+#CC = gcc
|
|
+#LDFLAGS =
|
|
|
|
########## CHOOSE YOUR ARCHITECTURE: (NOTE: also see bplaysrc/Makefile!)
|
|
|
|
+OS= $(shell uname -s)
|
|
+
|
|
+ifeq ($(OS), Linux)
|
|
# For Linux (and maybe others), use these:
|
|
CFLAGS = -Wall -O2 -DTURBO_MEDIAN -DTURBO_BUFFER
|
|
DEPS = $(OBJS) makebplay
|
|
LIBS = -lncurses -lm
|
|
COPY_A = -a
|
|
-
|
|
+else
|
|
+ifeq (,$(filter-out NetBSD DragonFly SunOS,$(OS)))
|
|
# For FreeBSD (and maybe others), use these:
|
|
-#CFLAGS = -Wall -O2 -DTURBO_MEDIAN -DTURBO_BUFFER
|
|
-#DEPS = $(OBJS) makebplay
|
|
-#LIBS = -lncurses -lm
|
|
-#COPY_A = -p
|
|
-
|
|
+CFLAGS = -Wall -O2 -DTURBO_MEDIAN -DTURBO_BUFFER -DOLD_CURSES
|
|
+DEPS = $(OBJS) makebplay
|
|
+LIBS = -lcurses -lm
|
|
+COPY_A = -p
|
|
+else
|
|
# For IRIX (and maybe others), use these:
|
|
-#CFLAGS = -Wall -O2 -DTURBO_MEDIAN -DTURBO_BUFFER -DSWAP_ENDIAN -DOLD_CURSES
|
|
-#DEPS = $(OBJS)
|
|
-#LIBS = -lcurses -lm
|
|
-#COPY_A = -a
|
|
+CFLAGS = -Wall -O2 -DTURBO_MEDIAN -DTURBO_BUFFER -DSWAP_ENDIAN -DOLD_CURSES
|
|
+DEPS = $(OBJS)
|
|
+LIBS = -lcurses -lm
|
|
+COPY_A = -a
|
|
+endif
|
|
+endif
|
|
|
|
##########
|
|
|