lua/makefile

155 lines
4.3 KiB
Makefile
Raw Normal View History

1997-09-16 23:33:21 +04:00
#
## $Id: makefile,v 1.24 2000/04/14 17:50:30 roberto Exp $
1997-09-16 23:33:21 +04:00
## Makefile
## See Copyright Notice in lua.h
#
1997-09-16 23:33:21 +04:00
#CONFIGURATION
# define (undefine) POPEN if your system (does not) support piped I/O
1997-07-01 23:32:41 +04:00
#
# define (undefine) _POSIX_SOURCE if your system is (not) POSIX compliant
1997-07-01 23:32:41 +04:00
#
# define (undefine) OLD_ANSI if your system does NOT have some new ANSI
# facilities (e.g. strerror, locale.h, memmove). SunOS does not comply;
# so, add "-DOLD_ANSI" on SunOS
1997-07-01 23:32:41 +04:00
#
1998-05-27 17:08:34 +04:00
# define LUA_NUM_TYPE if you need numbers to be different from double
1999-02-04 19:37:41 +03:00
# (for instance, -DLUA_NUM_TYPE=float)
#
2000-02-22 16:31:43 +03:00
# define COMPAT_READPATTERN if you need read patterns
# (only for compatibility with previous versions)
1997-07-01 23:32:41 +04:00
CONFIG = -DPOPEN -D_POSIX_SOURCE
#CONFIG = -DOLD_ANSI -DDEBUG -DCOMPAT_READPATTERN
1997-07-01 23:32:41 +04:00
1993-12-17 21:59:10 +03:00
# Compilation parameters
CC = gcc
CWARNS = -Wall -W -Wmissing-prototypes -Wshadow -pedantic -Wpointer-arith -Wcast-align -Waggregate-return -Wcast-qual -Wnested-externs -Wwrite-strings
1997-07-01 23:32:41 +04:00
CFLAGS = $(CONFIG) $(CWARNS) -ansi -O2
1993-12-17 21:59:10 +03:00
1999-01-11 23:23:54 +03:00
# To make early versions
CO_OPTIONS =
1993-12-17 21:59:10 +03:00
AR = ar
ARFLAGS = rvl
1993-12-17 21:59:10 +03:00
# Aplication modules
1995-11-10 20:56:06 +03:00
LUAOBJS = \
lstate.o \
lref.o \
1997-09-16 23:33:21 +04:00
lapi.o \
lauxlib.o \
lbuiltin.o \
lmem.o \
lstring.o \
ltable.o \
ltm.o \
lvm.o \
ldo.o \
lobject.o \
lbuffer.o \
lfunc.o \
lgc.o \
lcode.o \
lparser.o \
llex.o \
1997-09-16 23:33:21 +04:00
lundump.o \
2000-02-22 16:31:43 +03:00
lzio.o \
ldebug.o \
2000-02-22 16:31:43 +03:00
ltests.o
1995-11-10 20:56:06 +03:00
LIBOBJS = \
1997-09-16 23:33:21 +04:00
liolib.o \
lmathlib.o \
1999-01-08 19:47:44 +03:00
lstrlib.o \
ldblib.o \
linit.o
1995-11-10 20:56:06 +03:00
1993-12-17 21:59:10 +03:00
lua : lua.o liblua.a liblualib.a
$(CC) $(CFLAGS) -o $@ lua.o -L. -llua -llualib -lm
1993-12-17 21:59:10 +03:00
liblua.a : $(LUAOBJS)
1993-12-17 21:59:10 +03:00
$(AR) $(ARFLAGS) $@ $?
ranlib $@
1993-12-17 21:59:10 +03:00
liblualib.a : $(LIBOBJS)
1993-12-17 21:59:10 +03:00
$(AR) $(ARFLAGS) $@ $?
ranlib $@
liblua.so.1.0 : lua.o
ld -o liblua.so.1.0 $(LUAOBJS)
clear :
rcsclean
2000-02-22 16:31:43 +03:00
rm -f *.o *.a
1996-03-15 21:22:09 +03:00
%.h : RCS/%.h,v
1999-01-11 23:23:54 +03:00
co $(CO_OPTIONS) $@
%.c : RCS/%.c,v
1999-01-11 23:23:54 +03:00
co $(CO_OPTIONS) $@
1998-05-27 17:08:34 +04:00
lapi.o: lapi.c lapi.h lobject.h llimits.h lua.h lauxlib.h ldo.h \
lstate.h luadebug.h lfunc.h lgc.h lmem.h lref.h lstring.h ltable.h \
ltm.h lvm.h
lauxlib.o: lauxlib.c lauxlib.h lua.h luadebug.h
lbuffer.o: lbuffer.c lauxlib.h lua.h lmem.h lstate.h lobject.h \
llimits.h luadebug.h
lbuiltin.o: lbuiltin.c lapi.h lobject.h llimits.h lua.h lauxlib.h \
lbuiltin.h ldo.h lstate.h luadebug.h lfunc.h lmem.h lstring.h \
ltable.h ltm.h lundump.h lzio.h lvm.h
lcode.o: lcode.c /usr/include/stdlib.h lcode.h llex.h lobject.h \
llimits.h lua.h lzio.h lopcodes.h lparser.h ldo.h lstate.h luadebug.h \
lmem.h lstring.h
1999-02-04 19:37:41 +03:00
ldblib.o: ldblib.c lauxlib.h lua.h luadebug.h lualib.h
ldebug.o: ldebug.c lapi.h lobject.h llimits.h lua.h lauxlib.h ldebug.h \
2000-02-22 16:31:43 +03:00
luadebug.h ldo.h lstate.h lfunc.h ltable.h ltm.h
ldo.o: ldo.c lauxlib.h lua.h ldebug.h lobject.h llimits.h luadebug.h \
ldo.h lstate.h lgc.h lmem.h lparser.h lzio.h lstring.h ltm.h \
2000-02-22 16:31:43 +03:00
lundump.h lvm.h
lfunc.o: lfunc.c lfunc.h lobject.h llimits.h lua.h lmem.h lstate.h \
luadebug.h
lgc.o: lgc.c ldo.h lobject.h llimits.h lua.h lstate.h luadebug.h \
lfunc.h lgc.h lmem.h lref.h lstring.h ltable.h ltm.h
1999-01-08 19:47:44 +03:00
linit.o: linit.c lua.h lualib.h
1997-09-16 23:33:21 +04:00
liolib.o: liolib.c lauxlib.h lua.h luadebug.h lualib.h
llex.o: llex.c lauxlib.h lua.h llex.h lobject.h llimits.h lzio.h \
lmem.h lparser.h lstate.h luadebug.h lstring.h
1997-09-16 23:33:21 +04:00
lmathlib.o: lmathlib.c lauxlib.h lua.h lualib.h
lmem.o: lmem.c lmem.h lua.h lobject.h llimits.h lstate.h luadebug.h
lobject.o: lobject.c lobject.h llimits.h lua.h
lparser.o: lparser.c lcode.h llex.h lobject.h llimits.h lua.h lzio.h \
lopcodes.h lparser.h ldo.h lstate.h luadebug.h lfunc.h lmem.h \
lstring.h
lref.o: lref.c lapi.h lobject.h llimits.h lua.h lmem.h lref.h lstate.h \
luadebug.h
lstate.o: lstate.c lauxlib.h lua.h lbuiltin.h ldo.h lobject.h \
llimits.h lstate.h luadebug.h lgc.h llex.h lzio.h lmem.h lref.h \
lstring.h ltm.h
lstring.o: lstring.c lmem.h lua.h lobject.h llimits.h lstate.h \
luadebug.h lstring.h
1997-09-16 23:33:21 +04:00
lstrlib.o: lstrlib.c lauxlib.h lua.h lualib.h
ltable.o: ltable.c lauxlib.h lua.h lmem.h lobject.h llimits.h lstate.h \
luadebug.h ltable.h
ltests.o: ltests.c lapi.h lobject.h llimits.h lua.h lauxlib.h lmem.h \
lopcodes.h lstate.h luadebug.h lstring.h ltable.h
ltm.o: ltm.c lauxlib.h lua.h lmem.h lobject.h llimits.h lstate.h \
luadebug.h ltm.h
lua.o: lua.c lua.h luadebug.h lualib.h
lundump.o: lundump.c lauxlib.h lua.h lfunc.h lobject.h llimits.h \
lmem.h lopcodes.h lstring.h lstate.h luadebug.h lundump.h lzio.h
lvm.o: lvm.c lauxlib.h lua.h ldebug.h lobject.h llimits.h luadebug.h \
ldo.h lstate.h lfunc.h lgc.h lopcodes.h lstring.h ltable.h ltm.h \
lvm.h
1997-09-16 23:33:21 +04:00
lzio.o: lzio.c lzio.h