diff -u -r lua-5.1.2.orig-patched/src/Makefile lua-5.1.2/src/Makefile
old
|
new
|
|
14 | 14 | RM= rm -f |
15 | 15 | LIBS= -lm $(MYLIBS) |
16 | 16 | |
17 | | MYCFLAGS= |
18 | | MYLDFLAGS=-L/opt/local/lib |
| 17 | MYCFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc " |
| 18 | MYLDFLAGS=-arch i386 -arch ppc -L/opt/local/lib |
19 | 19 | MYLIBS= |
20 | 20 | |
21 | 21 | # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE ========= |
… |
… |
|
81 | 81 | @echo " $(PLATS)" |
82 | 82 | |
83 | 83 | aix: |
84 | | $(MAKE) all CC="xlc" CFLAGS="-O2 -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" MYLDFLAGS=-L/opt/local/lib"-brtl -bexpall" |
| 84 | $(MAKE) all CC="xlc" CFLAGS="-O2 -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" MYLDFLAGS=-arch i386 -arch ppc -L/opt/local/lib"-brtl -bexpall" |
85 | 85 | |
86 | 86 | ansi: |
87 | | $(MAKE) all MYCFLAGS=-DLUA_ANSI |
| 87 | $(MAKE) all MYCFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc "-DLUA_ANSI |
88 | 88 | |
89 | 89 | bsd: |
90 | | $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E" |
| 90 | $(MAKE) all MYCFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc ""-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E" |
91 | 91 | |
92 | 92 | freebsd: |
93 | | $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-Wl,-E -lreadline" |
| 93 | $(MAKE) all MYCFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc ""-DLUA_USE_LINUX" MYLIBS="-Wl,-E -lreadline" |
94 | 94 | |
95 | 95 | generic: |
96 | | $(MAKE) all MYCFLAGS= |
| 96 | $(MAKE) all MYCFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc " |
97 | 97 | |
98 | 98 | linux: |
99 | | $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" |
| 99 | $(MAKE) all MYCFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc "-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" |
100 | 100 | |
101 | 101 | macosx: |
102 | | $(MAKE) all MYCFLAGS="-DLUA_USE_MACOSX -DLUA_USE_READLINE" MYLIBS="-lreadline" |
103 | | # $(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX |
| 102 | $(MAKE) all MYCFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc ""-DLUA_USE_MACOSX -DLUA_USE_READLINE" MYLIBS="-lreadline" |
| 103 | # $(MAKE) all MYCFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc "-DLUA_USE_MACOSX |
104 | 104 | # use this on Mac OS X 10.4 |
105 | 105 | |
106 | 106 | mingw: |
107 | 107 | $(MAKE) "LUA_A=lua51.dll" "LUA_T=lua.exe" \ |
108 | 108 | "AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \ |
109 | | "MYCFLAGS=-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-L/opt/local/lib-s" lua.exe |
| 109 | "MYCFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc "-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-arch i386 -arch ppc -L/opt/local/lib-s" lua.exe |
110 | 110 | $(MAKE) "LUAC_T=luac.exe" luac.exe |
111 | 111 | |
112 | 112 | posix: |
113 | | $(MAKE) all MYCFLAGS=-DLUA_USE_POSIX |
| 113 | $(MAKE) all MYCFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc "-DLUA_USE_POSIX |
114 | 114 | |
115 | 115 | solaris: |
116 | | $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" |
| 116 | $(MAKE) all MYCFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc ""-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" |
117 | 117 | |
118 | 118 | # list targets that do not create files (but not all makes understand .PHONY) |
119 | 119 | .PHONY: all $(PLATS) default o a clean depend echo none |