summaryrefslogtreecommitdiff
path: root/clients/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'clients/lib/Makefile')
-rw-r--r--clients/lib/Makefile20
1 files changed, 16 insertions, 4 deletions
diff --git a/clients/lib/Makefile b/clients/lib/Makefile
index 4110a62f..b191b750 100644
--- a/clients/lib/Makefile
+++ b/clients/lib/Makefile
@@ -3,17 +3,26 @@
INC= $(LUA)/include
LIB= $(LUA)/lib
+# in SunOs /usr/5include contains prototypes for standard lib
+INCS= -I/usr/5include -I$(INC)
+WARN= -Wall -Wmissing-prototypes -Wshadow -ansi
+
CC= gcc
-CFLAGS= -Wall -O2 -I$(INC) $(DEFS)
+CFLAGS= $(INCS) $(DEFS) $(WARN) -O2
OBJS= iolib.o mathlib.o strlib.o
+
SLIB= $(LIB)/liblualib.a
-DLIB= $(LIB)/liblualib.so.1.1
-libs: $(SLIB) $(DLIB)
+# dynamic libraries only work for SunOs
+DLIB= $(LIB)/liblualib.so.2.1
+
+all: $(SLIB)
+
+dynamic: $(DLIB)
$(SLIB): $(OBJS)
- ar ruvl $@ $(OBJS)
+ ar rcuv $@ $(OBJS)
ranlib $(SLIB)
$(DLIB): $(OBJS)
@@ -21,3 +30,6 @@ $(DLIB): $(OBJS)
clean:
rm -f $(OBJS) $(SLIB) $(DLIB)
+
+co:
+ co -M iolib.c mathlib.c mathlib.h strlib.c strlib.h