]> git.sesse.net Git - xml-template/blobdiff - c++0x/Makefile
Add all and clean targets to C++0x makefile.
[xml-template] / c++0x / Makefile
index 979a60f9ad59cf7a3a605e5fff55e14ba41777be..bc6b07f7a7ce5adf648eabeca6d7e916f546b150 100644 (file)
@@ -1,6 +1,45 @@
 CXX=g++
 CXXFLAGS=-std=gnu++0x -g -Wall $(shell xml2-config --cflags)
+LDFLAGS=$(shell xml2-config --libs)
+LIBS=xml-template.o
 
-simple: simple.o
-       $(CXX) -o $@ $< $(shell xml2-config --libs)
+BINS=passthru simple clone include attribute attribute2 attribute3 attribute-empty namespace namespace2 structure
+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
 
+all: $(BINS)
+
+clean:
+       $(RM) $(BINS) $(OBJS)
+
+passthru: passthru.o $(LIBS)
+       $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+
+simple: simple.o $(LIBS)
+       $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+
+clone: clone.o $(LIBS)
+       $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+
+include: include.o $(LIBS)
+       $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+
+attribute: attribute.o $(LIBS)
+       $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+
+attribute2: attribute2.o $(LIBS)
+       $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+
+attribute3: attribute3.o $(LIBS)
+       $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+
+attribute-empty: attribute-empty.o $(LIBS)
+       $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+
+namespace: namespace.o $(LIBS)
+       $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+
+namespace2: namespace2.o $(LIBS)
+       $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+
+structure: structure.o $(LIBS)
+       $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)