11
|
1 CFLAGS=-flto -Wall -O2 -mdll -Iinclude -I"discord_game_sdk/c"
|
0
|
2 ifeq ($(PROCESSOR_ARCHITECTURE),x86)
|
|
3 ifeq ($(PROCESSOR_ARCHITEW6432),x86)
|
|
4 CFLAGS += -I"/c/Program Files/Winamp SDK"
|
|
5 else
|
|
6 CFLAGS += -I"/c/Program Files (x86)/Winamp SDK"
|
|
7 endif
|
|
8 else
|
|
9 CFLAGS += -I"/c/Program Files (x86)/Winamp SDK"
|
|
10 endif
|
11
|
11 LDFLAGS=-L"discord_game_sdk/lib/x86" -lwinhttp -lshlwapi -ldiscord_game_sdk -Wl,--enable-stdcall-fixup
|
|
12 DEPS=include/config.h include/dirtools.h include/json.h \
|
|
13 include/resource.h include/timer.h include/utils.h \
|
|
14 include/dialog/dlg_config.h include/ini.h
|
|
15 OBJ=src/config.o src/dirtools.o src/plugin.o src/timer.o src/utils.o \
|
|
16 src/dialog.o src/deezer.o src/json.o src/dialog/dlg_config.o \
|
|
17 src/ini.o
|
10
|
18 .SUFFIXES: .rc
|
0
|
19
|
10
|
20 gen_DiscordGameSDK.dll: $(OBJ) $(DEPS)
|
|
21 $(CC) -o $@ $(CFLAGS) $(OBJ) $(LDFLAGS)
|
1
|
22
|
10
|
23 .rc.o:
|
11
|
24 windres -Iinclude -i $< -o $@
|
1
|
25
|
10
|
26 .c.o:
|
|
27 $(CC) -c $(CFLAGS) $< -o $@
|
0
|
28
|
|
29 clean:
|
10
|
30 rm gen_DiscordGameSDK.dll $(OBJ)
|