3 # Lua lib requires GNU extensions (implicit declarations of functions): -std=gnu99 or -std=gnu11
4 MYCFLAGS
= -Wno-cast-align
-Wno-bad-function-cast
-Wno-switch-enum
5 MYDEFS
= -DLUA_COMPAT_ALL
$(SYSCFLAGS
)
6 MYSRCS
= lapi.c lauxlib.c lbaselib.c lcode.c lcorolib.c lctype.c ldblib.c ldebug.c ldo.c ldump.c \
7 lfunc.c lgc.c linit.c liolib.c llex.c lmathlib.c lmem.c loadlib.c lobject.c lopcodes.c \
8 loslib.c lparser.c lstate.c lstring.c lstrlib.c ltable.c ltablib.c ltm.c lundump.c \
9 lutf8lib.c lvm.c lzio.c
15 # Transition: remove old directories and objects
16 MYCLEANOLDPATH
= ..
/..
/liblua
18 # Your platform. See PLATS for possible values.
21 PLATS
= aix ansi bsd freebsd generic linux macosx mingw posix solaris
25 include ..
/..
/..
/Makefile.host
27 # Convenience targets for popular platforms
31 @echo
"Please do 'make PLATFORM' where PLATFORM is one of these:"
35 $(Q
)$(MAKE
) $(ALL
) CC
="xlc" CFLAGS
="-O2 -DLUA_USE_POSIX -DLUA_USE_DLOPEN"
38 $(Q
)$(MAKE
) $(ALL
) SYSCFLAGS
="-DLUA_ANSI"
41 $(Q
)$(MAKE
) $(ALL
) SYSCFLAGS
="-DLUA_USE_POSIX -DLUA_USE_DLOPEN"
44 $(Q
)$(MAKE
) $(ALL
) SYSCFLAGS
="-DLUA_USE_LINUX"
49 $(Q
)$(MAKE
) $(ALL
) SYSCFLAGS
="-DLUA_USE_LINUX"
52 $(Q
)$(MAKE
) $(ALL
) SYSCFLAGS
="-DLUA_USE_MACOSX"
58 $(Q
)$(MAKE
) $(ALL
) SYSCFLAGS
="-DLUA_USE_POSIX"
61 $(Q
)$(MAKE
) $(ALL
) SYSCFLAGS
="-DLUA_USE_POSIX -DLUA_USE_DLOPEN -D_REENTRANT"
63 .PHONY
: all $(PLATS
) default
clean depend none