]> git.sesse.net Git - xml-template/blobdiff - c++0x/Makefile
Add Alternate support to C++0x version, and corresponding attribute2 test.
[xml-template] / c++0x / Makefile
index 2d8850d9f5b591030738262457a4cc09c2e441c5..3f24295a1ffdbeb0ccb930029a650203ebb175fb 100644 (file)
@@ -1,7 +1,28 @@
 CXX=g++
 CXXFLAGS=-std=gnu++0x -g -Wall $(shell xml2-config --cflags)
-OBJS=simple.o xml-template.o
+LDFLAGS=$(shell xml2-config --libs)
+LIBS=xml-template.o
 
-simple: $(OBJS)
-       $(CXX) -o $@ $(OBJS) $(shell xml2-config --libs)
+passthru: passthru.o $(LIBS)
+       $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
 
+simple: simple.o $(LIBS)
+       $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+
+clone: clone.o $(LIBS)
+       $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+
+attribute: attribute.o $(LIBS)
+       $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+
+attribute2: attribute2.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)