summaryrefslogtreecommitdiffstats
path: root/minislang/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'minislang/Makefile')
-rw-r--r--minislang/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/minislang/Makefile b/minislang/Makefile
new file mode 100644
index 000000000..282d12a85
--- /dev/null
+++ b/minislang/Makefile
@@ -0,0 +1,15 @@
+OBJS = sldisply.o slerr.o slgetkey.o slmisc.o slsignal.o slsmg.o \
+ sltermin.o slutty.o
+
+CFLAGS = -fPIC
+
+all: libslang.so
+
+libslang.so: $(OBJS)
+ gcc -o $@ -shared -Wl,-soname,libslang.so.1 $(OBJS)
+
+clean:
+ rm -f *.o libslang.so
+
+install: libslang.so
+ install -s libslang.so $(DESTDIR)/usr/lib/libslang.so.1