From e85c367e4574cb59edf241776a5bcbaf29c155e3 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Tue, 31 Jul 2012 08:19:54 +0200 Subject: [PATCH] Makefile: add a clean target --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 0446cd6..89eee91 100644 --- a/Makefile +++ b/Makefile @@ -12,5 +12,8 @@ all: $(PROG) $(PROG): $(OBJS) $(CC) -o $@ $(OBJS) $(LIBS) +clean: + rm -f $(OBJS) $(PROG) + .c.o: $(CC) -c $(CFLAGS) -o $@ $<