proxmark3/client/liblua/Makefile

63 lines
1.4 KiB
Makefile
Raw Normal View History

MYSRCPATHS =
MYINCLUDES = -I.
# Lua lib is not ready for C99 style...
#MYCFLAGS = -std=c99 -D_ISOC99_SOURCE
MYCFLAGS =
MYDEFS = -DLUA_COMPAT_ALL $(SYSCFLAGS)
MYSRCS = lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c \
lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c \
ltm.c lundump.c lvm.c lzio.c \
lauxlib.c lbaselib.c lbitlib.c lcorolib.c ldblib.c liolib.c \
lmathlib.c loslib.c lstrlib.c ltablib.c loadlib.c linit.c
2013-05-22 02:23:42 +08:00
SYSCFLAGS=
2013-05-22 02:23:42 +08:00
LIB_A= liblua.a
2013-05-22 02:23:42 +08:00
# Your platform. See PLATS for possible values.
PLAT= none
PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
default: $(PLAT)
include ../../Makefile.host
2013-05-22 02:23:42 +08:00
# Convenience targets for popular platforms
ALL= all
none:
@echo "Please do 'make PLATFORM' where PLATFORM is one of these:"
@echo " $(PLATS)"
aix:
$(Q)$(MAKE) $(ALL) CC="xlc" CFLAGS="-O2 -DLUA_USE_POSIX -DLUA_USE_DLOPEN"
2013-05-22 02:23:42 +08:00
ansi:
$(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_ANSI"
2013-05-22 02:23:42 +08:00
bsd:
$(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN"
2013-05-22 02:23:42 +08:00
freebsd:
$(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX"
2013-05-22 02:23:42 +08:00
generic: $(ALL)
linux:
$(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX"
2013-05-22 02:23:42 +08:00
macosx:
$(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX"
2013-05-22 02:23:42 +08:00
mingw:
$(Q)$(MAKE) $(ALL)
2013-05-22 02:23:42 +08:00
posix:
$(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX"
2013-05-22 02:23:42 +08:00
solaris:
$(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN"
2013-05-22 02:23:42 +08:00
.PHONY: all $(PLATS) default clean depend none