diff options
| author | Lua Team <team@lua.org> | 1995-02-07 12:00:00 +0000 |
|---|---|---|
| committer | repogen <> | 1995-02-07 12:00:00 +0000 |
| commit | a8b6ba0954edb9e0e669e1f451b9a8f145ce5166 (patch) | |
| tree | 35e9e9999968c4f13a25a5f647203456f044274a /clients/lib/Makefile | |
| parent | 944fc7d7d95575f2b8023c1f3d4ac19e1369fc76 (diff) | |
| download | lua-github-2.1.tar.gz | |
Lua 2.12.1
Diffstat (limited to 'clients/lib/Makefile')
| -rw-r--r-- | clients/lib/Makefile | 20 |
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 |
