aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/morphos/build.rules5
-rw-r--r--backends/sdl/build.rules16
-rw-r--r--backends/x11/build.rules7
3 files changed, 28 insertions, 0 deletions
diff --git a/backends/morphos/build.rules b/backends/morphos/build.rules
new file mode 100644
index 0000000000..d5b853984a
--- /dev/null
+++ b/backends/morphos/build.rules
@@ -0,0 +1,5 @@
+CC = g++
+CFLAGS = -Wno-multichar -fstrength-reduce -fno-rtti -O2
+DEFINES = -DNO_PPCINLINE_STDARG -DNO_PPCINLINE_VARARGS
+LDFLAGS = -noixemul -s
+LIBS = -lamiga -lamigastubs -lcdda
diff --git a/backends/sdl/build.rules b/backends/sdl/build.rules
new file mode 100644
index 0000000000..3bdb7b58ce
--- /dev/null
+++ b/backends/sdl/build.rules
@@ -0,0 +1,16 @@
+# Build settings for the SDL backend
+MODULES += backends/sdl
+OBJS += backends/sdl/sdl.o
+DEFINES += -DUNIX
+INCLUDES += `sdl-config --cflags`
+LIBS += `sdl-config --libs`
+
+# Uncomment this (instead of the above) to activate the SDL with OpenGL output
+# OBJS += backends/sdl/sdl_gl.o
+# DEFINES += -DUNIX
+# INCLUDES += `sdl-config --cflags`
+# LIBS += `sdl-config --libs` -lGL
+
+# Uncomment this in addition to the above if you compile on Mac OS X
+DEFINES += -DMACOSX
+LIBS += -framework QuickTime -framework AudioUnit
diff --git a/backends/x11/build.rules b/backends/x11/build.rules
new file mode 100644
index 0000000000..1540d452d6
--- /dev/null
+++ b/backends/x11/build.rules
@@ -0,0 +1,7 @@
+# Build settings for the X11 backend
+MODULES += backends/x11
+OBJS += backends/x11/x11.o
+DEFINES += -DUNIX -DX11_BACKEND
+LDFLAGS += -L/usr/X11R6/lib -L/usr/local/lib
+INCLUDES+= -I/usr/X11R6/include
+LIBS += -lpthread -lXext -lX11