Mercurial > wgsdk
view Makefile @ 12:dd427b7cc459 default tip
json: replace with nxjson library
more lightweight, reduces the binary size by about 40 kb
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Fri, 15 Mar 2024 20:46:18 -0400 |
parents | e6a594f16403 |
children |
line wrap: on
line source
CFLAGS=-flto -Wall -O2 -mdll -Iinclude -I"discord_game_sdk/c" ifeq ($(PROCESSOR_ARCHITECTURE),x86) ifeq ($(PROCESSOR_ARCHITEW6432),x86) CFLAGS += -I"/c/Program Files/Winamp SDK" else CFLAGS += -I"/c/Program Files (x86)/Winamp SDK" endif else CFLAGS += -I"/c/Program Files (x86)/Winamp SDK" endif LDFLAGS=-L"discord_game_sdk/lib/x86" -lwinhttp -lshlwapi -ldiscord_game_sdk -Wl,--enable-stdcall-fixup DEPS=include/config.h include/dirtools.h include/json.h \ include/resource.h include/timer.h include/utils.h \ include/dialog/dlg_config.h include/ini.h OBJ=src/config.o src/dirtools.o src/plugin.o src/timer.o src/utils.o \ src/dialog.o src/deezer.o src/json.o src/dialog/dlg_config.o \ src/ini.o .SUFFIXES: .rc gen_DiscordGameSDK.dll: $(OBJ) $(DEPS) $(CC) -o $@ $(CFLAGS) $(OBJ) $(LDFLAGS) .rc.o: windres -Iinclude -i $< -o $@ .c.o: $(CC) -c $(CFLAGS) $< -o $@ clean: rm gen_DiscordGameSDK.dll $(OBJ)