-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.w32
90 lines (84 loc) · 2.4 KB
/
Makefile.w32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Project: StormWar
# This file is used to compile under wine on my system.
OBJ = \
src/main.o \
src/kernel.o \
src/test.o \
src/core/impl/comp.o \
src/core/impl/core.o \
src/core/impl/i18n.o \
src/core/impl/ptrarray.o \
src/core/impl/shell.o \
src/core/impl/shellfunction.o \
src/core/impl/string.o \
src/core/impl/reader.o \
src/core/impl/var.o \
src/tools/anim.o \
src/tools/tools.o \
src/tools/completion.o \
src/tools/fonct.o \
src/tools/varvalidator.o \
src/tools/internal/texturizer.o \
src/graphics/impl/camera.o \
src/graphics/impl/color.o \
src/graphics/impl/cursor.o \
src/graphics/impl/gl2dobject.o \
src/graphics/impl/gl3dobject.o \
src/graphics/impl/gliterator.o \
src/graphics/impl/glmesh.o \
src/graphics/impl/glmeshpart.o \
src/graphics/impl/glscreen.o \
src/graphics/impl/glsurface.o \
src/graphics/impl/gltextrender.o \
src/graphics/impl/gltextures.o \
src/graphics/impl/graphics.o \
src/graphics/impl/input.o \
src/graphics/impl/keyboard.o \
src/graphics/impl/light.o \
src/graphics/impl/opengl.o \
src/graphics/impl/particle.o \
src/graphics/impl/types.o \
src/sound/sound.o \
src/game/game.o \
src/game/internal/gamecamera.o \
src/game/internal/droprules.o \
src/game/internal/entity.o \
src/game/internal/player.o \
src/game/internal/piece.o \
src/game/internal/register.o \
src/gui/gui.o \
src/gui/guidialog.o \
src/gui/guitexture.o \
src/gui/worldmap.o \
src/gui/internal/guitheme.o \
src/gui/internal/guibutton.o \
src/gui/internal/guiwidget.o \
src/gui/internal/guioutput.o \
src/gui/internal/guiinput.o \
src/gui/internal/guiscrollbar.o \
src/gui/internal/guishell.o \
src/gui/internal/guitooltip.o \
src/gui/internal/sidepanel.o \
src/gui/internal/menubar.o \
src/gui/internal/guipopupmenu.o \
src/gui/internal/gamedialogs.o \
src/world/world.o \
src/world/ground.o \
src/world/env.o \
src/world/internal/skybox.o \
src/world/internal/flocking.o \
src/world/internal/thunderbolt.o \
src/system/mem.o
CC = wine gcc.exe
LINKOBJ = $(OBJ)
LIBS = -L"C:\Dev-Cpp\lib" -lmingw32 -lSDLmain -lSDL -lSDL_image -lSDL_mixer -mwindows -lopengl32 -lglu32
INCS = -I"C:\Dev-Cpp\include" -I"." -I".." -I"src" -I"C:\Dev-Cpp\include\SDL"
BIN = "StormWar.exe"
CFLAGS = $(INCS) -D__W32 -O2 -W -Wall -ansi
all: $(BIN)
clean:
rm -f $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CC) $(LINKOBJ) -o "StormWar.exe" $(LIBS)
%.o : %.c
$(CC) $(CFLAGS) -c $*.c -o $*.o