summaryrefslogtreecommitdiffstats
path: root/scripts/tunctl-src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tunctl-src/Makefile')
-rw-r--r--scripts/tunctl-src/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/tunctl-src/Makefile b/scripts/tunctl-src/Makefile
new file mode 100644
index 0000000..81cab8a
--- /dev/null
+++ b/scripts/tunctl-src/Makefile
@@ -0,0 +1,17 @@
+OBJS = tunctl.o
+BIN = tunctl
+CFLAGS ?= -g -Wall
+
+BIN_DIR ?= /usr/bin
+
+all : $(BIN)
+
+$(BIN) : $(OBJS)
+ $(CC) $(CFLAGS) -o $(BIN) $(OBJS)
+
+clean :
+ rm -f $(BIN) $(OBJS) *~
+
+install : $(BIN)
+ install -d $(DESTDIR)$(BIN_DIR)
+ install -s $(BIN) $(DESTDIR)$(BIN_DIR)
OpenPOWER on IntegriCloud