From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Daniel Lemos Date: Tue, 15 Mar 2022 13:30:11 -0300 Subject: [PATCH] Add a serenity target to the makefile Co-Authored-By: Gunnar Beutner Co-Authored-By: Javier Alvarez Co-Authored-By: Larkin <45925460+larb0b@users.noreply.github.com> Co-Authored-By: Linus Groh Co-Authored-By: Noah Rosamilia --- src/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index b7711963bccdba050b375e5a5ec3978312bafbeb..f7f304d32b6ed496f5891b26c7957e127850653f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -30,7 +30,7 @@ CMCFLAGS= # == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE ======= -PLATS= guess aix bsd c89 freebsd generic ios linux linux-readline macosx mingw posix solaris +PLATS= guess aix bsd c89 freebsd generic ios linux linux-readline macosx mingw posix solaris serenity LUA_A= liblua.a CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o @@ -143,6 +143,13 @@ posix: SunOS solaris: $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN -D_REENTRANT" SYSLIBS="-ldl" +serenity: + $(MAKE) $(ALL) \ + CC="$(CC) -std=gnu99" \ + AR="$(AR) rcu" \ + SYSCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE" \ + SYSLIBS="-ldl -lreadline" + # Targets that do not create files (not all makes understand .PHONY). .PHONY: all $(PLATS) help test clean default o a depend echo