Only attempt to build BeOS code on BeOS (don't even try building an empty
authorRyan C. Gordon <icculus@icculus.org>
Sat, 25 May 2002 10:54:13 +0000
changeset 241 9353a112793f
parent 240 052041af9001
child 242 3143cfd544a6
Only attempt to build BeOS code on BeOS (don't even try building an empty object file elsewhere).
configure.in
platform/Makefile.am
--- a/configure.in	Sat May 25 09:41:14 2002 +0000
+++ b/configure.in	Sat May 25 10:54:13 2002 +0000
@@ -208,6 +208,7 @@
 dnl Add Makefile conditionals
 AM_CONDITIONAL(BUILD_ZLIB, test x$enable_internal_zlib = xyes)
 AM_CONDITIONAL(BUILD_TEST_PHYSFS, test x$enable_testprog = xyes)
+AM_CONDITIONAL(BUILD_BEOS_CPP, test x$this_is_beos = xyes)
 
 AC_OUTPUT([
 Makefile
--- a/platform/Makefile.am	Sat May 25 09:41:14 2002 +0000
+++ b/platform/Makefile.am	Sat May 25 10:54:13 2002 +0000
@@ -2,14 +2,20 @@
 
 INCLUDES = -I$(top_srcdir)
 
+if BUILD_BEOS_CPP
+  X = beos.cpp
+else
+  Y = beos.cpp
+endif
+
 libplatform_la_SOURCES =	\
 	unix.c                  \
 	posix.c                 \
-	beos.cpp
+	$(X)
 
 EXTRA_DIST =      \
 	skeleton.c    \
 	macclassic.c  \
-	win32.c
+	win32.c       \
+	$(Y)
 
-