Add libusb support and lots more examples
[fw/altos] / Makefile
index 8e80e65c587a874e7391acf3dc87ad86014d7500..27a389e2b97e7e89e80a4d111c56b4bfe74994cd 100644 (file)
--- 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)
 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)
 INCS=ccdbg.h cccp.h
 
 PROG=ccdbg
 
 $(PROG): $(OBJS)
-       $(CC) $(CFLAGS) -o $@ $(OBJS)
+       $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
 
 clean:
        rm -f $(PROG) $(OBJS)
 
 clean:
        rm -f $(PROG) $(OBJS)