"Fossies" - the Fresh Open Source Software Archive

Member "redis-6.0.8/tests/modules/Makefile" (10 Sep 2020, 926 Bytes) of package /linux/misc/redis-6.0.8.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.0.7_vs_6.0.8.

    1 
    2 # find the OS
    3 uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
    4 
    5 # Compile flags for linux / osx
    6 ifeq ($(uname_S),Linux)
    7 	SHOBJ_CFLAGS ?= -W -Wall -fno-common -g -ggdb -std=c99 -O2
    8 	SHOBJ_LDFLAGS ?= -shared
    9 else
   10 	SHOBJ_CFLAGS ?= -W -Wall -dynamic -fno-common -g -ggdb -std=c99 -O2
   11 	SHOBJ_LDFLAGS ?= -bundle -undefined dynamic_lookup
   12 endif
   13 
   14 TEST_MODULES = \
   15     commandfilter.so \
   16     testrdb.so \
   17     fork.so \
   18     infotest.so \
   19     propagate.so \
   20     misc.so \
   21     hooks.so \
   22     blockonkeys.so \
   23     scan.so \
   24     datatype.so \
   25     auth.so \
   26     keyspace_events.so \
   27     blockedclient.so
   28 
   29 
   30 .PHONY: all
   31 
   32 all: $(TEST_MODULES)
   33 
   34 32bit:
   35 	$(MAKE) CFLAGS="-m32" LDFLAGS="-melf_i386"
   36 
   37 %.xo: %.c ../../src/redismodule.h
   38 	$(CC) -I../../src $(CFLAGS) $(SHOBJ_CFLAGS) -fPIC -c $< -o $@
   39 
   40 %.so: %.xo
   41 	$(LD) -o $@ $< $(SHOBJ_LDFLAGS) $(LDFLAGS) $(LIBS) -lc
   42 
   43 .PHONY: clean
   44 
   45 clean:
   46 	rm -f $(TEST_MODULES) $(TEST_MODULES:.so=.xo)