annotate 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
rev   line source
2
89e9d591748d Fix bug of usage for vd_watchdog, and add Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
1 BIN=vd_watchdog
89e9d591748d Fix bug of usage for vd_watchdog, and add Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
2 SRCS=vd_watchdog.c
89e9d591748d Fix bug of usage for vd_watchdog, and add Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
3 OBJS = vd_watchdog.o
89e9d591748d Fix bug of usage for vd_watchdog, and add Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
4 CFLAGS=-Wall -I..
89e9d591748d Fix bug of usage for vd_watchdog, and add Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
5
89e9d591748d Fix bug of usage for vd_watchdog, and add Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
6 $(BIN): $(OBJS)
89e9d591748d Fix bug of usage for vd_watchdog, and add Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
7 $(CC) -o $@ $(OBJS)
89e9d591748d Fix bug of usage for vd_watchdog, and add Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
8
89e9d591748d Fix bug of usage for vd_watchdog, and add Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
9 .c.o:
89e9d591748d Fix bug of usage for vd_watchdog, and add Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
10 $(CC) $(CFLAGS) -c $(.ALLSRC)
89e9d591748d Fix bug of usage for vd_watchdog, and add Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
11
89e9d591748d Fix bug of usage for vd_watchdog, and add Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
12 clean:
89e9d591748d Fix bug of usage for vd_watchdog, and add Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
13 for f in $(OBJS) *~ $(BIN); do \
89e9d591748d Fix bug of usage for vd_watchdog, and add Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
14 if [ -e $$f ]; then echo "deleting $$f"; rm -f "$$f"; fi; \
89e9d591748d Fix bug of usage for vd_watchdog, and add Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
15 done