summaryrefslogtreecommitdiffstats
path: root/emulators/yape/files/patch-Makefile
blob: 097dffc953dc821af3fdff504ea32fc2fbbfb49f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- Makefile.orig
+++ Makefile
@@ -23,8 +23,8 @@
 hasnoheader = main.h dos.h
 sourcefiles = $(filter-out $(hasnoheader),$(allfiles)) device.h mem.h roms.h types.h
 
-CC = g++
-cflags = -O3 -finline -frerun-loop-opt -Winline -fomit-frame-pointer `sdl-config --cflags`
+CC = $(CXX)
+cflags = $(CFLAGS) -finline -frerun-loop-opt -Winline -fomit-frame-pointer `sdl-config --cflags`
 libs = `sdl-config --libs` 
 
 #SDL_CFLAGS := $(shell sdl-config --cflags)
@@ -72,6 +72,9 @@
 prg.o : prg.cpp prg.h
 	$(CC) $(cflags) -c $< 
 
+serial.o : serial.cpp serial.h
+	$(CC) $(cflags) -c $< 
+
 sound.o : sound.cpp sound.h
 	$(CC) $(cflags) -c $< 
 
OpenPOWER on IntegriCloud