From d930074ce3b8cc7a622d0fdb01752c4e9a654479 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Wed, 26 Aug 2020 23:40:41 +0000 Subject: [PATCH] add clean target, use CC instead of gcc.. --- Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 52a9fbf..ab9b319 100644 --- a/Makefile +++ b/Makefile @@ -4,20 +4,23 @@ LDFLAGS=-g all: cc_chipid cc_read cc_write cc_erase +clean: + rm -f cc_chipid cc_read cc_write cc_erase + cc_erase : cc_erase.o CCDebugger.o - gcc $(LDFLAGS) -o $@ $^ $(LDLIBS) + $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) cc_write : cc_write.o CCDebugger.o - gcc $(LDFLAGS) -o $@ $^ $(LDLIBS) + $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) cc_read : cc_read.o CCDebugger.o - gcc $(LDFLAGS) -o $@ $^ $(LDLIBS) + $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) cc_chipid : cc_chipid.o CCDebugger.o - gcc $(LDFLAGS) -o $@ $^ $(LDLIBS) + $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) cc_chipid.o : cc_chipid.c CCDebugger.h - gcc $(CFLAGS) -c $*.c + $(CC) $(CFLAGS) -c $*.c CCDebugger.o : CCDebugger.c CCDebugger.h - gcc $(CFLAGS) -c $*.c + $(CC) $(CFLAGS) -c $*.c