summaryrefslogtreecommitdiff
path: root/emulators/mame-devel/files/patch-makefile
blob: 740a57366e57cb669e459fff20ad6f69267b3c7d (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
--- makefile.orig	2009-03-19 14:14:18.000000000 +0100
+++ makefile	2009-03-25 05:24:41.000000000 +0100
@@ -59,7 +59,7 @@
 ifeq ($(OSD),windows)
 TARGETOS = win32
 else
-TARGETOS = unix
+TARGETOS = freebsd
 endif
 endif
 
@@ -73,7 +73,7 @@
 # PREFIX =
 
 # uncomment and specify suffix to be added to the name
-# SUFFIX =
+SUFFIX = -devel
 
 
 
@@ -197,8 +197,8 @@
 
 # compiler, linker and utilities
 AR = @ar
-CC = @gcc
-LD = @gcc
+CC := @$(CC)
+LD = @$(CC)
 MD = -mkdir$(EXE)
 RM = @rm -f
 
@@ -227,7 +227,7 @@
 endif
 
 # fullname is prefix+name+suffix+debugsuffix
-FULLNAME = $(PREFIX)$(NAME)$(CPPSUFFIX)$(SUFFIX)$(DEBUGSUFFIX)
+FULLNAME = sdl$(NAME)$(CPPSUFFIX)$(SUFFIX)$(DEBUGSUFFIX)
 
 # add an EXE suffix to get the final emulator name
 EMULATOR = $(FULLNAME)$(EXE)
@@ -337,7 +337,7 @@
 # and make all errors into warnings
 ifneq ($(OPTIMIZE),0)
 ifneq ($(TARGETOS),os2)
-CCOMFLAGS += -Werror -fno-strict-aliasing $(ARCHOPTS)
+CCOMFLAGS += -fno-strict-aliasing $(ARCHOPTS)
 else
 CCOMFLAGS += -fno-strict-aliasing $(ARCHOPTS)
 endif
@@ -379,7 +379,7 @@
 	-I$(SRC)/lib/util \
 	-I$(SRC)/osd \
 	-I$(SRC)/osd/$(OSD) \
-
+	-I$(LOCALBASE)/include
 
 
 #-------------------------------------------------
@@ -392,7 +392,7 @@
 ifneq ($(TARGETOS),macosx)
 ifneq ($(TARGETOS),os2)
 ifneq ($(TARGETOS),solaris)
-LDFLAGS = -Wl,--warn-common
+LDFLAGS = -Wl,--warn-common $(PTHREAD_LIBS) -L$(LOCALBASE)/lib
 endif
 endif
 endif