Mercurial > wgsdk
annotate Makefile @ 6:8ce85aee15c0
update tags
author | convert-repo |
---|---|
date | Sat, 17 Dec 2022 01:48:13 +0000 |
parents | 712c7fd6702a |
children | be4835547dd0 |
rev | line source |
---|---|
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 | |
11 LDFLAGS=-L"discord_game_sdk/lib/x86" -ldiscord_game_sdk | |
1 | 12 DEPS=src/include/config.h src/include/dirtools.h src/include/main.h \ |
13 src/include/timer.h src/include/resource.h | |
14 RC=src/include/dialog.rc | |
0 | 15 OBJ=src/config.o src/dirtools.o src/main.o src/timer.o |
16 | |
1 | 17 gen_DiscordGameSDK.dll: $(OBJ) src/include/dialog.o |
18 gcc -o $@ $(CFLAGS) $^ $(LDFLAGS) | |
19 | |
20 src/include/dialog.o: src/include/dialog.rc | |
21 windres -i $< -o $@ | |
22 | |
0 | 23 src/%.o: src/%.c $(DEPS) |
24 gcc -c $(CFLAGS) $< -o $@ | |
25 | |
26 clean: | |
2
712c7fd6702a
Remove a LOT of unneeded stuff
Paper <mrpapersonic@gmail.com>
parents:
1
diff
changeset
|
27 find . -type f -name '*.o' -not -path "./discord_game_sdk/*" -delete |
712c7fd6702a
Remove a LOT of unneeded stuff
Paper <mrpapersonic@gmail.com>
parents:
1
diff
changeset
|
28 find . -type f -name '*.dll' -not -path "./discord_game_sdk/*" -delete |