Mercurial > wgsdk
diff Makefile @ 1:7abb5d8b20ea v1.0
Initial commit: part 2
I added a config GUI, and actual stuff to the README.
The GUI was 'made' in Visual Studio, but I trimmed down the
resource file because it had weird VS2010 skid marks all over it.
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 07 Aug 2022 10:23:10 -0400 |
parents | d91dfd53b8b4 |
children | 712c7fd6702a |
line wrap: on
line diff
--- a/Makefile Sun Aug 07 07:26:27 2022 -0400 +++ b/Makefile Sun Aug 07 10:23:10 2022 -0400 @@ -1,4 +1,4 @@ -CFLAGS=-Wall -mdll -Isrc/include -I"discord_game_sdk/c" +CFLAGS=-Wall -O2 -mdll -Isrc/include -I"discord_game_sdk/c" ifeq ($(PROCESSOR_ARCHITECTURE),x86) ifeq ($(PROCESSOR_ARCHITEW6432),x86) CFLAGS += -I"/c/Program Files/Winamp SDK" @@ -9,14 +9,19 @@ CFLAGS += -I"/c/Program Files (x86)/Winamp SDK" endif LDFLAGS=-L"discord_game_sdk/lib/x86" -ldiscord_game_sdk -DEPS=src/include/config.h src/include/dirtools.h src/include/main.h src/include/timer.h +DEPS=src/include/config.h src/include/dirtools.h src/include/main.h \ + src/include/timer.h src/include/resource.h +RC=src/include/dialog.rc OBJ=src/config.o src/dirtools.o src/main.o src/timer.o +gen_DiscordGameSDK.dll: $(OBJ) src/include/dialog.o + gcc -o $@ $(CFLAGS) $^ $(LDFLAGS) + +src/include/dialog.o: src/include/dialog.rc + windres -i $< -o $@ + src/%.o: src/%.c $(DEPS) gcc -c $(CFLAGS) $< -o $@ -gen_DiscordGameSDK.dll: $(OBJ) - gcc -o $@ $(CFLAGS) $^ $(LDFLAGS) - clean: rm -f src/*.o *.dll \ No newline at end of file