comparison Makefile @ 10:42ac054c0231

*: huge refactoring dirtools now uses wchar (wayyy overdue) the timer doesn't have a stupid design anymore we don't use windows.h at all now ...
author Paper <paper@paper.us.eu.org>
date Sun, 11 Feb 2024 19:43:31 -0500
parents be4835547dd0
children e6a594f16403
comparison
equal deleted inserted replaced
9:07f0e2f43204 10:42ac054c0231
6 CFLAGS += -I"/c/Program Files (x86)/Winamp SDK" 6 CFLAGS += -I"/c/Program Files (x86)/Winamp SDK"
7 endif 7 endif
8 else 8 else
9 CFLAGS += -I"/c/Program Files (x86)/Winamp SDK" 9 CFLAGS += -I"/c/Program Files (x86)/Winamp SDK"
10 endif 10 endif
11 LDFLAGS=-L"discord_game_sdk/lib/x86" -ldiscord_game_sdk -Wl,--enable-stdcall-fixup 11 LDFLAGS=-L"discord_game_sdk/lib/x86" -lshlwapi -lole32 -luuid -ldiscord_game_sdk -Wl,--enable-stdcall-fixup
12 DEPS=src/include/config.h src/include/dirtools.h src/include/main.h \ 12 DEPS=src/include/config.h src/include/dirtools.h src/include/main.h \
13 src/include/timer.h src/include/resource.h src/include/utils.h 13 src/include/resource.h src/include/timer.h src/include/utils.h \
14 RC=src/include/dialog.rc 14 src/include/json.h
15 OBJ=src/config.o src/dirtools.o src/main.o src/timer.o src/utils.o 15 OBJ=src/config.o src/dirtools.o src/main.o src/timer.o src/utils.o \
16 src/dialog.o
17 .SUFFIXES: .rc
16 18
17 gen_DiscordGameSDK.dll: $(OBJ) src/include/dialog.o 19 gen_DiscordGameSDK.dll: $(OBJ) $(DEPS)
18 gcc -o $@ $(CFLAGS) $^ $(LDFLAGS) 20 $(CC) -o $@ $(CFLAGS) $(OBJ) $(LDFLAGS)
19 21
20 src/include/dialog.o: src/include/dialog.rc 22 .rc.o:
21 windres -i $< -o $@ 23 windres -Isrc/include -i $< -o $@
22 24
23 src/%.o: src/%.c $(DEPS) 25 .c.o:
24 gcc -c $(CFLAGS) $< -o $@ 26 $(CC) -c $(CFLAGS) $< -o $@
25 27
26 clean: 28 clean:
27 find . -type f -name '*.o' -not -path "./discord_game_sdk/*" -delete 29 rm gen_DiscordGameSDK.dll $(OBJ)
28 find . -type f -name '*.dll' -not -path "./discord_game_sdk/*" -delete