Skip to content

Commit

Permalink
Added {,un}install targets
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrippling committed Jul 20, 2011
1 parent 214421b commit e745cc4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
CFLAGS = -g -Wall -Wextra -pedantic -std=c99 -D_POSIX_SOURCE
LDFLAGS = -g -lncurses
PREFIX = /usr

.PHONY: clean
.PHONY: clean install uninstall

utop: main.o proc.o gui.o util.o
${CC} ${LDFLAGS} -o $@ $^

clean:
@rm -f *.o utop

install: utop
cp utop ${PREFIX}/bin

uninstall:
rm -f ${PREFIX}/bin/utop

gui.o: gui.c proc.h gui.h util.h
main.o: main.c proc.h gui.h
proc.o: proc.c proc.h util.h
Expand Down

0 comments on commit e745cc4

Please sign in to comment.