imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / mongrel2 / patches / patch-tools_m2sh_Makefile
blobabec82a1fc3a5cad4d4f7c3577710a4777ef2630
1 --- mongrel2-v1.13.0.orig/tools/m2sh/Makefile   2021-12-25 01:03:28.000000000 +0100
2 +++ mongrel2-v1.13.0/tools/m2sh/Makefile        2024-02-22 19:03:20.332596928 +0100
3 @@ -1,7 +1,8 @@
4 -CFLAGS=-DNDEBUG -DNO_LINENOS -pthread -g -I../../src -Isrc -Wall $(OPTFLAGS)
5 +CFLAGS?=
6 +CFLAGS+=-DNDEBUG -DNO_LINENOS -pthread -g -I../../src -Isrc -Wall $(OPTFLAGS)
7  LIBS=-lzmq -lsqlite3 ../../build/libm2.a $(OPTLIBS)
8  
9 -PREFIX?=/usr/local
10 +PREFIX?=/usr
11  SOURCES=$(wildcard src/*.c src/**/*.c)
12  OBJECTS=$(patsubst %.c,%.o,${SOURCES})
13  TEST_SRC=$(wildcard tests/*.c)
14 @@ -12,7 +13,7 @@ RAGEL_OBJECTS=src/lexer.o src/cli.o
16  $(RAGEL_OBJECTS): CFLAGS += -Wno-unused-const-variable -Wimplicit-fallthrough=0 -Wno-unused-parameter
18 -all: ../lemon/lemon tests build/m2sh
19 +all: ../lemon/lemon build/m2sh
21  dev: CFLAGS=-g -Wall -Wextra -Isrc -I../../src $(OPTFLAGS)
22  dev: all
23 @@ -32,7 +33,7 @@ build/m2sh: ../lemon/lemon ../../build/l
24         $(CC) $(CFLAGS) -o build/m2sh ${OBJECTS} ../../build/libm2.a $(LDFLAGS) $(LIBS)
26  ../lemon/lemon: ../lemon/lemon.c
27 -       $(CC) -O2 ../lemon/lemon.c -o ../lemon/lemon
28 +       $(CC) $(CFLAGS) ../lemon/lemon.c -o ../lemon/lemon
30  tests: build/libm2sh.a ${TESTS}
31         sh ./tests/runtests.sh