diff vd_watchdog/Makefile @ 2:89e9d591748d

Fix bug of usage for vd_watchdog, and add Makefile
author Thinker K.F. Li <thinker@branda.to>
date Tue, 08 Jul 2008 11:17:01 +0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vd_watchdog/Makefile	Tue Jul 08 11:17:01 2008 +0800
@@ -0,0 +1,15 @@
+BIN=vd_watchdog
+SRCS=vd_watchdog.c
+OBJS = vd_watchdog.o
+CFLAGS=-Wall -I..
+
+$(BIN): $(OBJS)
+	$(CC) -o $@ $(OBJS)
+
+.c.o:
+	$(CC) $(CFLAGS) -c $(.ALLSRC)
+
+clean:
+	for f in $(OBJS) *~ $(BIN); do \
+		if [ -e $$f ]; then echo "deleting $$f"; rm -f "$$f"; fi; \
+	done