Commit 9689f9a1 authored by Kiste's avatar Kiste
Browse files

Add build system

parent 00282fa3
project('libbulletml', 'c', 'cpp')
libbulletmldep = dependency('libbulletml')
sdlmixerdep = dependency('SDL_mixer')
executable('noiz2sa',
'src/attractmanager.c',
'src/background.c',
'src/barragemanager.cc',
'src/bonus.c',
'src/clrtbl.c',
'src/degutil.c',
'src/foe.cc',
'src/foecommand.cc',
'src/frag.c',
'src/letterrender.c',
'src/noiz2sa.c',
'src/rand.c',
'src/screen.c',
'src/ship.c',
'src/shot.c',
'src/soundmanager.c',
'src/vector.c',
dependencies : [sdlmixerdep, libbulletmldep]
)
# Noiz2sa makefile(MinGW 2.0.0)
# $Id: Makefile,v 1.4 2003/08/10 09:00:05 kenta Exp $
NAME = noiz2sa
O = o
RM = rm -f
CC = gcc
CXX = g++
PROG = $(NAME).exe
DEFAULT_CFLAGS = `sdl-config --cflags`
LDFLAGS = `sdl-config --libs` -L. -lmingw32 -lmingwex -lSDL_mixer -lbulletml -mwindows -lstdc++
MORE_CFLAGS = -O3
CFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS)
CPPFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -I./bulletml/
OBJS = $(NAME).$(O) ship.$(O) shot.$(O) frag.$(O) bonus.$(O) \
foe.$(O) foecommand.$(O) barragemanager.$(O) attractmanager.$(O) \
background.$(O) letterrender.$(O) \
screen.$(O) clrtbl.$(O) vector.$(O) degutil.$(O) rand.$(O) soundmanager.$(O) \
$(NAME)_res.$(O)
$(PROG): $(OBJS)
$(CC) $(CFLAGS) -o $(PROG) $(OBJS) $(LDFLAGS)
$(NAME)_res.o: $(NAME).rc
windres -i $(NAME).rc -o $(NAME)_res.o
clean:
$(RM) $(PROG) *.$(O)
......@@ -9,7 +9,7 @@
*
* @version $Revision: 1.4 $
*/
#include "SDL.h"
#include <SDL.h>
#include <stdlib.h>
#include <stdio.h>
......
......@@ -9,7 +9,7 @@
*
* @version $Revision: 1.2 $
*/
#include "SDL.h"
#include <SDL.h>
#include <stdlib.h>
#include <stdio.h>
......
......@@ -10,7 +10,7 @@
* @version $Revision: 1.4 $
*/
extern "C" {
#include "SDL.h"
#include <SDL.h>
#include <sys/types.h>
#include <dirent.h>
#include "noiz2sa.h"
......
......@@ -12,9 +12,9 @@
#ifndef BARRAGEMANAGER_H_
#define BARRAGEMANAGER_H_
#include "bulletml/bulletmlparser.h"
#include "bulletml/bulletmlparser-tinyxml.h"
#include "bulletml/bulletmlrunner.h"
#include <bulletml/bulletmlparser.h>
#include <bulletml/bulletmlparser-tinyxml.h>
#include <bulletml/bulletmlrunner.h>
#define BARRAGE_TYPE_NUM 3
#define BARRAGE_MAX 16
......
......@@ -9,7 +9,7 @@
*
* @version $Revision: 1.1.1.1 $
*/
#include "SDL.h"
#include <SDL.h>
#include <stdlib.h>
#include <stdio.h>
......
......@@ -9,7 +9,7 @@
*
* @version $Revision: 1.1.1.1 $
*/
#include "SDL.h"
#include <SDL.h>
#include "clrtbl.h"
SDL_Color color[256] = {
......
......@@ -9,7 +9,7 @@
*
* @version $Revision: 1.1.1.1 $
*/
#include "SDL.h"
#include <SDL.h>
extern SDL_Color color[256];
extern Uint8 colorDfs[256];
......
......@@ -13,7 +13,7 @@
#include "foe.h"
extern "C" {
#include "SDL.h"
#include <SDL.h>
#include <stdlib.h>
#include <stdio.h>
......
......@@ -12,9 +12,9 @@
#ifndef FOE_H_
#define FOE_H_
#include "bulletml/bulletmlparser.h"
#include "bulletml/bulletmlparser-tinyxml.h"
#include "bulletml/bulletmlrunner.h"
#include <bulletml/bulletmlparser.h>
#include <bulletml/bulletmlparser-tinyxml.h>
#include <bulletml/bulletmlrunner.h>
#include "foecommand.h"
#include "barragemanager.h"
......
......@@ -9,9 +9,9 @@
*
* @version $Revision: 1.2 $
*/
#include "bulletml/bulletmlparser.h"
#include "bulletml/bulletmlparser-tinyxml.h"
#include "bulletml/bulletmlrunner.h"
#include <bulletml/bulletmlparser.h>
#include <bulletml/bulletmlparser-tinyxml.h>
#include <bulletml/bulletmlrunner.h>
#include "foe.h"
extern "C" {
......
......@@ -12,9 +12,9 @@
#ifndef FOECOMMAND_H_
#define FOECOMMAND_H_
#include "bulletml/bulletmlparser.h"
#include "bulletml/bulletmlparser-tinyxml.h"
#include "bulletml/bulletmlrunner.h"
#include <bulletml/bulletmlparser.h>
#include <bulletml/bulletmlparser-tinyxml.h>
#include <bulletml/bulletmlrunner.h>
#include "foe.h"
class FoeCommand : public BulletMLRunner {
......@@ -36,10 +36,10 @@ class FoeCommand : public BulletMLRunner {
virtual void doChangeDirection(double d);
virtual void doChangeSpeed(double s);
virtual void FoeCommand::doAccelX(double ax);
virtual void FoeCommand::doAccelY(double ay);
virtual double FoeCommand::getBulletSpeedX();
virtual double FoeCommand::getBulletSpeedY();
virtual void doAccelX(double ax);
virtual void doAccelY(double ay);
virtual double getBulletSpeedX();
virtual double getBulletSpeedY();
private:
struct foe *foe;
......
......@@ -9,7 +9,7 @@
*
* @version $Revision: 1.1.1.1 $
*/
#include "SDL.h"
#include <SDL.h>
#include <stdlib.h>
#include <stdio.h>
......
......@@ -9,7 +9,7 @@
*
* @version $Revision: 1.8 $
*/
#include "SDL.h"
#include <SDL.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
......
......@@ -13,7 +13,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "SDL.h"
#include <SDL.h>
#include "noiz2sa.h"
#include "screen.h"
......
......@@ -9,7 +9,7 @@
*
* @version $Revision: 1.3 $
*/
#include "SDL.h"
#include <SDL.h>
#include "vector.h"
#define SCREEN_WIDTH 640
......
......@@ -9,7 +9,7 @@
*
* @version $Revision: 1.5 $
*/
#include "SDL.h"
#include <SDL.h>
#include <stdlib.h>
#include <stdio.h>
......
......@@ -9,7 +9,7 @@
*
* @version $Revision: 1.1.1.1 $
*/
#include "SDL.h"
#include <SDL.h>
#include <stdlib.h>
#include <stdio.h>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment