Add libusb support and lots more examples
[fw/altos] / Makefile
index 54fd11f4ed2b695f188966ee0c9cf33106bafd11..27a389e2b97e7e89e80a4d111c56b4bfe74994cd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,21 @@
 KERNEL=/local/src/linux-2.6-aiko-64
 KINC=$(KERNEL)/drivers/usb/serial
 
-CFLAGS=-g -I$(KINC)
+WARN=-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes\
+       -Wmissing-declarations -Wnested-externs -fno-strict-aliasing 
+CFLAGS=-g -I$(KINC) $(WARN)
+LIBS=-lusb
 
-OBJS=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)