summaryrefslogblamecommitdiff
path: root/emulators/mame/files/patch-makefile
blob: 70303c5cbe01da3de364fb0483e8246ac9fe4482 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                           







                      
 
                   





                                 
             
                  

            
                   

      
                                             

                                                               
 

                                                   
                   
                      
                        
            


                                                      
      

                   



                              
 
 

                   
                           
                        
                            

                                                               
      
      
      
--- makefile.orig	2009-06-11 06:38:13.000000000 +0200
+++ makefile	2009-07-23 02:44:01.000000000 +0200
@@ -59,7 +59,7 @@
 ifeq ($(OSD),windows)
 TARGETOS = win32
 else
-TARGETOS = unix
+TARGETOS = freebsd
 endif
 endif
 
@@ -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)
@@ -338,7 +338,7 @@
 ifneq ($(OPTIMIZE),0)
 ifneq ($(TARGETOS),os2)
 ifndef IA64
-CCOMFLAGS += -Werror -fno-strict-aliasing $(ARCHOPTS)
+CCOMFLAGS += -fno-strict-aliasing $(ARCHOPTS)
 else
 endif
 else
@@ -382,6 +382,7 @@
 	-I$(SRC)/lib/util \
 	-I$(SRC)/osd \
 	-I$(SRC)/osd/$(OSD) \
+	-I$(LOCALBASE)/include
 
 
 
@@ -395,7 +396,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