Introduction
Introduction Statistics Contact Development Disclaimer Help
Added STANDARDS as another source of env flags. - sam - An updated version of t…
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
commit 3cc419bf948b23a4a1c4f613df9d0996c66bc547
parent b646f65c25a1d1ba6e2d2523d896e97696219f33
Author: Rob King <[email protected]>
Date: Sun, 4 Sep 2016 18:42:47 -0500
Added STANDARDS as another source of env flags.
sam wasn't compiling on Mac OS X without -D_DARWIN_C_SOURCE.
Diffstat:
config.mk.def | 7 +++++++
libXg/Makefile | 2 +-
libframe/Makefile | 2 +-
sam/Makefile | 2 +-
samterm/Makefile | 2 +-
5 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/config.mk.def b/config.mk.def
@@ -5,6 +5,13 @@
CC=c99
# CC=gcc -std=c89 is another good option
+# STANDARDS names the C preprocessor defines that need to
+# be present to get a more-or-less standard compilation
+# environment.
+#
+# Mac OS X users need to add -D_DARWIN_C_SOURCE here.
+STANDARDS=-D_POSIX_C_SOURCE=200809L
+
# DESTDIR is the root of the installation tree
DESTDIR?=/usr/local
diff --git a/libXg/Makefile b/libXg/Makefile
@@ -20,7 +20,7 @@ AR=ar
# the name of the library
LIB=libXg.a
-CFLAGS=-D_POSIX_C_SOURCE=200809L $(INCS) $(INCLUDES)
+CFLAGS=$(STANDARDS) $(INCS) $(INCLUDES)
CC?=c99
OBJS= arc.o arith.o balloc.o bitblt.o bitbltclip.o border.o bscreenrect…
diff --git a/libframe/Makefile b/libframe/Makefile
@@ -15,7 +15,7 @@ RANLIB=:
# add name of library
AR=ar
-CFLAGS=-c $(INCS) -D_POSIX_C_SOURCE=200809L $(INCLUDES)
+CFLAGS=-c $(INCS) $(STANDARDS) $(INCLUDES)
LIB=libframe.a
CC?=c99
diff --git a/sam/Makefile b/sam/Makefile
@@ -32,7 +32,7 @@ RXSAMNAME=rsam
SAMSAVE=/bin/sh\\n$(SAMSAVEDIR)/samsave
-CFLAGS=-D_POSIX_C_SOURCE=200809L $(INCS) $(INCLUDES)
+CFLAGS=$(STANDARDS) $(INCS) $(INCLUDES)
LIB=../libframe/libframe.a ../libXg/libXg.a
CC?=c99
diff --git a/samterm/Makefile b/samterm/Makefile
@@ -17,7 +17,7 @@ SAMTERM=$(BINDIR)/samterm
# or if you need extra libraries to load with X11 applications
XLIBS=-lXt -lX11 -lXft
-CFLAGS=$(INCS) -D_POSIX_C_SOURCE=200809L $(INCLUDES)
+CFLAGS=$(INCS) $(STANDARDS) $(INCLUDES)
LIBS=../libframe/libframe.a ../libXg/libXg.a
CC?=c99
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.