Skip to content

Commit

Permalink
icon added
Browse files Browse the repository at this point in the history
  • Loading branch information
henkman committed Oct 6, 2013
1 parent c034afd commit add3c41
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Object files
*.o
*.res

# Libraries
*.lib
Expand Down
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Binary file added virgo.ico
Binary file not shown.
1 change: 1 addition & 0 deletions virgo.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1 ICON "virgo.ico"

0 comments on commit add3c41

Please sign in to comment.