summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-12-06 16:32:12 -0800
committerKeith Packard <keithp@keithp.com>2008-12-06 16:32:12 -0800
commit3709ec3205cfb152b6568f3ea505c67fe7504c2a (patch)
treec5b8859121e2f5ad6ee73f95b6df3ea128cde9cf /Makefile
parent39801e6e9fb9388072ee414a447f74095a6ac960 (diff)
Add libusb support and lots more examples
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8e80e65c..27a389e2 100644
--- a/Makefile
+++ b/Makefile
@@ -4,14 +4,18 @@ KINC=$(KERNEL)/drivers/usb/serial
WARN=-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes\
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing
CFLAGS=-g -I$(KINC) $(WARN)
+LIBS=-lusb
-OBJS=ccdbg.o ccdbg-command.o ccdbg-io.o cccp.o
+KERNEL_OBJS=cccp.o
+LIBUSB_OBJS=cp-usb.o
+
+OBJS=ccdbg.o ccdbg-command.o ccdbg-io.o $(LIBUSB_OBJS)
INCS=ccdbg.h cccp.h
PROG=ccdbg
$(PROG): $(OBJS)
- $(CC) $(CFLAGS) -o $@ $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
clean:
rm -f $(PROG) $(OBJS)