diff --git a/contrib/games/wolf3d/Tupfile.lua b/contrib/games/wolf3d/Tupfile.lua new file mode 100644 index 0000000000..0a15c54aa8 --- /dev/null +++ b/contrib/games/wolf3d/Tupfile.lua @@ -0,0 +1,29 @@ +if tup.getconfig("NO_GCC") ~= "" then return end +if tup.getconfig("HELPERDIR") == "" +then + if tup.getconfig("NO_NASM") ~= "" then return end -- required for SDL compilation + HELPERDIR = "../../../programs" +end +tup.include(HELPERDIR .. "/use_gcc.lua") +tup.include(HELPERDIR .. "/use_newlib.lua") +--use_dynamic_stack() -- default 64K are not sufficient +tup.include(HELPERDIR .. "/use_sdl_newlib.lua") +CFLAGS = CFLAGS .. " -UWIN32 -U_WIN32 -U__WIN32__ -D_KOLIBRI" + +LDFLAGS = LDFLAGS .. " --subsystem native" + +-- Game src files -- +compile_gcc{ + "wl_cloudsky.cpp", "wl_debug.cpp", "id_sd.cpp", "wl_play.cpp", "id_vl.cpp", "wl_act2.cpp", "wl_floorceiling.cpp", "wl_dir3dspr.cpp", + "wl_state.cpp", "wl_atmos.cpp", "id_in.cpp", "signon.cpp", "wl_parallax.cpp", "wl_agent.cpp", "sdl_winmain.cpp", "wl_inter.cpp", "wl_text.cpp", + "id_pm.cpp", "wl_draw.cpp", "wl_menu.cpp", "wl_game.cpp", "wl_act1.cpp", "wl_main.cpp", "wl_shade.cpp", "id_us_1.cpp", "id_vh.cpp", "id_ca.cpp", + "joystick_stub.cpp", "kolibri.cpp", "mame/fmopl.cpp", +} + +-- SDL and SDL_mixer -- +compile_gcc{ + "SDL/SDL_wave.c", "SDL/SDL_audiocvt.c", "SDL/SDL_mixer.c", "SDL_mixer/mixer.c", "SDL_mixer/music.c", "SDL_mixer/load_aiff.c", "SDL_mixer/load_voc.c", + "SDL_mixer/effects_internal.c", "SDL_mixer/effect_position.c", +} + +link_gcc("bin/wolf3d") diff --git a/contrib/games/wolf3d/bin/audiohed.wl6 b/contrib/games/wolf3d/bin/audiohed.wl6 new file mode 100644 index 0000000000..a1d30c9ed2 Binary files /dev/null and b/contrib/games/wolf3d/bin/audiohed.wl6 differ diff --git a/contrib/games/wolf3d/bin/audiot.wl6 b/contrib/games/wolf3d/bin/audiot.wl6 new file mode 100644 index 0000000000..8bb97327cf Binary files /dev/null and b/contrib/games/wolf3d/bin/audiot.wl6 differ diff --git a/contrib/games/wolf3d/bin/config.wl6 b/contrib/games/wolf3d/bin/config.wl6 new file mode 100644 index 0000000000..e505718a27 Binary files /dev/null and b/contrib/games/wolf3d/bin/config.wl6 differ diff --git a/contrib/games/wolf3d/bin/gamemaps.wl6 b/contrib/games/wolf3d/bin/gamemaps.wl6 new file mode 100644 index 0000000000..7369ff8484 Binary files /dev/null and b/contrib/games/wolf3d/bin/gamemaps.wl6 differ diff --git a/contrib/games/wolf3d/bin/maphead.wl6 b/contrib/games/wolf3d/bin/maphead.wl6 new file mode 100644 index 0000000000..d69206f4d9 Binary files /dev/null and b/contrib/games/wolf3d/bin/maphead.wl6 differ diff --git a/contrib/games/wolf3d/bin/vgadict.wl6 b/contrib/games/wolf3d/bin/vgadict.wl6 new file mode 100644 index 0000000000..da57cce30a Binary files /dev/null and b/contrib/games/wolf3d/bin/vgadict.wl6 differ diff --git a/contrib/games/wolf3d/bin/vgagraph.wl6 b/contrib/games/wolf3d/bin/vgagraph.wl6 new file mode 100644 index 0000000000..e1b73aec3d Binary files /dev/null and b/contrib/games/wolf3d/bin/vgagraph.wl6 differ diff --git a/contrib/games/wolf3d/bin/vgahead.wl6 b/contrib/games/wolf3d/bin/vgahead.wl6 new file mode 100644 index 0000000000..d88fa8bd81 Binary files /dev/null and b/contrib/games/wolf3d/bin/vgahead.wl6 differ diff --git a/contrib/games/wolf3d/bin/vswap.wl6 b/contrib/games/wolf3d/bin/vswap.wl6 new file mode 100644 index 0000000000..817ffe38db Binary files /dev/null and b/contrib/games/wolf3d/bin/vswap.wl6 differ