From 8bbdb38f930414329b06f3d4aa71ebd119403b50 Mon Sep 17 00:00:00 2001 From: historia Date: Fri, 4 Sep 2026 15:55:37 -0400 Subject: initial commit --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..70f8812 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +CC = gcc +WINDRES = windres +RUNNER = + +CFLAGS = -mwindows -municode +LIBS = -lgdi32 -luser32 -lshell32 -ladvapi32 -lm + +all: ColorPicker.exe + +ColorPicker-noico.exe: color-picker.c + $(CC) $< -o $@ $(CFLAGS) $(LIBS) + +rainbow.ico: ColorPicker-noico.exe + $(RUNNER) ./ColorPicker-noico.exe --make-ico + +icon.res: icon.rc rainbow.ico + $(WINDRES) $< -O coff -o $@ + +ColorPicker.exe: color-picker.c icon.res + $(CC) color-picker.c icon.res -o $@ $(CFLAGS) $(LIBS) + +clean: + rm -f ColorPicker-noico.exe rainbow.ico icon.res ColorPicker.exe + +.PHONY: all clean -- cgit v1.2.3