diff options
Diffstat (limited to 'host/Makefile')
-rw-r--r-- | host/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/host/Makefile b/host/Makefile new file mode 100644 index 0000000..12edce0 --- /dev/null +++ b/host/Makefile @@ -0,0 +1,24 @@ +#!/usr/bin/make +LDFLAGS=-lusb -lcrypt #-lzebvty -Lzebvty/ +CFLAGS=-Wall + +all: opcd_test opcd_sh + +clean: + -rm -f *.o opcd_test + $(MAKE) -C ausb clean + +ausb/libausb.a: + $(MAKE) -C ausb libausb.a + +opcd_test: opcd_test.o opcd_usb.o ausb/libausb.a + $(CC) $(LDFLAGS) -o $@ $^ + +opcd_sh: opcd_sh.o opcd_usb.o ausb/libausb.a zebvty/libzebvty.a + $(CC) $(LDFLAGS) -o $@ $^ + + +%.o: %.c + $(CC) $(CFLAGS) -o $@ -c $< + +.PHONEY: all clean |