diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-18 15:18:35 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-18 15:18:35 -0300 |
| commit | 0b00e7f1a20b5c4c3f21aaf163818335d0d61928 (patch) | |
| tree | c0950f44c82d0fe3a70c6f5c3671490d36740464 /makefile | |
| parent | b7ed502deaaab48c8794314e8594b0511dfa34d8 (diff) | |
| download | lua-0b00e7f1a20b5c4c3f21aaf163818335d0d61928.tar.gz lua-0b00e7f1a20b5c4c3f21aaf163818335d0d61928.tar.bz2 lua-0b00e7f1a20b5c4c3f21aaf163818335d0d61928.zip | |
new macro to convert double->int
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 11 |
1 files changed, 6 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | # | 1 | # |
| 2 | ## $Id: makefile,v 1.32 2001/07/24 22:40:08 roberto Exp $ | 2 | ## $Id: makefile,v 1.34 2002/02/14 21:49:33 roberto Exp roberto $ |
| 3 | ## Makefile | 3 | ## Makefile |
| 4 | ## See Copyright Notice in lua.h | 4 | ## See Copyright Notice in lua.h |
| 5 | # | 5 | # |
| @@ -18,11 +18,12 @@ | |||
| 18 | 18 | ||
| 19 | #EXTRA_H=-DLUA_USER_H='"ltests.h"' | 19 | #EXTRA_H=-DLUA_USER_H='"ltests.h"' |
| 20 | 20 | ||
| 21 | CONFIG = -D_POSIX_SOURCE $(EXTRA_H) | 21 | CONFIG = -D_POSIX_SOURCE $(EXTRA_H) \ |
| 22 | -D'lua_number2int(i,d)=__asm__("fldl %1\nfistpl %0":"=m"(i):"m"(d))' | ||
| 22 | 23 | ||
| 23 | 24 | ||
| 24 | # Compilation parameters | 25 | # Compilation parameters |
| 25 | CC = g++ | 26 | CC = gcc |
| 26 | CWARNS = -Wall -pedantic \ | 27 | CWARNS = -Wall -pedantic \ |
| 27 | -Waggregate-return \ | 28 | -Waggregate-return \ |
| 28 | -Wcast-align \ | 29 | -Wcast-align \ |
| @@ -146,9 +147,9 @@ ltests.o: ltests.c lua.h lapi.h lobject.h llimits.h lauxlib.h lcode.h \ | |||
| 146 | luadebug.h ldo.h lfunc.h lmem.h lstring.h lualib.h | 147 | luadebug.h ldo.h lfunc.h lmem.h lstring.h lualib.h |
| 147 | ltm.o: ltm.c lua.h lobject.h llimits.h lstate.h ltm.h luadebug.h \ | 148 | ltm.o: ltm.c lua.h lobject.h llimits.h lstate.h ltm.h luadebug.h \ |
| 148 | lstring.h ltable.h | 149 | lstring.h ltable.h |
| 149 | lua.o: lua.c lua.h luadebug.h lualib.h | 150 | lua.o: lua.c lua.h lauxlib.h luadebug.h lualib.h |
| 150 | lundump.o: lundump.c lua.h ldebug.h lstate.h lobject.h llimits.h ltm.h \ | 151 | lundump.o: lundump.c lua.h ldebug.h lstate.h lobject.h llimits.h ltm.h \ |
| 151 | luadebug.h lfunc.h lmem.h lopcodes.h lstring.h lundump.h lzio.h | 152 | luadebug.h lfunc.h lmem.h lopcodes.h lstring.h lundump.h lzio.h |
| 152 | lvm.o: lvm.c lua.h lapi.h lobject.h llimits.h ldebug.h lstate.h ltm.h \ | 153 | lvm.o: lvm.c lua.h ldebug.h lstate.h lobject.h llimits.h ltm.h \ |
| 153 | luadebug.h ldo.h lfunc.h lgc.h lopcodes.h lstring.h ltable.h lvm.h | 154 | luadebug.h ldo.h lfunc.h lgc.h lopcodes.h lstring.h ltable.h lvm.h |
| 154 | lzio.o: lzio.c lua.h lzio.h | 155 | lzio.o: lzio.c lua.h lzio.h |
