Loki/Makefile
syntheticpp ad36f152b3 also build the tests by default, so we will get more compilations/tests on different machines and maybe more bug reports
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@652 7ec92016-0320-0410-acc4-a06ded1c099a
2006-05-20 09:37:54 +00:00

37 lines
781 B
Makefile
Executable file

export VERSION = 0.1.5
export OS ?= $(shell uname -s)
export CXXWARNFLAGS = -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic
export CXXFLAGS = $(CXXWARNFLAGS) -g -O2
.PHONY: all build-static build-shared check clean distclean
all: build-static build-shared check
build-static:
$(MAKE) -C src build-static
build-shared:
$(MAKE) -C src build-shared
check: build-shared
$(MAKE) -C test
clean:
$(MAKE) -C src clean
$(MAKE) -C test clean
distclean: clean
$(MAKE) -C src distclean
ifneq ($(OS),Windows)
export prefix ?= /usr
.PHONY: install install-static
install:
$(MAKE) -C src install-static
$(MAKE) -C src install-shared
$(MAKE) -C include install
install-static:
$(MAKE) -C src install-static
$(MAKE) -C include install
endif