You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
3.5 KiB

28 years ago
#
26 years ago
## $Id: makefile,v 1.15 1999/01/11 20:23:54 roberto Exp roberto $
28 years ago
## Makefile
## See Copyright Notice in lua.h
#
28 years ago
#CONFIGURATION
# define (undefine) POPEN if your system (does not) support piped I/O
28 years ago
#
# define (undefine) _POSIX_SOURCE if your system is (not) POSIX compliant
28 years ago
#
# define (undefine) OLD_ANSI if your system does NOT have some new ANSI
27 years ago
# facilities (e.g. strerror, locale.h, memmove). Although they are ANSI,
28 years ago
# SunOS does not comply; so, add "-DOLD_ANSI" on SunOS
#
# define LUA_COMPAT2_5 if yous system does need to be compatible with
# version 2.5 (or older)
#
27 years ago
# define LUA_NUM_TYPE if you need numbers to be different from double
26 years ago
# (for instance, -DLUA_NUM_TYPE=float)
28 years ago
CONFIG = -DPOPEN -D_POSIX_SOURCE
#CONFIG = -DLUA_COMPAT2_5 -DOLD_ANSI -DDEBUG
28 years ago
31 years ago
# Compilation parameters
CC = gcc
CWARNS = -Wall -Wmissing-prototypes -Wshadow -pedantic -Wpointer-arith -Wcast-align -Waggregate-return
28 years ago
CFLAGS = $(CONFIG) $(CWARNS) -ansi -O2
31 years ago
26 years ago
# To make early versions
CO_OPTIONS =
31 years ago
AR = ar
ARFLAGS = rvl
31 years ago
# Aplication modules
LUAOBJS = \
28 years ago
lapi.o \
lauxlib.o \
lbuffer.o \
28 years ago
lbuiltin.o \
ldo.o \
lfunc.o \
lgc.o \
llex.o \
lmem.o \
lobject.o \
27 years ago
lparser.o \
lstate.o \
28 years ago
lstring.o \
ltable.o \
ltm.o \
lvm.o \
lundump.o \
lzio.o
LIBOBJS = \
28 years ago
liolib.o \
lmathlib.o \
lstrlib.o \
ldblib.o \
linit.o
31 years ago
lua : lua.o liblua.a liblualib.a
$(CC) $(CFLAGS) -o $@ lua.o -L. -llua -llualib -lm
31 years ago
liblua.a : $(LUAOBJS)
31 years ago
$(AR) $(ARFLAGS) $@ $?
ranlib $@
31 years ago
liblualib.a : $(LIBOBJS)
31 years ago
$(AR) $(ARFLAGS) $@ $?
ranlib $@
liblua.so.1.0 : lua.o
ld -o liblua.so.1.0 $(LUAOBJS)
clear :
rcsclean
rm -f *.o
27 years ago
rm -f
26 years ago
co $(CO_OPTIONS) lua.h lualib.h luadebug.h
%.h : RCS/%.h,v
26 years ago
co $(CO_OPTIONS) $@
%.c : RCS/%.c,v
26 years ago
co $(CO_OPTIONS) $@
27 years ago
lapi.o: lapi.c lapi.h lua.h lobject.h lauxlib.h ldo.h lstate.h lfunc.h \
lgc.h lmem.h lstring.h ltable.h ltm.h luadebug.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
28 years ago
lbuiltin.o: lbuiltin.c lapi.h lua.h lobject.h lauxlib.h lbuiltin.h \
ldo.h lstate.h lfunc.h lmem.h lstring.h ltable.h ltm.h lundump.h \
lzio.h lvm.h
26 years ago
ldblib.o: ldblib.c lauxlib.h lua.h luadebug.h lualib.h
ldo.o: ldo.c ldo.h lobject.h lua.h lstate.h lfunc.h lgc.h lmem.h \
lparser.h lzio.h lstring.h ltm.h luadebug.h lundump.h lvm.h
lfunc.o: lfunc.c lfunc.h lobject.h lua.h lmem.h lstate.h
lgc.o: lgc.c ldo.h lobject.h lua.h lstate.h lfunc.h lgc.h lmem.h \
lstring.h ltable.h ltm.h
linit.o: linit.c lua.h lualib.h
28 years ago
liolib.o: liolib.c lauxlib.h lua.h luadebug.h lualib.h
llex.o: llex.c lauxlib.h lua.h llex.h lobject.h lzio.h lmem.h \
27 years ago
lparser.h lstate.h lstring.h luadebug.h
28 years ago
lmathlib.o: lmathlib.c lauxlib.h lua.h lualib.h
lmem.o: lmem.c lmem.h lstate.h lobject.h lua.h
28 years ago
lobject.o: lobject.c lobject.h lua.h
27 years ago
lparser.o: lparser.c lauxlib.h lua.h ldo.h lobject.h lstate.h lfunc.h \
llex.h lzio.h lmem.h lopcodes.h lparser.h lstring.h luadebug.h
lstate.o: lstate.c lbuiltin.h ldo.h lobject.h lua.h lstate.h lfunc.h \
lgc.h llex.h lzio.h lmem.h lstring.h ltable.h ltm.h
lstring.o: lstring.c lmem.h lobject.h lua.h lstate.h lstring.h
28 years ago
lstrlib.o: lstrlib.c lauxlib.h lua.h lualib.h
ltable.o: ltable.c lauxlib.h lua.h lmem.h lobject.h lstate.h ltable.h
27 years ago
ltm.o: ltm.c lauxlib.h lua.h lmem.h lobject.h lstate.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 lmem.h \
lstring.h lundump.h lzio.h
lvm.o: lvm.c lauxlib.h lua.h ldo.h lobject.h lstate.h lfunc.h lgc.h \
lmem.h lopcodes.h lstring.h ltable.h ltm.h luadebug.h lvm.h
28 years ago
lzio.o: lzio.c lzio.h