2006-04-18 07:29:41 +00:00
|
|
|
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
|
2006-05-20 09:37:54 +00:00
|
|
|
all: build-static build-shared check
|
2006-03-02 21:19:41 +00:00
|
|
|
build-static:
|
|
|
|
$(MAKE) -C src build-static
|
2005-09-24 23:08:48 +00:00
|
|
|
|
2006-03-02 21:19:41 +00:00
|
|
|
build-shared:
|
|
|
|
$(MAKE) -C src build-shared
|
|
|
|
|
2006-04-18 07:29:41 +00:00
|
|
|
check: build-shared
|
2006-01-04 23:35:09 +00:00
|
|
|
$(MAKE) -C test
|
2005-09-24 23:08:48 +00:00
|
|
|
|
2006-04-18 07:29:41 +00:00
|
|
|
clean:
|
|
|
|
$(MAKE) -C src clean
|
|
|
|
$(MAKE) -C test clean
|
2006-04-04 23:15:10 +00:00
|
|
|
|
2006-04-18 07:29:41 +00:00
|
|
|
distclean: clean
|
|
|
|
$(MAKE) -C src distclean
|
2005-09-24 23:08:48 +00:00
|
|
|
|
2006-04-18 07:29:41 +00:00
|
|
|
ifneq ($(OS),Windows)
|
|
|
|
export prefix ?= /usr
|
2006-03-02 21:19:41 +00:00
|
|
|
|
2006-04-18 07:29:41 +00:00
|
|
|
.PHONY: install install-static
|
|
|
|
install:
|
|
|
|
$(MAKE) -C src install-static
|
|
|
|
$(MAKE) -C src install-shared
|
|
|
|
$(MAKE) -C include install
|
2006-01-11 00:02:57 +00:00
|
|
|
|
2006-04-18 07:29:41 +00:00
|
|
|
install-static:
|
|
|
|
$(MAKE) -C src install-static
|
|
|
|
$(MAKE) -C include install
|
|
|
|
endif
|