forked from iamgreaser/iceball
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.mingw
34 lines (28 loc) · 894 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
# I personally don't care if you steal this makefile. --GM
# USAGE:
# - Make a file called "winlibs".
# - Stash SDL/Lua ar libs in winlibs/*.a.
# - Stash SDL includes in winlibs/SDL/*.h.
# - Stash Lua includes in winlibs/*.h.
# - lua.h, lualib.h, lauxlib.h, luaconf.h
#
CFLAGS = -O2 -fno-strict-aliasing -g -Wall -Wextra \
-Wno-unused-variable -Wno-unused-parameter \
-Wno-unused-but-set-variable \
-Iwinlibs -Iwinlibs/SDL \
-msse2 -mfpmath=sse \
-fopenmp \
$(CFLAGS_EXTRA) \
-I $(INCDIR)
LDFLAGS = -g -fopenmp $(LDFLAGS_EXTRA)
LIBS_SDL = -lSDLmain -lSDL
LIBS_Lua = -llua
LIBS_Winsuck = -lws2_32
# Lua is not an acronym. Get used to typing it with lower case u/a.
LIBS_zlib = -lz
LIBS = -Lwinlibs -lm -lmingw32 $(LIBS_Lua) $(LIBS_SDL) $(LIBS_zlib) $(LIBS_Winsuck)
BINNAME = iceball.exe
OBJDIR = build/mingw32
MINGPREFIX = i686-pc-mingw32
CC = $(MINGPREFIX)-gcc
include main.make