diff --git a/.gitignore b/.gitignore index 0331bbb..da18c19 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Object files *.o +*.res # Libraries *.lib diff --git a/Makefile b/Makefile index 9300886..da3606c 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,21 @@ CC=gcc SRCS=virgo.c tray.c OBJS=$(SRCS:.c=.o) -CFLAGS=-O2 +CFLAGS=-O2 -std=c90 -Wall LDFLAGS=-s -lgdi32 -mwindows NAME=virgo EXE=$(NAME).exe .PHONY: all clean all: $(EXE) -$(EXE): $(OBJS) - $(CC) -o $(EXE) $(OBJS) $(LDFLAGS) +$(EXE): $(OBJS) $(NAME).res + $(CC) -o $(EXE) $(OBJS) $(NAME).res $(LDFLAGS) + +$(NAME).res: $(NAME).rc + windres -O coff $(NAME).rc $(NAME).res .c.o: - $(CC) -Wall -o $@ $(CFLAGS) -c $< + $(CC) -o $@ $(CFLAGS) -c $< clean: - rm -f $(OBJS) $(EXE) + rm -f $(OBJS) $(EXE) $(NAME).res diff --git a/virgo.ico b/virgo.ico new file mode 100644 index 0000000..9d32c40 Binary files /dev/null and b/virgo.ico differ diff --git a/virgo.rc b/virgo.rc new file mode 100644 index 0000000..e4aad1d --- /dev/null +++ b/virgo.rc @@ -0,0 +1 @@ +1 ICON "virgo.ico" \ No newline at end of file