summaryrefslogtreecommitdiffstats
path: root/util/usb_detach/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'util/usb_detach/Makefile')
-rw-r--r--util/usb_detach/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/util/usb_detach/Makefile b/util/usb_detach/Makefile
new file mode 100644
index 0000000000..533c1928f4
--- /dev/null
+++ b/util/usb_detach/Makefile
@@ -0,0 +1,18 @@
+# the compiler: gcc for C program, define as g++ for C++
+CC = gcc
+
+# compiler flags:
+# -g adds debugging information to the executable file
+# -Wall turns on most, but not all, compiler warnings
+CFLAGS = -g -Wall
+
+# the build target executable:
+TARGET = usb_detach
+
+all: $(TARGET)
+
+$(TARGET): $(TARGET).c
+ $(CC) $(CFLAGS) -o $(TARGET) $(TARGET).c
+
+clean:
+ $(RM) $(TARGET)