Commit 9aa9cbd5 authored by Takhir Fakhrutdinov's avatar Takhir Fakhrutdinov

Добавили главный makefile

parent 4a9e78fe
PLATFORM=$(shell uname -s|awk -F- '{print $$1}')
GCC_VER=$(shell gcc -dumpversion)
GCC_VER_MAJ=$(shell gcc -dumpversion | cut -f1 -d.)
GCC_VER_MIN=$(shell gcc -dumpversion | cut -f2 -d.)
ifeq ($(PLATFORM),FreeBSD)
MAKE=gmake
RPATH_FREEBSD=$(shell gcc -print-search-dirs | grep libraries | tr -d "= " | awk -F: '{print $2}' | awk -F'/gcc/' '{print $1}')
endif
all: fson gravity sofa_c memcached sofa zve rdjson fte
SUBDIRS = fson gravity sofa_c memcached sofa rdjson zve fte
TESTSUBDIRS = $(filter-out zve, $(SUBDIRS))
.PHONY: subdirs $(SUBDIRS)
subdirs: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
clean:
-for d in $(SUBDIRS); do (cd $$d; $(MAKE) clean ); done
test:
-for d in $(TESTSUBDIRS); do (cd $$d; $(MAKE) test ); done
zve: fson sofa rdjson
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment