0
|
1 CFLAGS=-Wall -mdll -Isrc/include -I"discord_game_sdk/c"
|
|
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 LDFLAGS=-L"discord_game_sdk/lib/x86" -ldiscord_game_sdk
|
|
12 DEPS=src/include/config.h src/include/dirtools.h src/include/main.h src/include/timer.h
|
|
13 OBJ=src/config.o src/dirtools.o src/main.o src/timer.o
|
|
14
|
|
15 src/%.o: src/%.c $(DEPS)
|
|
16 gcc -c $(CFLAGS) $< -o $@
|
|
17
|
|
18 gen_DiscordGameSDK.dll: $(OBJ)
|
|
19 gcc -o $@ $(CFLAGS) $^ $(LDFLAGS)
|
|
20
|
|
21 clean:
|
|
22 rm -f src/*.o *.dll |