From eb30c775b32e8ef1789675a570dc8c7dbc98fed7 Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Thu, 4 Nov 2010 21:40:14 +0100 Subject: [PATCH] Add clean target to Makefile --- lpc176x/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lpc176x/Makefile b/lpc176x/Makefile index 10c24a4..fe29076 100644 --- a/lpc176x/Makefile +++ b/lpc176x/Makefile @@ -11,9 +11,10 @@ OBJDUMP=$(CROSS_COMPILE)-objdump LDFLAGS=-nostdlib ALL=main +OBJS=main.o sysinit.o -main: main.o sysinit.o -main.o: main.c -sysinit.o: sysinit.c - +$(ALL): $(OBJS) +.PHONY: clean +clean: + rm -f $(ALL) $(OBJS) -- 1.7.10.4