"Fossies" - the Fresh Open Source Software Archive

Member "redis-6.2.5/tests/modules/Makefile" (21 Jul 2021, 1260 Bytes) of package /linux/misc/redis-6.2.5.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile": 6.2.4_vs_6.2.5.

    1 
    2 # find the OS
    3 uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
    4 
    5 ifeq ($(uname_S),Darwin)
    6 	SHOBJ_CFLAGS ?= -W -Wall -dynamic -fno-common -g -ggdb -std=c99 -O2
    7 	SHOBJ_LDFLAGS ?= -bundle -undefined dynamic_lookup
    8 else	# Linux, others
    9 	SHOBJ_CFLAGS ?= -W -Wall -fno-common -g -ggdb -std=c99 -O2
   10 	SHOBJ_LDFLAGS ?= -shared
   11 endif
   12 
   13 # Needed to satisfy __stack_chk_fail_local on Linux with -m32, due to gcc
   14 # -fstack-protector by default. Breaks on FreeBSD so we exclude it.
   15 ifneq ($(uname_S),FreeBSD)
   16     LIBS = -lc
   17 endif
   18 
   19 TEST_MODULES = \
   20     commandfilter.so \
   21     basics.so \
   22     testrdb.so \
   23     fork.so \
   24     infotest.so \
   25     propagate.so \
   26     misc.so \
   27     hooks.so \
   28     blockonkeys.so \
   29     blockonbackground.so \
   30     scan.so \
   31     datatype.so \
   32     auth.so \
   33     keyspace_events.so \
   34     blockedclient.so \
   35     getkeys.so \
   36     test_lazyfree.so \
   37     timer.so \
   38     defragtest.so \
   39     hash.so \
   40     zset.so \
   41     stream.so
   42 
   43 
   44 .PHONY: all
   45 
   46 all: $(TEST_MODULES)
   47 
   48 32bit:
   49 	$(MAKE) CFLAGS="-m32" LDFLAGS="-melf_i386"
   50 
   51 %.xo: %.c ../../src/redismodule.h
   52 	$(CC) -I../../src $(CFLAGS) $(SHOBJ_CFLAGS) -fPIC -c $< -o $@
   53 
   54 %.so: %.xo
   55 	$(LD) -o $@ $< $(SHOBJ_LDFLAGS) $(LDFLAGS) $(LIBS)
   56 
   57 .PHONY: clean
   58 
   59 clean:
   60 	rm -f $(TEST_MODULES) $(TEST_MODULES:.so=.xo)