-
Notifications
You must be signed in to change notification settings - Fork 58
/
Makefile.linux
74 lines (70 loc) · 1.63 KB
/
Makefile.linux
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
CC = gcc
CFLAGS = -O2 $(shell pkg-config sdl openal gl vorbisfile libpng --cflags)
#CFLAGS += -DDATAPATH=/usr/share/gish
LD = gcc
LDFLAGS = $(shell pkg-config sdl openal gl vorbisfile libpng --libs)
OBJS = audio/audio.o \
game/ai.o \
game/animation.o \
game/block.o \
game/boss.o \
game/config.o \
game/credits.o \
game/custom.o \
game/damage.o \
game/debug.o \
game/editor.o \
game/gameaudio.o \
game/game.o \
game/gamemenu.o \
game/gameobject.o \
game/gametexture.o \
game/high.o \
game/level.o \
game/lighting.o \
game/logic.o \
game/mainmenu.o \
game/mappack.o \
game/music.o \
game/objedit.o \
game/objfunc.o \
game/options.o \
game/physics.o \
game/player.o \
game/prerender.o \
game/random.o \
game/record.o \
game/render.o \
game/replay.o \
game/ropeedit.o \
game/setup.o \
game/socket.o \
game/sprite.o \
game/vsmode.o \
input/joystick.o \
input/keyboard.o \
input/mouse.o \
main.o \
math/intersec.o \
math/vector.o \
menu/menu.o \
parser/parser.o \
physics/bond.o \
physics/object.o \
physics/particle.o \
sdl/endian.o \
sdl/event.o \
sdl/file.o \
sdl/video.o \
video/glfunc.o \
video/opengl.o \
video/text.o \
video/texture.o
EXE = gish
all: $(EXE)
$(EXE): $(OBJS)
$(LD) $^ -o $@ $(LDFLAGS)
%.o: %.c
$(CC) $< -o $@ -c $(CFLAGS)
clean:
rm -f $(EXE) $(OBJS)