From: Peter Stuge Date: Thu, 4 Nov 2010 20:40:14 +0000 (+0100) Subject: Add clean target to Makefile X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=eb30c775b32e8ef1789675a570dc8c7dbc98fed7;p=rapper.git Add clean target to Makefile --- 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)