forked from instead-hub/instead
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rules.mingw
45 lines (34 loc) · 854 Bytes
/
Rules.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
VERSION := 3.5.0
PREFIX=./
DESTDIR=
BIN=$(PREFIX)
STEADPATH=$(PREFIX)stead
THEMESPATH=$(PREFIX)themes
GAMESPATH=$(PREFIX)games
ICONPATH=$(PREFIX)icon
DOCPATH=$(PREFIX)doc
LANGPATH=$(PREFIX)lang
MANPATH=$(PREFIX)doc
WINDOWS=yes
ZLIB_CFLAGS=-Izlib
ZLIB_LFLAGS=zlib/libz.a
LUA_CFLAGS=-I./windows/
LUA_LFLAGS=-llua5.1 -L./windows/
SDL_CFLAGS=-I./windows/SDL
SDL_LFLAGS=-lSDL2 -lSDL2main -lSDL2_ttf -lSDL2_mixer -lSDL2_image -L./windows/SDL
CFLAGS += -Wall -mwindows -D_HAVE_ICONV -D_USE_UNPACK -D_USE_BROWSE -D_LOCAL_APPDATA
LDFLAGS += -liconv
MINGW=i686-w64-mingw32-
CC=$(MINGW)gcc
AR=$(MINGW)ar rc
RANLIB=$(MINGW)ranlib
RM=rm
EXE=.exe
INSTALLD=install -d -m 0755
INSTALLB=install -m 0755
INSTALL=install -m 0644
LN=echo
PLATFORM=windows.c iowin32.c
RESOURCES=resources.o
resources.o: resources.rc
$(MINGW)windres -i resources.rc -o resources.o