diff options
Diffstat (limited to 'clients/lib/old/Makefile')
| -rw-r--r-- | clients/lib/old/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/clients/lib/old/Makefile b/clients/lib/old/Makefile new file mode 100644 index 00000000..b9668617 --- /dev/null +++ b/clients/lib/old/Makefile @@ -0,0 +1,35 @@ +# makefile for lualib + +LUA= ../../.. + +include $(LUA)/config + +EXTRA_DEFS= $(POPEN) $(NOSTRERROR) + +OBJS= iolib.o mathlib.o strlib.o +SRCS= iolib.c mathlib.c strlib.c + +SLIB= $(LIB)/liboldlualib.a + +# dynamic libraries only work for SunOs +DLIB= $(LIB)/liboldlualib.so.$(VERSION) + +all: $(SLIB) + +dynamic: $(DLIB) + +$(SLIB): $(OBJS) + ar rcu $@ $(OBJS) + $(RANLIB) $(SLIB) + +$(DLIB): $(OBJS) + ld -o $@ $(OBJS) + +clean: + rm -f $(OBJS) $(SLIB) $(DLIB) + +co: + co -f -M -rv2_4 $(SRCS) + +klean: clean + rm -f $(SRCS) |
