diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
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 |
