diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-lang/mujs/files/mujs-0_p20150202-Makefile.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-lang/mujs/files/mujs-0_p20150202-Makefile.patch')
-rw-r--r-- | dev-lang/mujs/files/mujs-0_p20150202-Makefile.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-lang/mujs/files/mujs-0_p20150202-Makefile.patch b/dev-lang/mujs/files/mujs-0_p20150202-Makefile.patch new file mode 100644 index 000000000000..4dca385e3792 --- /dev/null +++ b/dev-lang/mujs/files/mujs-0_p20150202-Makefile.patch @@ -0,0 +1,28 @@ +--- mujs-0_p20150202/Makefile ++++ mujs-0_p20150202/Makefile +@@ -2,23 +2,17 @@ + HDRS := $(wildcard js*.h mujs.h utf.h regex.h) + OBJS := $(SRCS:%.c=build/%.o) + +-prefix ?= /usr/local ++prefix ?= /usr + bindir ?= $(prefix)/bin + incdir ?= $(prefix)/include + libdir ?= $(prefix)/lib + +-CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter ++CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter + + ifeq "$(CC)" "clang" + CFLAGS += -Wunreachable-code + endif + +-ifeq "$(build)" "debug" +-CFLAGS += -g +-else +-CFLAGS += -O2 +-endif +- + default: build build/mujs build/mujsone + + debug: |