Loki/Makefile
lfittl 85a490c387 - Various makefile improvements (better mingw support, easier to add new sources)
- Include loki/StrongPtr.hpp, not Loki/StrongPtr.hpp (test/SmartPtr)


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@638 7ec92016-0320-0410-acc4-a06ded1c099a
2006-04-18 07:29:41 +00:00

37 lines
775 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
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