summaryrefslogtreecommitdiff
path: root/host/zebvty/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'host/zebvty/Makefile')
-rw-r--r--host/zebvty/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/host/zebvty/Makefile b/host/zebvty/Makefile
new file mode 100644
index 0000000..dcaf1a2
--- /dev/null
+++ b/host/zebvty/Makefile
@@ -0,0 +1,19 @@
+#include ../../makevars
+
+OBJS=vector.o command.o buffer.o vty.o
+CFLAGS+=-fPIC
+NAME=zebvty
+
+all: lib$(NAME).a lib$(NAME).so
+
+lib$(NAME).a: $(OBJS)
+ $(AR) r $@ $^
+
+lib$(NAME).so: $(OBJS)
+ $(LD) -x --shared -o $@ $^
+
+%.o: %.c
+ $(CC) $(CFLAGS) -o $@ -c $^
+
+clean:
+ @rm -f *.o lib$(NAME).a lib$(NAME).so
personal git repositories of Harald Welte. Your mileage may vary