Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kiste
noiz2sa
Commits
9689f9a1
Commit
9689f9a1
authored
Dec 12, 2017
by
Kiste
Browse files
Add build system
parent
00282fa3
Changes
21
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
9689f9a1
build
meson.build
0 → 100644
View file @
9689f9a1
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]
)
src/Makefile
deleted
100644 → 0
View file @
00282fa3
# 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)
src/attractmanager.c
View file @
9689f9a1
...
...
@@ -9,7 +9,7 @@
*
* @version $Revision: 1.4 $
*/
#include
"
SDL.h
"
#include
<
SDL.h
>
#include
<stdlib.h>
#include
<stdio.h>
...
...
src/background.c
View file @
9689f9a1
...
...
@@ -9,7 +9,7 @@
*
* @version $Revision: 1.2 $
*/
#include
"
SDL.h
"
#include
<
SDL.h
>
#include
<stdlib.h>
#include
<stdio.h>
...
...
src/barragemanager.cc
View file @
9689f9a1
...
...
@@ -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"
...
...
src/barragemanager.h
View file @
9689f9a1
...
...
@@ -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
...
...
src/bonus.c
View file @
9689f9a1
...
...
@@ -9,7 +9,7 @@
*
* @version $Revision: 1.1.1.1 $
*/
#include
"
SDL.h
"
#include
<
SDL.h
>
#include
<stdlib.h>
#include
<stdio.h>
...
...
src/clrtbl.c
View file @
9689f9a1
...
...
@@ -9,7 +9,7 @@
*
* @version $Revision: 1.1.1.1 $
*/
#include
"
SDL.h
"
#include
<
SDL.h
>
#include "clrtbl.h"
SDL_Color color[256] = {
...
...
src/clrtbl.h
View file @
9689f9a1
...
...
@@ -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
];
...
...
src/foe.cc
View file @
9689f9a1
...
...
@@ -13,7 +13,7 @@
#include
"foe.h"
extern
"C"
{
#include
"
SDL.h
"
#include
<
SDL.h
>
#include
<stdlib.h>
#include
<stdio.h>
...
...
src/foe.h
View file @
9689f9a1
...
...
@@ -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"
...
...
src/foecommand.cc
View file @
9689f9a1
...
...
@@ -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"
{
...
...
src/foecommand.h
View file @
9689f9a1
...
...
@@ -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
;
...
...
src/frag.c
View file @
9689f9a1
...
...
@@ -9,7 +9,7 @@
*
* @version $Revision: 1.1.1.1 $
*/
#include
"
SDL.h
"
#include
<
SDL.h
>
#include
<stdlib.h>
#include
<stdio.h>
...
...
src/noiz2sa.c
View file @
9689f9a1
...
...
@@ -9,7 +9,7 @@
*
* @version $Revision: 1.8 $
*/
#include
"
SDL.h
"
#include
<
SDL.h
>
#include
<stdlib.h>
#include
<stdio.h>
#include
<string.h>
...
...
src/screen.c
View file @
9689f9a1
...
...
@@ -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"
...
...
src/screen.h
View file @
9689f9a1
...
...
@@ -9,7 +9,7 @@
*
* @version $Revision: 1.3 $
*/
#include
"
SDL.h
"
#include
<
SDL.h
>
#include
"vector.h"
#define SCREEN_WIDTH 640
...
...
src/ship.c
View file @
9689f9a1
...
...
@@ -9,7 +9,7 @@
*
* @version $Revision: 1.5 $
*/
#include
"
SDL.h
"
#include
<
SDL.h
>
#include
<stdlib.h>
#include
<stdio.h>
...
...
src/shot.c
View file @
9689f9a1
...
...
@@ -9,7 +9,7 @@
*
* @version $Revision: 1.1.1.1 $
*/
#include
"
SDL.h
"
#include
<
SDL.h
>
#include
<stdlib.h>
#include
<stdio.h>
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment