Browse Source

add clean target, use CC instead of gcc..

master
John-Mark Gurney 4 years ago
parent
commit
d930074ce3
1 changed files with 9 additions and 6 deletions
  1. +9
    -6
      Makefile

+ 9
- 6
Makefile View File

@@ -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

Loading…
Cancel
Save