diff options
| author | Keith Packard <keithp@keithp.com> | 2008-12-19 11:04:16 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2008-12-19 11:04:16 -0800 |
| commit | 55995515b9d4fc1e193039eab697c5d03db417c2 (patch) | |
| tree | 26fe03c8e599a60cdaf2b4d1ebc3b17549584320 /Makefile | |
| parent | 0bc52385b8f86f9ca1c450ad106e6d8afe3bc153 (diff) | |
Add flash writing code.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -1,3 +1,4 @@ +.NOTPARALLEL: blink-ram blink-flash KERNEL=/local/src/linux-2.6-aiko-64 KINC=$(KERNEL)/drivers/usb/serial @@ -9,14 +10,17 @@ LIBS=-lusb KERNEL_OBJS=cccp.o LIBUSB_OBJS=cp-usb.o -OBJS=ccdbg.o ccdbg-command.o ccdbg-debug.o \ - ccdbg-hex.o ccdbg-io.o ccdbg-memory.o \ +SRCS=ccdbg.c ccdbg-command.c ccdbg-debug.c ccdbg-flash.c \ + ccdbg-hex.c ccdbg-io.c ccdbg-memory.c \ $(LIBUSB_OBJS) + +OBJS=$(SRCS:.c=.o) + INCS=ccdbg.h cccp.h PROG=ccdbg -LOAD=blink +LOAD=blinks all: $(PROG) $(LOAD) @@ -25,8 +29,9 @@ $(PROG): $(OBJS) clean: rm -f $(PROG) $(OBJS) + make -f Makefile.blink clean $(OBJS): $(INCS) -blink: blink.c Makefile.blink - make -f Makefile.blink +blinks: blink.c Makefile.blink + make -j1 -f Makefile.blink |
