commit
0125cd0765
|
@ -0,0 +1,5 @@
|
||||||
|
PROG = tbftss
|
||||||
|
CC = gcc
|
||||||
|
CXXFLAGS += -DUNIX
|
||||||
|
|
||||||
|
include common.mk
|
|
@ -0,0 +1,4 @@
|
||||||
|
PROG = tbftss.exe
|
||||||
|
CC=x86_64-w64-mingw32-gcc
|
||||||
|
|
||||||
|
include common.mk
|
|
@ -4,9 +4,8 @@ VERSION = 0.4
|
||||||
REVISION = $(shell date +"%y%m%d")
|
REVISION = $(shell date +"%y%m%d")
|
||||||
DEBUG = 0
|
DEBUG = 0
|
||||||
|
|
||||||
CXXFLAGS += `sdl2-config --cflags` -DVERSION=$(VERSION) -DREVISION=$(REVISION) -DUNIX=1 -DDEBUG=$(DEBUG)
|
CXXFLAGS += `sdl2-config --cflags` -DVERSION=$(VERSION) -DREVISION=$(REVISION) -DDEBUG=$(DEBUG)
|
||||||
CXXFLAGS += -DUNIX
|
CXXFLAGS += -Wall -ansi -pedantic -Werror -Wstrict-prototypes
|
||||||
CXXFLAGS += $(CFLAGS) -Wall -ansi -pedantic -Werror -Wstrict-prototypes
|
|
||||||
CXXFLAGS += -g -lefence
|
CXXFLAGS += -g -lefence
|
||||||
|
|
||||||
LIBS = `sdl2-config --libs` -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lm
|
LIBS = `sdl2-config --libs` -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lm
|
||||||
|
@ -43,7 +42,7 @@ all: $(PROG)
|
||||||
|
|
||||||
# compiling other source files.
|
# compiling other source files.
|
||||||
%.o: %.c %.h $(DEPS)
|
%.o: %.c %.h $(DEPS)
|
||||||
$(CC) $(CXXFLAGS) -c $<
|
$(CC) $(CFLAGS) $(CXXFLAGS) -c $<
|
||||||
|
|
||||||
# linking the program.
|
# linking the program.
|
||||||
$(PROG): $(OBJS)
|
$(PROG): $(OBJS)
|
|
@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct SDL_Texture SDL_Texture;
|
struct SDL_Texture;
|
||||||
typedef struct Texture Texture;
|
typedef struct Texture Texture;
|
||||||
typedef struct Lookup Lookup;
|
typedef struct Lookup Lookup;
|
||||||
typedef struct Weapon Weapon;
|
typedef struct Weapon Weapon;
|
||||||
|
@ -43,7 +43,7 @@ typedef struct {
|
||||||
struct Texture {
|
struct Texture {
|
||||||
char name[MAX_DESCRIPTION_LENGTH];
|
char name[MAX_DESCRIPTION_LENGTH];
|
||||||
long hash;
|
long hash;
|
||||||
SDL_Texture *texture;
|
struct SDL_Texture *texture;
|
||||||
Texture *next;
|
Texture *next;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ struct Entity {
|
||||||
Entity *owner;
|
Entity *owner;
|
||||||
void (*action)(void);
|
void (*action)(void);
|
||||||
void (*die)(void);
|
void (*die)(void);
|
||||||
SDL_Texture *texture;
|
struct SDL_Texture *texture;
|
||||||
Entity *next;
|
Entity *next;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
|
|
||||||
|
|
||||||
|
#if UNIX
|
||||||
static void createSaveFolder(void);
|
static void createSaveFolder(void);
|
||||||
|
#endif
|
||||||
static void loadConfig(void);
|
static void loadConfig(void);
|
||||||
void saveConfig(void);
|
void saveConfig(void);
|
||||||
static void initColor(SDL_Color *c, int r, int g, int b);
|
static void initColor(SDL_Color *c, int r, int g, int b);
|
||||||
|
|
Loading…
Reference in New Issue