summaryrefslogtreecommitdiff
path: root/clients/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'clients/lib/Makefile')
-rw-r--r--clients/lib/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/clients/lib/Makefile b/clients/lib/Makefile
index b191b750..70750979 100644
--- a/clients/lib/Makefile
+++ b/clients/lib/Makefile
@@ -7,15 +7,19 @@ LIB= $(LUA)/lib
INCS= -I/usr/5include -I$(INC)
WARN= -Wall -Wmissing-prototypes -Wshadow -ansi
+# if your system does not have popen, remove -DPOPEN from the line below
+DEFS= -DPOPEN
+
CC= gcc
CFLAGS= $(INCS) $(DEFS) $(WARN) -O2
OBJS= iolib.o mathlib.o strlib.o
+SRCS= iolib.c mathlib.c mathlib.h strlib.c strlib.h
SLIB= $(LIB)/liblualib.a
# dynamic libraries only work for SunOs
-DLIB= $(LIB)/liblualib.so.2.1
+DLIB= $(LIB)/liblualib.so.$(VERSION)
all: $(SLIB)
@@ -32,4 +36,7 @@ clean:
rm -f $(OBJS) $(SLIB) $(DLIB)
co:
- co -M iolib.c mathlib.c mathlib.h strlib.c strlib.h
+ co -f -M $(SRCS)
+
+klean: clean
+ rm -f $(SRCS)