OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| Source at commit 6f32e10 created 1 year 11 months ago. By Xiangfu Liu, dega: using nanonote version source code | |
|---|---|
| 1 | diff --git a/Makefile b/Makefile |
| 2 | index c1d4b8a..0d1a876 100755 |
| 3 | --- a/Makefile |
| 4 | +++ b/Makefile |
| 5 | @@ -3,12 +3,12 @@ OPTFLAGS=-O3 -fomit-frame-pointer -funroll-loops |
| 6 | #OPTFLAGS=-O3 -fomit-frame-pointer -funroll-loops -march=i686 -mcpu=i686 |
| 7 | #OPTFLAGS=-xM -O3 |
| 8 | |
| 9 | -CC=gcc |
| 10 | +CC?=gcc |
| 11 | #CC=icc |
| 12 | #CXX=g++ |
| 13 | #CXX=icpc |
| 14 | |
| 15 | -CFLAGS= $(OPTFLAGS) $(shell sdl-config --cflags) -Imast -Iz80 |
| 16 | +CFLAGS:=$(CFLAGS) $(OPTFLAGS) $(shell sdl-config --cflags) -Imast -Iz80 |
| 17 | |
| 18 | Z80OBJ = z80/z80.o |
| 19 | 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 |
| 20 | @@ -17,7 +17,7 @@ SDLOBJ = sdl/main.o |
| 21 | all: dega |
| 22 | |
| 23 | dega: $(SDLOBJ) $(Z80OBJ) $(MASTOBJ) |
| 24 | - $(CC) -o dega $(SDLOBJ) $(Z80OBJ) $(MASTOBJ) $(shell sdl-config --libs) |
| 25 | + $(CC) -o dega $(SDLOBJ) $(Z80OBJ) $(MASTOBJ) $(shell sdl-config --libs) $(LDFLAGS) |
| 26 | |
| 27 | z80: $(Z80OBJ) |
| 28 | $(CC) -o $(Z80OBJ) |
| 29 | diff --git a/z80/z80.h b/z80/z80.h |
| 30 | index 066e32a..63200d5 100755 |
| 31 | --- a/z80/z80.h |
| 32 | +++ b/z80/z80.h |
| 33 | @@ -1,6 +1,8 @@ |
| 34 | #ifndef __Z80_H__ |
| 35 | #define __Z80_H__ |
| 36 | |
| 37 | +#include<stdint.h> |
| 38 | + |
| 39 | #define CF 0x01 |
| 40 | #define NF 0x02 |
| 41 | #define PF 0x04 |
| 42 | |
