]> git.sesse.net Git - xml-template/blob - c++0x/Makefile
Add all and clean targets to C++0x makefile.
[xml-template] / c++0x / Makefile
1 CXX=g++
2 CXXFLAGS=-std=gnu++0x -g -Wall $(shell xml2-config --cflags)
3 LDFLAGS=$(shell xml2-config --libs)
4 LIBS=xml-template.o
5
6 BINS=passthru simple clone include attribute attribute2 attribute3 attribute-empty namespace namespace2 structure
7 OBJS=passthru.o simple.o clone.o include.o attribute.o attribute2.o attribute3.o attribute-empty.o namespace.o namespace2.o structure.o xml-template.o
8
9 all: $(BINS)
10
11 clean:
12         $(RM) $(BINS) $(OBJS)
13
14 passthru: passthru.o $(LIBS)
15         $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
16
17 simple: simple.o $(LIBS)
18         $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
19
20 clone: clone.o $(LIBS)
21         $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
22
23 include: include.o $(LIBS)
24         $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
25
26 attribute: attribute.o $(LIBS)
27         $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
28
29 attribute2: attribute2.o $(LIBS)
30         $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
31
32 attribute3: attribute3.o $(LIBS)
33         $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
34
35 attribute-empty: attribute-empty.o $(LIBS)
36         $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
37
38 namespace: namespace.o $(LIBS)
39         $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
40
41 namespace2: namespace2.o $(LIBS)
42         $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
43
44 structure: structure.o $(LIBS)
45         $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)