aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-09-04 15:55:37 -0400
committerhistoria <historiavg@proton.me>2026-09-04 15:55:37 -0400
commit8bbdb38f930414329b06f3d4aa71ebd119403b50 (patch)
treed357dcc2d486e8e4cba435a6ce3c9c10e3fe087f /Makefile
downloadcolor-picker-8bbdb38f930414329b06f3d4aa71ebd119403b50.tar.gz
initial commitHEADmain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
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