Permalink
Browse files

Makefile: Add dependencies on headers.

  • Loading branch information...
1 parent b5218d5 commit 32c6cdd31220c1613925875e2ad3d76c5c99526c @nelhage committed Jan 26, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 Makefile
View
@@ -1,9 +1,14 @@
CFLAGS=-Wall -Werror -D_GNU_SOURCE -g
OBJS=reptyr.o ptrace.o attach.o
+
all: reptyr
reptyr: $(OBJS)
+attach.o: reptyr.h ptrace.h
+reptyr.o: reptyr.h
+ptrace.o: ptrace.h $(wildcard arch/*.h)
+
clean:
rm -f reptyr $(OBJS)

0 comments on commit 32c6cdd

Please sign in to comment.