mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-12 04:26:41 +08:00
64 lines
1.5 KiB
Makefile
64 lines
1.5 KiB
Makefile
MYSRCPATHS =
|
|
MYINCLUDES = -I.
|
|
# Lua lib requires GNU extensions (implicit declarations of functions): -std=gnu99 or -std=gnu11
|
|
MYCFLAGS = -Wno-cast-align -Wno-bad-function-cast -Wno-switch-enum
|
|
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
|
|
|
|
SYSCFLAGS=
|
|
|
|
LIB_A= liblua.a
|
|
|
|
# Transition: remove old directories and objects
|
|
MYCLEANOLDPATH = ../../liblua
|
|
|
|
# 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
|
|
|
|
# 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"
|
|
|
|
ansi:
|
|
$(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_ANSI"
|
|
|
|
bsd:
|
|
$(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN"
|
|
|
|
freebsd:
|
|
$(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX"
|
|
|
|
generic: $(ALL)
|
|
|
|
linux:
|
|
$(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX"
|
|
|
|
macosx:
|
|
$(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX"
|
|
|
|
mingw:
|
|
$(Q)$(MAKE) $(ALL)
|
|
|
|
posix:
|
|
$(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX"
|
|
|
|
solaris:
|
|
$(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN"
|
|
|
|
.PHONY: all $(PLATS) default clean depend none
|