[docs] Replace cyrillic 'с' with latin 'c' in register names
[kolibrios.git] / contrib / games / wolf3d / Makefile
blob762e9e83f2e9ab438919fef017d096de53f15d4b
1 CC = kos32-gcc
2 LD = kos32-ld
3 OBJCOPY = kos32-objcopy
4 KPACK = kpack
6 SDK_DIR = $(abspath ../../sdk)
8 CFLAGS = -c -fno-ident -O2 -fomit-frame-pointer -fno-ident -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -D_KOLIBRI
9 LDFLAGS = -static -S -nostdlib -T $(SDK_DIR)/sources/newlib/app.lds --image-base 0 --subsystem native
11 INCLUDES = -I$(SDK_DIR)/sources/newlib/libc/include -I$(SDK_DIR)/sources/SDL-1.2.2_newlib/include -I. -I SDL_mixer
12 LIBPATH = -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib -L $(SDK_DIR)/lib
14 TARGET = bin/wolf3d
16 OBJECTS += wl_cloudsky.o
17 OBJECTS += wl_debug.o
18 OBJECTS += id_sd.o
19 OBJECTS += wl_play.o
20 OBJECTS += id_vl.o
21 OBJECTS += wl_act2.o
22 OBJECTS += wl_floorceiling.o
23 OBJECTS += wl_dir3dspr.o
24 OBJECTS += wl_state.o
25 OBJECTS += wl_atmos.o
26 OBJECTS += id_in.o
27 OBJECTS += signon.o
28 OBJECTS += wl_parallax.o
29 OBJECTS += wl_agent.o
30 OBJECTS += sdl_winmain.o
31 OBJECTS += wl_inter.o
32 OBJECTS += wl_text.o
33 OBJECTS += id_pm.o
34 OBJECTS += wl_draw.o
35 OBJECTS += wl_menu.o
36 OBJECTS += wl_game.o
37 OBJECTS += wl_act1.o
38 OBJECTS += wl_main.o
39 OBJECTS += wl_shade.o
40 OBJECTS += id_us_1.o
41 OBJECTS += id_vh.o
42 OBJECTS += id_ca.o
43 OBJECTS += joystick_stub.o
44 OBJECTS += kolibri.o
45 OBJECTS += mame/fmopl.o
48 SDL_MIX_OBJ += SDL_mixer/mixer.o
49 SDL_MIX_OBJ += SDL_mixer/music.o
50 SDL_MIX_OBJ += SDL_mixer/load_aiff.o
51 SDL_MIX_OBJ += SDL_mixer/load_voc.o
52 SDL_MIX_OBJ += SDL_mixer/effects_internal.o
53 SDL_MIX_OBJ += SDL_mixer/effect_position.o
55 LIBS = -lSDLn -lsound -lgcc -lc.dll
57 $(TARGET): $(OBJECTS) $(SDL_MIX_OBJ) $(SDL_OBJ)
58 $(LD) $(LDFLAGS) $(LIBPATH) -o $(TARGET) $(OBJECTS) $(SDL_MIX_OBJ) $(SDL_OBJ) $(LIBS)
59 $(OBJCOPY) $(TARGET) -O binary
60 $(KPACK) --nologo $(TARGET)
62 %.o : %.cpp
63 $(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
65 %.o : %.c
66 $(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
68 clean:
69 rm -f $(OBJECTS)