]> git.sesse.net Git - xml-template/blobdiff - c++0x/Makefile
Add a passthru test for C++0x.
[xml-template] / c++0x / Makefile
index 2d8850d9f5b591030738262457a4cc09c2e441c5..9c74fc073ec6d096ca70b2edcb774334dafca50e 100644 (file)
@@ -1,7 +1,11 @@
 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)