ICONS = icons/
DATA = data gfx sound music
-VERSION = 1.19
+VERSION = 2.00
RELEASE ?= 1
USEPAK ?= 1
CXXFLAGS += -Dmain=SDL_main
CXXFLAGS += -I/your/mingw/include
CXXFLAGS += -DVERSION=$(VERSION) -DRELEASE=$(RELEASE) -DUSEPAK=$(USEPAK)
-CXXFLAGS += -DPAKNAME=\"$(PAKNAME)\" -DPAKLOCATION=\"\" -DGAMEPLAYMANUAL=\"doc/index.html\" -Wall
+CXXFLAGS += -DPAKNAME=\"$(PAKNAME)\" -DPAKLOCATION=\".\" -DGAMEPLAYMANUAL=\"doc/index.html\" -Wall
CXXFLAGS += -DLOCALEDIR=\"\" $(CFLAGS) -DMEDAL_SERVER_HOST=\"$(MEDAL_SERVER_HOST)\" -DMEDAL_SERVER_PORT=$(MEDAL_SERVER_PORT) -Werror
LIBS = -lmingw32 -lz -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lSDL2_net -lSDL2main -lSDL2 -lwinmm -lgdi32
PAKLIBS = -lmingw32 -lz
#endif
#if RELEASE
- if (chdir(PAKLOCATION))
+ #ifdef PAKLOCATION
+ if (PAKLOCATION[0] && chdir(PAKLOCATION))
{
- perror("Could not chdir to " PAKLOCATION ":");
+ perror("Could not chdir to '" PAKLOCATION "'");
return 1;
}
#endif
+ #endif
config.engine = &engine;