summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)