Date:2011-05-26 15:26:18 (7 years 7 months ago)
Author:Xiangfu Liu
Commit:6f32e10f74e155ed89165c1d19512f11ce35ac76
Message:dega: using nanonote version source code

Files: dega/Makefile (4 diffs)
dega/patches/001-fix-compile-in-openwrt.patch (1 diff)

Change Details

dega/Makefile
11#
2# Copyright (C) 2010 OpenWrt.org
2# Copyright (C) 2011 Xiangfu Liu <xiangfu@sharism.cc>
3# bitcoin: 1CGeqFzCZnAPEEcigr8LzmWTqf8cvo8toW
34#
45# This is free software, licensed under the GNU General Public License v2.
56# See /LICENSE for more information.
...... 
910
1011PKG_NAME:=dega
1112PKG_VERSION:=1.14
12PKG_RELEASE:=1
13PKG_RELEASE:=2
1314
14PKG_SOURCE:=degap-$(PKG_VERSION).tar.gz
15PKG_SOURCE:=dega-$(PKG_VERSION)-NanoNote-Edition.tar.gz
1516PKG_SOURCE_URL:=@SF/dega
16PKG_BUILD_DIR:=$(BUILD_DIR)/degap-$(PKG_VERSION)
17PKG_BUILD_DIR:=$(BUILD_DIR)/dega-$(PKG_VERSION)
1718
1819include $(INCLUDE_DIR)/package.mk
1920
...... 
2223TARGET_LDFLAGS+= -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
2324        -lSDL -lSDL -ldirectfb -lfusion
2425
25define Package/degap
26define Package/dega
2627    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
2728    SECTION:=games
2829    CATEGORY:=Games
...... 
3132    DEPENDS:=+libsdl
3233endef
3334
34define Package/degap/description
35define Package/dega/description
3536a emulator for sega master system and game gear which uses SDL
3637endef
3738
38define Package/degap/install
39define Package/dega/install
3940    $(INSTALL_DIR) $(1)/usr/bin
4041    $(INSTALL_BIN) $(PKG_BUILD_DIR)/dega $(1)/usr/bin/
4142endef
4243
43$(eval $(call BuildPackage,degap))
44$(eval $(call BuildPackage,dega))
dega/patches/001-fix-compile-in-openwrt.patch
1diff --git a/Makefile b/Makefile
2index c1d4b8a..0d1a876 100755
3--- a/Makefile
4@@ -3,12 +3,12 @@ OPTFLAGS=-O3 -fomit-frame-pointer -funroll-loops
5 #OPTFLAGS=-O3 -fomit-frame-pointer -funroll-loops -march=i686 -mcpu=i686
6 #OPTFLAGS=-xM -O3
7
8-CC=gcc
9+CC?=gcc
10 #CC=icc
11 #CXX=g++
12 #CXX=icpc
13
14-CFLAGS= $(OPTFLAGS) $(shell sdl-config --cflags) -Imast -Iz80
15+CFLAGS:=$(CFLAGS) $(OPTFLAGS) $(shell sdl-config --cflags) -Imast -Iz80
16
17 Z80OBJ = z80/z80.o
18 MASTOBJ = mast/area.o mast/dpsg.o mast/draw.o mast/emu2413.o mast/frame.o mast/load.o mast/map.o mast/mast.o mast/mem.o mast/samp.o mast/snd.o mast/vgm.o mast/state.o mast/setup.o
19@@ -17,7 +17,7 @@ SDLOBJ = sdl/main.o
20 all: dega
21
22 dega: $(SDLOBJ) $(Z80OBJ) $(MASTOBJ)
23- $(CC) -o dega $(SDLOBJ) $(Z80OBJ) $(MASTOBJ) $(shell sdl-config --libs)
24+ $(CC) -o dega $(SDLOBJ) $(Z80OBJ) $(MASTOBJ) $(shell sdl-config --libs) $(LDFLAGS)
25
26 z80: $(Z80OBJ)
27     $(CC) -o $(Z80OBJ)
28diff --git a/z80/z80.h b/z80/z80.h
29index 066e32a..63200d5 100755
30--- a/z80/z80.h
31@@ -1,6 +1,8 @@
32 #ifndef __Z80_H__
33 #define __Z80_H__
34
35+#include<stdint.h>
36+
37 #define CF 0x01
38 #define NF 0x02
39 #define PF 0x04

Archive Download the corresponding diff file



interactive