-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile_win32
59 lines (53 loc) · 1.25 KB
/
Makefile_win32
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
CC = gcc
INCLUDE = -I./include -I./opl
CFLAGS = -g $(INCLUDE)
UNSQZ_TARG := unsqz
# LEVELVIEWER_TARG := levelviewer
OPENTITUS_TARG := opentitus.exe
UNSQZ_OBJS := \
unsqz.o \
src/sqz.o
# LEVELVIEWER_OBJS := \
# levelviewer.o \
# src/sqz.o \
# src/settings.o \
# src/sprites.o
OPENTITUS_OBJS := \
opentitus.o \
src/audio.o \
src/common.o \
src/draw.o \
src/enemies.o \
src/engine.o \
src/elevators.o \
src/fonts.o \
src/gates.o \
src/keyboard.o \
src/level.o \
src/menu.o \
src/objects.o \
src/original.o \
src/player.o \
src/reset.o \
src/scroll.o \
src/settings.o \
src/sprites.o \
src/sqz.o \
src/tile_animation.o \
src/viewimage.o \
opl/libopl_win32.a
DIRS = \
. \
src \
opl
# all : $(UNSQZ_TARG) $(LEVELVIEWER_TARG) $(OPENTITUS_TARG)
# all : $(UNSQZ_TARG) $(OPENTITUS_TARG)
all : $(OPENTITUS_TARG)
$(UNSQZ_TARG) : $(UNSQZ_OBJS)
$(CC) $(CFLAGS) -o $(UNSQZ_TARG) $(UNSQZ_OBJS)
# $(LEVELVIEWER_TARG) : $(LEVELVIEWER_OBJS)
# $(CC) $(CFLAGS) -o $(LEVELVIEWER_TARG) $(LEVELVIEWER_OBJS) `sdl-config --cflags --libs`
$(OPENTITUS_TARG) : $(OPENTITUS_OBJS)
$(CC) $(CFLAGS) -o $(OPENTITUS_TARG) $(OPENTITUS_OBJS) `sdl-config --cflags --libs` -lm -lSDL_mixer
clean :
rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.o, $(addsuffix $(suffix),$(dir))))