1
|
1 CFLAGS=-Wall -O2 -mdll -Isrc/include -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
|
10
|
11 LDFLAGS=-L"discord_game_sdk/lib/x86" -lshlwapi -lole32 -luuid -ldiscord_game_sdk -Wl,--enable-stdcall-fixup
|
1
|
12 DEPS=src/include/config.h src/include/dirtools.h src/include/main.h \
|
10
|
13 src/include/resource.h src/include/timer.h src/include/utils.h \
|
|
14 src/include/json.h
|
|
15 OBJ=src/config.o src/dirtools.o src/main.o src/timer.o src/utils.o \
|
|
16 src/dialog.o
|
|
17 .SUFFIXES: .rc
|
0
|
18
|
10
|
19 gen_DiscordGameSDK.dll: $(OBJ) $(DEPS)
|
|
20 $(CC) -o $@ $(CFLAGS) $(OBJ) $(LDFLAGS)
|
1
|
21
|
10
|
22 .rc.o:
|
|
23 windres -Isrc/include -i $< -o $@
|
1
|
24
|
10
|
25 .c.o:
|
|
26 $(CC) -c $(CFLAGS) $< -o $@
|
0
|
27
|
|
28 clean:
|
10
|
29 rm gen_DiscordGameSDK.dll $(OBJ)
|