mac:
@$(MAKE_CMD) PLATFORM=macosx
+mac-static:
+ @$(MAKE_CMD) PLATFORM=macosx TARGET=sdl-static
+
msdos:
@$(MAKE_CMD) PLATFORM=msdos
$(MAKE) clean
$(MAKE) dist-build-unix ; $(MAKE) dist-clean
$(MAKE) dist-build-win32 ; $(MAKE) dist-clean
- $(MAKE) dist-build-msdos ; $(MAKE) dist-clean
+# $(MAKE) dist-build-msdos ; $(MAKE) dist-clean
-dist-all: dist-build-all dist-unix dist-msdos dist-win32 dist-macosx
+# dist-all: dist-build-all dist-unix dist-msdos dist-win32 dist-macosx
+dist-all: dist-build-all dist-unix dist-win32 dist-macosx
-upload-all: upload-unix upload-msdos upload-win32 upload-macosx
+# upload-all: upload-unix upload-msdos upload-win32 upload-macosx
+upload-all: upload-unix upload-win32 upload-macosx
tags:
$(MAKE_CMD) tags
SYS_LDFLAGS = $(SDL_LIBS) $(shell sdl-config --libs)
endif
+ifeq ($(TARGET),sdl-static)
+SYS_CFLAGS = -DTARGET_SDL $(shell sdl-config --cflags)
+SDL_LIBS = -lSDL_image -lSDL_mixer -lSDL_net -lsmpeg
+SYS_LDFLAGS = $(SDL_LIBS) $(shell sdl-config --static-libs)
+endif
+
ifeq ($(TARGET),allegro)
SYS_CFLAGS = -DTARGET_ALLEGRO -I$(CROSS_PATH_MSDOS)/include
SYS_LDFLAGS = -lalleg
-#define COMPILE_DATE_STRING "[2005-08-07 01:52]"
+#define COMPILE_DATE_STRING "[2005-08-15 23:05]"
int simple_rnd = SimpleRND(1000);
int i;
- for (i = 0; i < simple_rnd || Random == NEW_RANDOMIZE; i++)
- Random = Random * 129 + 1;
+ for (i = 0; i < simple_rnd || RandomEM == NEW_RANDOMIZE; i++)
+ RandomEM = RandomEM * 129 + 1;
- seed = Random;
+ seed = RandomEM;
}
- Random = seed;
+ RandomEM = seed;
return (unsigned int) seed;
}
#include "level.h"
-unsigned long Random;
+unsigned long RandomEM;
struct PLAYER ply1;
struct PLAYER ply2;
{
int x, y;
- Random = 1684108901;
+ RandomEM = 1684108901;
for (y = 0; y < HEIGHT; y++)
for (x = 0; x < WIDTH; x++)
game_animscreen();
- Random = Random * 129 + 1;
+ RandomEM = RandomEM * 129 + 1;
frame = (frame - 1) & 7;
#endif
-extern unsigned long Random;
+extern unsigned long RandomEM;
extern struct PLAYER ply1;
extern struct PLAYER ply2;
ply2.oldy = ply2.y;
ply2.anim = SPR_still;
- if (Random & 256)
+ if (RandomEM & 256)
{
if (ply1.alive) check_player(&ply1);
if (ply2.alive) check_player(&ply2);
ply->dynamite_cnt = 0;
}
- Random += 7; /* be a bit more random if the player doesn't move */
+ RandomEM += 7; /* be a bit more random if the player doesn't move */
return;
}
{
register unsigned int x = 0;
register unsigned int y = 1;
- register unsigned long random = Random;
+ register unsigned long random = RandomEM;
register unsigned short *cave_cache = Cave[y]; /* might be a win */
unsigned long score = 0;
if (ply1.alive || ply2.alive)
lev.score += score; /* only get a score if someone is alive */
- Random = random;
+ RandomEM = random;
{
void *temp = Cave;
/* grow amoeba */
- random = Random;
+ random = RandomEM;
for (count = lev.amoeba_time; count--;)
{
random = random * 129 + 1;
}
- Random = random;
+ RandomEM = random;
/* handle explosions */