summaryrefslogtreecommitdiff
path: root/openpcd/opcd_test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'openpcd/opcd_test/Makefile')
-rw-r--r--openpcd/opcd_test/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/openpcd/opcd_test/Makefile b/openpcd/opcd_test/Makefile
index 580e3a9..edae90f 100644
--- a/openpcd/opcd_test/Makefile
+++ b/openpcd/opcd_test/Makefile
@@ -5,11 +5,15 @@ all: opcd_test
clean:
-rm -f *.o opcd_test
+ $(MAKE) -C ausb clean
-opcd_test: opcd_test.o
- $(CC) $(LDFLAGS) -o $@ $<
+ausb/libausb.a:
+ $(MAKE) -C ausb libausb.a
-opcd_test.o: opcd_test.c
+opcd_test: opcd_test.o opcd_usb.o ausb/libausb.a
+ $(CC) $(LDFLAGS) -o $@ $^
+
+%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $<
.PHONEY: all clean
personal git repositories of Harald Welte. Your mileage may vary