view 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
line wrap: on
line source

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" 
	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" -lshlwapi -lole32 -luuid -ldiscord_game_sdk -Wl,--enable-stdcall-fixup
DEPS=src/include/config.h src/include/dirtools.h src/include/main.h \
     src/include/resource.h src/include/timer.h src/include/utils.h \
	 src/include/json.h
OBJ=src/config.o src/dirtools.o src/main.o src/timer.o src/utils.o \
	src/dialog.o
.SUFFIXES: .rc

gen_DiscordGameSDK.dll: $(OBJ) $(DEPS)
	$(CC) -o $@ $(CFLAGS) $(OBJ) $(LDFLAGS)

.rc.o:
	windres -Isrc/include -i $< -o $@

.c.o:
	$(CC) -c $(CFLAGS) $< -o $@

clean:
	rm gen_DiscordGameSDK.dll $(OBJ)