source: trunk/Makefile

Last change on this file was 37, checked in by jtv, 13 years ago

Propagate C/C++ compilation flags; removed less portable gcc options

File size: 816 bytes
Line 
1#! /usr/bin/make
2
3CXXFLAGS=-O2 -g \
4        -Wall \
5        -Werror \
6        -fstrict-aliasing \
7        -pedantic \
8        -W \
9        -Wshadow \
10        -Wreorder \
11        -Wold-style-cast \
12        -Woverloaded-virtual
13CFLAGS=-O2 -g \
14        -Wall \
15        -Werror \
16        -fstrict-aliasing \
17        -pedantic \
18        -W \
19        -Wshadow
20
21# TODO: Rebuild all when include/*.h* changes
22all: library clients doc
23
24clean:
25        make -C src clean
26        make -C clients clean
27        make -C doc clean
28
29distclean: clean
30        make -C src distclean
31        make -C clients distclean
32        make -C doc distclean
33
34library:
35        make -C src CXXFLAGS="$(CXXFLAGS)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -I../include" LDFLAGS="$(LDFLAGS) -L../src"
36
37clients:
38        make -C clients CXXFLAGS="$(CXXFLAGS)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -I../include" LDFLAGS="$(LDFLAGS) -L../src"
39
40doc:
41        make -C doc
42
43.PHONY: all clean distclean library clients doc
44
Note: See TracBrowser for help on using the repository browser.