Makefile: add a clean target

This commit is contained in:
Matthieu Herrb 2012-07-31 08:19:54 +02:00
parent ca410bd75a
commit e85c367e45

View file

@ -12,5 +12,8 @@ all: $(PROG)
$(PROG): $(OBJS) $(PROG): $(OBJS)
$(CC) -o $@ $(OBJS) $(LIBS) $(CC) -o $@ $(OBJS) $(LIBS)
clean:
rm -f $(OBJS) $(PROG)
.c.o: .c.o:
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<