d38080391a
- Fix build on 64-bit archs PR: ports/134306 Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu> (maintainer) Tested by: gahr Approved by: miwi (mentor implicit)
26 lines
649 B
Text
26 lines
649 B
Text
|
|
$FreeBSD$
|
|
|
|
--- 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 $<
|
|
|