fix workflow yaml
[RRG-proxmark3.git] / client / deps / liblua / Makefile
blob6207861c36c29248379298fcc61ef4b11d7f46a6
1 MYSRCPATHS =
2 MYINCLUDES = -I.
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
11 SYSCFLAGS=
13 LIB_A= liblua.a
15 # Transition: remove old directories and objects
16 MYCLEANOLDPATH = ../../liblua
18 # Your platform. See PLATS for possible values.
19 PLAT= none
21 PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
23 default: $(PLAT)
25 include ../../../Makefile.host
27 # Convenience targets for popular platforms
28 ALL= all
30 none:
31 @echo "Please do 'make PLATFORM' where PLATFORM is one of these:"
32 @echo " $(PLATS)"
34 aix:
35 $(Q)$(MAKE) $(ALL) CC="xlc" CFLAGS="-O2 -DLUA_USE_POSIX -DLUA_USE_DLOPEN"
37 ansi:
38 $(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_ANSI"
40 bsd:
41 $(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN"
43 freebsd:
44 $(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX"
46 generic: $(ALL)
48 linux:
49 $(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX"
51 macosx:
52 $(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX"
54 mingw:
55 $(Q)$(MAKE) $(ALL)
57 posix:
58 $(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX"
60 solaris:
61 $(Q)$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN -D_REENTRANT"
63 .PHONY: all $(PLATS) default clean depend none