diff --git a/ChangeLog b/ChangeLog index e4ee7ab..b47111e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-03-24 Dani Rodríguez + + * src/sdl.h: fixed SDL.h header file inclusion. + 2016-03-02 Dani Rodríguez * src/cpu.c: fix failing opcodes. diff --git a/NEWS b/NEWS index fc15360..e8675a7 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,11 @@ Copyright (C) 2015-2016 Dani Rodríguez This file is about relevant changes for CHIP-8 users. Developers: Check ChangeLog for an overview on relevant changes about the source code. +Version 0.1.2 - 2016-03-24 +* Added sound support. +* Added more flags: --version and --usage. +* Fixed a few bugs on some opcodes. + Version 0.1.1 - 2015-03-12 * Emulator doesn't crash now on exit on Linux and MacOS X (issue #3) * Emulator now uses the default system graphics backend. For example, might diff --git a/configure.ac b/configure.ac index ef2e4ea..a394d45 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ # configure.ac -AC_INIT([chip8], [0.1.1], [danirod@outlook.com]) +AC_INIT([chip8], [0.1.2], [danirod@outlook.com]) AM_INIT_AUTOMAKE([foreign -Wall -Werror]) # Check programs @@ -9,14 +9,13 @@ AC_PROG_CC AC_PROG_RANLIB # Check libraries -AC_CHECK_LIB([SDL2], [SDL_Init], [], - [AC_MSG_ERROR(["** ERROR: SDL2 is required to build this. ** "])]) AC_CHECK_LIB([m], [sinf], [], [AC_MSG_ERROR(["** ERROR: Math library not found **"])]) # Check header files # Check typedefs, structures and so # Check library functions +AM_PATH_SDL2([2.0.0], :, AC_MSG_ERROR(["** ERROR: SDL 2.0 is required **"])) PKG_CHECK_MODULES([CHECK], [check >= 0.9.6]) # Output diff --git a/src/Makefile.am b/src/Makefile.am index 5d3f06b..138c94d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,8 @@ noinst_LIBRARIES = lib8.a lib8_a_SOURCES = cpu.c cpu.h +lib8_a_CFLAGS = -std=c99 -Wall -AM_CFLAGS = --std=c99 -Wall bin_PROGRAMS = chip8 chip8_SOURCES = chip8.c sdl.c sdl.h -chip8_LDADD = lib8.a +chip8_CFLAGS = @SDL_CFLAGS@ -std=c99 -Wall +chip8_LDADD = lib8.a @SDL_LIBS@ diff --git a/src/chip8.c b/src/chip8.c index c06301c..5a60cc2 100644 --- a/src/chip8.c +++ b/src/chip8.c @@ -1,6 +1,6 @@ /* * chip8 is a CHIP-8 emulator done in C - * Copyright (C) 2015 Dani Rodríguez + * Copyright (C) 2015-2016 Dani Rodríguez * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,7 +24,6 @@ #include #include #include -#include /* Flag set by '--hex' */ static int use_hexloader; diff --git a/src/cpu.c b/src/cpu.c index 2fd173f..1150f42 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -1,6 +1,6 @@ /* * chip8 is a CHIP-8 emulator done in C - * Copyright (C) 2015 Dani Rodríguez + * Copyright (C) 2015-2016 Dani Rodríguez * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -363,4 +363,4 @@ update_time(struct machine_t* cpu, int delta) } } } -} \ No newline at end of file +} diff --git a/src/sdl.h b/src/sdl.h index 171d0c5..6fbb122 100644 --- a/src/sdl.h +++ b/src/sdl.h @@ -28,7 +28,7 @@ #include "cpu.h" -#include +#include int init_context();