diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-14 14:52:09 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-14 14:52:09 -0300 |
| commit | c845ec777a29e434da6ceee50de9d5a6dfa40ea7 (patch) | |
| tree | 230cde6d49ec43cac7073596e813f236b4505e26 /makefile | |
| parent | e408cf61a2b0f96d1393c046dff32ed762b925a1 (diff) | |
| download | lua-c845ec777a29e434da6ceee50de9d5a6dfa40ea7.tar.gz lua-c845ec777a29e434da6ceee50de9d5a6dfa40ea7.tar.bz2 lua-c845ec777a29e434da6ceee50de9d5a6dfa40ea7.zip | |
new order for modules (better locality??)
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 106 |
1 files changed, 56 insertions, 50 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | # | 1 | # |
| 2 | ## $Id: makefile,v 1.22 2000/02/22 13:31:43 roberto Exp roberto $ | 2 | ## $Id: makefile,v 1.24 2000/04/14 17:50:30 roberto Exp $ |
| 3 | ## Makefile | 3 | ## Makefile |
| 4 | ## See Copyright Notice in lua.h | 4 | ## See Copyright Notice in lua.h |
| 5 | # | 5 | # |
| @@ -18,19 +18,16 @@ | |||
| 18 | # define LUA_NUM_TYPE if you need numbers to be different from double | 18 | # define LUA_NUM_TYPE if you need numbers to be different from double |
| 19 | # (for instance, -DLUA_NUM_TYPE=float) | 19 | # (for instance, -DLUA_NUM_TYPE=float) |
| 20 | # | 20 | # |
| 21 | # define LUA_COMPAT_GC if you need garbage-collect tag methods for tables | ||
| 22 | # (only for compatibility with previous versions) | ||
| 23 | # | ||
| 24 | # define COMPAT_READPATTERN if you need read patterns | 21 | # define COMPAT_READPATTERN if you need read patterns |
| 25 | # (only for compatibility with previous versions) | 22 | # (only for compatibility with previous versions) |
| 26 | 23 | ||
| 27 | CONFIG = -DPOPEN -D_POSIX_SOURCE -DDEBUG -DLUA_COMPAT_ORDER_TM | 24 | CONFIG = -DPOPEN -D_POSIX_SOURCE |
| 28 | #CONFIG = -DOLD_ANSI -DDEBUG -DLUA_COMPAT_GC -DCOMPAT_READPATTERN -DLUA_COMPAT_ORDER_TM | 25 | #CONFIG = -DOLD_ANSI -DDEBUG -DCOMPAT_READPATTERN |
| 29 | 26 | ||
| 30 | 27 | ||
| 31 | # Compilation parameters | 28 | # Compilation parameters |
| 32 | CC = gcc | 29 | CC = gcc |
| 33 | CWARNS = -Wall -W -Wmissing-prototypes -Wshadow -pedantic -Wpointer-arith -Wcast-align -Waggregate-return -Wwrite-strings -Wcast-qual -Wnested-externs | 30 | CWARNS = -Wall -W -Wmissing-prototypes -Wshadow -pedantic -Wpointer-arith -Wcast-align -Waggregate-return -Wcast-qual -Wnested-externs -Wwrite-strings |
| 34 | CFLAGS = $(CONFIG) $(CWARNS) -ansi -O2 | 31 | CFLAGS = $(CONFIG) $(CWARNS) -ansi -O2 |
| 35 | 32 | ||
| 36 | 33 | ||
| @@ -44,27 +41,27 @@ ARFLAGS = rvl | |||
| 44 | 41 | ||
| 45 | # Aplication modules | 42 | # Aplication modules |
| 46 | LUAOBJS = \ | 43 | LUAOBJS = \ |
| 44 | lstate.o \ | ||
| 45 | lref.o \ | ||
| 47 | lapi.o \ | 46 | lapi.o \ |
| 48 | lauxlib.o \ | 47 | lauxlib.o \ |
| 49 | lbuffer.o \ | ||
| 50 | lbuiltin.o \ | 48 | lbuiltin.o \ |
| 51 | ldebug.o \ | ||
| 52 | ldo.o \ | ||
| 53 | lfunc.o \ | ||
| 54 | lgc.o \ | ||
| 55 | llex.o \ | ||
| 56 | lmem.o \ | 49 | lmem.o \ |
| 57 | lobject.o \ | ||
| 58 | lparser.o \ | ||
| 59 | lcode.o \ | ||
| 60 | lref.o \ | ||
| 61 | lstate.o \ | ||
| 62 | lstring.o \ | 50 | lstring.o \ |
| 63 | ltable.o \ | 51 | ltable.o \ |
| 64 | ltm.o \ | 52 | ltm.o \ |
| 65 | lvm.o \ | 53 | lvm.o \ |
| 54 | ldo.o \ | ||
| 55 | lobject.o \ | ||
| 56 | lbuffer.o \ | ||
| 57 | lfunc.o \ | ||
| 58 | lgc.o \ | ||
| 59 | lcode.o \ | ||
| 60 | lparser.o \ | ||
| 61 | llex.o \ | ||
| 66 | lundump.o \ | 62 | lundump.o \ |
| 67 | lzio.o \ | 63 | lzio.o \ |
| 64 | ldebug.o \ | ||
| 68 | ltests.o | 65 | ltests.o |
| 69 | 66 | ||
| 70 | LIBOBJS = \ | 67 | LIBOBJS = \ |
| @@ -102,47 +99,56 @@ clear : | |||
| 102 | co $(CO_OPTIONS) $@ | 99 | co $(CO_OPTIONS) $@ |
| 103 | 100 | ||
| 104 | 101 | ||
| 105 | lapi.o: lapi.c lapi.h lobject.h lua.h lauxlib.h ldo.h lstate.h \ | 102 | lapi.o: lapi.c lapi.h lobject.h llimits.h lua.h lauxlib.h ldo.h \ |
| 106 | luadebug.h lfunc.h lgc.h lmem.h lref.h lstring.h ltable.h ltm.h lvm.h | 103 | lstate.h luadebug.h lfunc.h lgc.h lmem.h lref.h lstring.h ltable.h \ |
| 104 | ltm.h lvm.h | ||
| 107 | lauxlib.o: lauxlib.c lauxlib.h lua.h luadebug.h | 105 | lauxlib.o: lauxlib.c lauxlib.h lua.h luadebug.h |
| 108 | lbuffer.o: lbuffer.c lauxlib.h lua.h lmem.h lstate.h lobject.h \ | 106 | lbuffer.o: lbuffer.c lauxlib.h lua.h lmem.h lstate.h lobject.h \ |
| 109 | luadebug.h | 107 | llimits.h luadebug.h |
| 110 | lbuiltin.o: lbuiltin.c lapi.h lobject.h lua.h lauxlib.h lbuiltin.h \ | 108 | lbuiltin.o: lbuiltin.c lapi.h lobject.h llimits.h lua.h lauxlib.h \ |
| 111 | ldo.h lstate.h luadebug.h lfunc.h lmem.h lstring.h ltable.h ltm.h \ | 109 | lbuiltin.h ldo.h lstate.h luadebug.h lfunc.h lmem.h lstring.h \ |
| 112 | lundump.h lzio.h lvm.h | 110 | ltable.h ltm.h lundump.h lzio.h lvm.h |
| 113 | lcode.o: lcode.c lcode.h llex.h lobject.h lua.h lzio.h lmem.h \ | 111 | lcode.o: lcode.c /usr/include/stdlib.h lcode.h llex.h lobject.h \ |
| 114 | lopcodes.h lparser.h | 112 | llimits.h lua.h lzio.h lopcodes.h lparser.h ldo.h lstate.h luadebug.h \ |
| 113 | lmem.h lstring.h | ||
| 115 | ldblib.o: ldblib.c lauxlib.h lua.h luadebug.h lualib.h | 114 | ldblib.o: ldblib.c lauxlib.h lua.h luadebug.h lualib.h |
| 116 | ldebug.o: ldebug.c lapi.h lobject.h lua.h lauxlib.h ldebug.h \ | 115 | ldebug.o: ldebug.c lapi.h lobject.h llimits.h lua.h lauxlib.h ldebug.h \ |
| 117 | luadebug.h ldo.h lstate.h lfunc.h ltable.h ltm.h | 116 | luadebug.h ldo.h lstate.h lfunc.h ltable.h ltm.h |
| 118 | ldo.o: ldo.c lauxlib.h lua.h ldebug.h lobject.h luadebug.h ldo.h \ | 117 | ldo.o: ldo.c lauxlib.h lua.h ldebug.h lobject.h llimits.h luadebug.h \ |
| 119 | lstate.h lgc.h lmem.h lparser.h lopcodes.h lzio.h lstring.h ltm.h \ | 118 | ldo.h lstate.h lgc.h lmem.h lparser.h lzio.h lstring.h ltm.h \ |
| 120 | lundump.h lvm.h | 119 | lundump.h lvm.h |
| 121 | lfunc.o: lfunc.c lfunc.h lobject.h lua.h lmem.h lstate.h luadebug.h | 120 | lfunc.o: lfunc.c lfunc.h lobject.h llimits.h lua.h lmem.h lstate.h \ |
| 122 | lgc.o: lgc.c ldo.h lobject.h lua.h lstate.h luadebug.h lfunc.h lgc.h \ | 121 | luadebug.h |
| 123 | lmem.h lref.h lstring.h ltable.h ltm.h | 122 | lgc.o: lgc.c ldo.h lobject.h llimits.h lua.h lstate.h luadebug.h \ |
| 123 | lfunc.h lgc.h lmem.h lref.h lstring.h ltable.h ltm.h | ||
| 124 | linit.o: linit.c lua.h lualib.h | 124 | linit.o: linit.c lua.h lualib.h |
| 125 | liolib.o: liolib.c lauxlib.h lua.h luadebug.h lualib.h | 125 | liolib.o: liolib.c lauxlib.h lua.h luadebug.h lualib.h |
| 126 | llex.o: llex.c lauxlib.h lua.h llex.h lobject.h lzio.h lmem.h \ | 126 | llex.o: llex.c lauxlib.h lua.h llex.h lobject.h llimits.h lzio.h \ |
| 127 | lparser.h lopcodes.h lstate.h luadebug.h lstring.h | 127 | lmem.h lparser.h lstate.h luadebug.h lstring.h |
| 128 | lmathlib.o: lmathlib.c lauxlib.h lua.h lualib.h | 128 | lmathlib.o: lmathlib.c lauxlib.h lua.h lualib.h |
| 129 | lmem.o: lmem.c lmem.h lua.h lobject.h lstate.h luadebug.h | 129 | lmem.o: lmem.c lmem.h lua.h lobject.h llimits.h lstate.h luadebug.h |
| 130 | lobject.o: lobject.c lobject.h lua.h | 130 | lobject.o: lobject.c lobject.h llimits.h lua.h |
| 131 | lparser.o: lparser.c lcode.h llex.h lobject.h lua.h lzio.h ldo.h \ | 131 | lparser.o: lparser.c lcode.h llex.h lobject.h llimits.h lua.h lzio.h \ |
| 132 | lstate.h luadebug.h lfunc.h lmem.h lopcodes.h lparser.h lstring.h | 132 | lopcodes.h lparser.h ldo.h lstate.h luadebug.h lfunc.h lmem.h \ |
| 133 | lref.o: lref.c lapi.h lobject.h lua.h lmem.h lref.h lstate.h \ | ||
| 134 | luadebug.h | ||
| 135 | lstate.o: lstate.c lauxlib.h lua.h lbuiltin.h ldo.h lobject.h lstate.h \ | ||
| 136 | luadebug.h lgc.h llex.h lzio.h lmem.h lref.h lstring.h ltm.h | ||
| 137 | lstring.o: lstring.c lmem.h lua.h lobject.h lstate.h luadebug.h \ | ||
| 138 | lstring.h | 133 | lstring.h |
| 134 | lref.o: lref.c lapi.h lobject.h llimits.h lua.h lmem.h lref.h lstate.h \ | ||
| 135 | luadebug.h | ||
| 136 | lstate.o: lstate.c lauxlib.h lua.h lbuiltin.h ldo.h lobject.h \ | ||
| 137 | llimits.h lstate.h luadebug.h lgc.h llex.h lzio.h lmem.h lref.h \ | ||
| 138 | lstring.h ltm.h | ||
| 139 | lstring.o: lstring.c lmem.h lua.h lobject.h llimits.h lstate.h \ | ||
| 140 | luadebug.h lstring.h | ||
| 139 | lstrlib.o: lstrlib.c lauxlib.h lua.h lualib.h | 141 | lstrlib.o: lstrlib.c lauxlib.h lua.h lualib.h |
| 140 | ltable.o: ltable.c lauxlib.h lua.h lmem.h lobject.h lstate.h \ | 142 | ltable.o: ltable.c lauxlib.h lua.h lmem.h lobject.h llimits.h lstate.h \ |
| 141 | luadebug.h ltable.h | 143 | luadebug.h ltable.h |
| 142 | ltm.o: ltm.c lauxlib.h lua.h lmem.h lobject.h lstate.h luadebug.h \ | 144 | ltests.o: ltests.c lapi.h lobject.h llimits.h lua.h lauxlib.h lmem.h \ |
| 143 | ltm.h | 145 | lopcodes.h lstate.h luadebug.h lstring.h ltable.h |
| 144 | lundump.o: lundump.c lauxlib.h lua.h lfunc.h lobject.h lmem.h \ | 146 | ltm.o: ltm.c lauxlib.h lua.h lmem.h lobject.h llimits.h lstate.h \ |
| 145 | lopcodes.h lstring.h lstate.h luadebug.h lundump.h lzio.h | 147 | luadebug.h ltm.h |
| 146 | lvm.o: lvm.c lauxlib.h lua.h ldebug.h lobject.h luadebug.h ldo.h \ | 148 | lua.o: lua.c lua.h luadebug.h lualib.h |
| 147 | lstate.h lfunc.h lgc.h lopcodes.h lstring.h ltable.h ltm.h lvm.h | 149 | lundump.o: lundump.c lauxlib.h lua.h lfunc.h lobject.h llimits.h \ |
| 150 | lmem.h lopcodes.h lstring.h lstate.h luadebug.h lundump.h lzio.h | ||
| 151 | lvm.o: lvm.c lauxlib.h lua.h ldebug.h lobject.h llimits.h luadebug.h \ | ||
| 152 | ldo.h lstate.h lfunc.h lgc.h lopcodes.h lstring.h ltable.h ltm.h \ | ||
| 153 | lvm.h | ||
| 148 | lzio.o: lzio.c lzio.h | 154 | lzio.o: lzio.c lzio.h |
