opnsense-ports/emulators/yape/files/patch-Makefile
Franco Fichtner 05ec040734 */*: sync with upstream
Taken from: FreeBSD
2015-05-23 07:42:34 +02:00

23 lines
637 B
Text

--- 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 $<