aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/stella/files/patch-ac
blob: 8c31e426bda16c20cfcc92322b10084e86a3dc6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- src/build/makefile.orig Mon Apr 22 09:53:19 2002
+++ src/build/makefile  Tue Jan  7 09:08:53 2003
@@ -66,8 +66,8 @@
 ## No configurable options below this line ...
 ##============================================================================
 
-CXX    = g++
-LD = g++
+CXX    ?= g++
+LD = $(CXX)
 
 LDFLAGS = 
 LDLIBS = 
@@ -90,7 +90,7 @@
 
 INCLUDES = -I. -I$(CORE) -I$(CORE)/m6502/src -I$(CORE)/m6502/src/bspf/src -I$(UI)/common
 
-CXXFLAGS = $(OPTIMIZATIONS) $(INCLUDES) $(SYS_INCLUDES)
+CXXFLAGS += $(OPTIMIZATIONS) $(INCLUDES) $(SYS_INCLUDES)
 
 ## set the user-defined options
 ifdef BSPF_BOOL
@@ -216,6 +216,15 @@
           LDFLAGS+="$(CFLAGS.X11)" \
           LDLIBS="-lX11 -lXext" \
           LDLIBS+="$(LIBS.X11)" \
+          OBJS="mainX11.o SndUnix.o"
+
+freebsd-x:
+   $(MAKE) stella.x11 \
+          INCLUDES="$(INCLUDES) -I$(UI)/x11 -I$(UI)/sound" \
+          SYS_INCLUDES="-I$(X11BASE)/include" \
+          OPTIONS="-DBSPF_UNIX -DSHOW_TIMING" \
+          LDFLAGS="-L$(X11BASE)/lib" \
+          LDLIBS="-lX11 -lXext" \
           OBJS="mainX11.o SndUnix.o"
 
 ###############################################################################