-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile.mingw
56 lines (50 loc) · 968 Bytes
/
Makefile.mingw
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
CC=gcc
SDL_LIBS=-lSDLmain -lSDL -lSDL_mixer -lSDL_ttf
LDFLAGS=-mwindows -lmingw32 -lm $(SDL_LIBS)
CFLAGS=-DMINGW32 -fsigned-char
OBJS=src/actor.o \
src/animations.o \
src/collision.o \
src/debug.o \
src/debug.grid.o \
src/debug.scene.o \
src/extra.o \
src/filereader.o \
src/flamovies.o \
src/gamestate.o \
src/grid.o \
src/holomap.o \
src/hqr.o \
src/interface.o \
src/keyboard.o \
src/lbaengine.o \
src/main.o \
src/menu.o \
src/menuoptions.o \
src/movements.o \
src/music.o \
src/redraw.o \
src/renderer.o \
src/resources.o \
src/sample.o \
src/scene.o \
src/screens.o \
src/script.life.o \
src/script.move.o \
src/sys.o \
src/text.o \
src/utils/fcaseopen.o \
src/utils/xmidi.o \
src/platform_sdl.o \
src/platform_sdl_mixer.o
LIBS=$(LDFLAGS)
VERSION=v0.3.0
TARGET=bin/twin-e_$(VERSION).exe
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) -o $@ $(OBJS) $(LIBS)
.c.o:
$(CC) $(CFLAGS) -c $< -o $@
clean:
@del $(OBJS)
@del $(TARGET)