summaryrefslogtreecommitdiffstats
path: root/utils/e200tool/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/e200tool/Makefile')
-rw-r--r--utils/e200tool/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/e200tool/Makefile b/utils/e200tool/Makefile
new file mode 100644
index 0000000000..63f82b9cdd
--- /dev/null
+++ b/utils/e200tool/Makefile
@@ -0,0 +1,21 @@
+DEFINES=
+CC=gcc
+LD=gcc
+CFLAGS=-O2 -g -std=c99 -W -Wall `pkg-config --cflags libusb-1.0` $(DEFINES)
+LDFLAGS=`pkg-config --libs libusb-1.0`
+BINS=e200load
+
+all: $(BINS)
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+e200load: e200load.o
+ $(LD) -o $@ $^ $(LDFLAGS)
+
+clean:
+ rm -fr *.o
+
+veryclean:
+ rm -rf $(BINS)
+