7 |
|
WINDRES := windres |
8 |
|
endif |
9 |
|
|
10 |
< |
GCCFLAGS = -std=c99 -O0 -Wall -fomit-frame-pointer -fpack-struct -Wextra -Wno-unused-variable -Wno-unused-parameter |
10 |
> |
DEF = NOFLATLINE |
11 |
> |
GCCFLAGS = -std=c99 -O0 -Wall -fomit-frame-pointer -fpack-struct -Wextra -Wno-unused-variable -Wno-unused-parameter -D $(DEF) |
12 |
|
LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll |
13 |
|
LOCALE = LC_MESSAGES=C |
14 |
|
|
15 |
|
#LIBS = -lwinmm -lopengl32 -lgdi32 |
16 |
< |
LIBS = -lgdi32 |
17 |
< |
OBJS = src/binkw32.def |
16 |
> |
LIBS = -lgdi32 -lwsock32 |
17 |
> |
OBJS = src/binkw32.def |
18 |
|
OUT = build/binkw32.dll |
19 |
|
|
20 |
|
FOLDERS = patches |
21 |
< |
SRC = src/Daodan.c src/Daodan_BSL.c src/Daodan_Character.c src/Daodan_Cheater.c src/Daodan_Config.c src/Daodan_Console.c src/Daodan_GL.c src/Daodan_Patch.c src/Daodan_Persistence.c src/Daodan_Utility.c src/Daodan_Win32.c src/Inifile_Reader.c src/_DLLInfo.rc src/patches/Patches.c |
21 |
> |
SRC = src/Daodan.c src/Daodan_BSL.c src/Daodan_Character.c src/Daodan_Cheater.c src/Daodan_Config.c src/Daodan_Console.c src/Daodan_GL.c src/Daodan_Patch.c src/Daodan_Persistence.c src/Daodan_Utility.c src/Daodan_Win32.c src/Inifile_Reader.c src/_DLLInfo.rc src/patches/Patches.c src/Flatline.c src/Flatline_BSL.c src/Flatline_Client.c src/Flatline_Hooks.c src/Flatline_Net.c src/Flatline_Packet.c src/Flatline_PacketReader.c src/Flatline_PacketBuilder.c src/Flatline_Server.c src/Flatline_Win32.c src/Mariusnet.c src/Flatline_Events.c |
22 |
|
DEST = $(patsubst src/%.rc,build/%.o,$(patsubst src/%.c,build/%.o,$(SRC))) |
23 |
|
|
24 |
+ |
|
25 |
|
ALL: $(FOLDERS) $(DEST) $(OBJS) |
26 |
|
@echo "Linking" |
27 |
|
$(LOCALE) $(GCC) $(LINKFLAGS) -o $(OUT) $(DEST) $(OBJS) $(LIBS) |