X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=c%2B%2B0x%2FMakefile;h=79c4024809ab25a41ad7763f1a25277c1f54f1ec;hb=d9fe760eebc1e40789f2fd769dcba74e3b0dbcbb;hp=2d8850d9f5b591030738262457a4cc09c2e441c5;hpb=59996859ced59ac9fdb307b2eb2130b48d4d4f63;p=xml-template diff --git a/c++0x/Makefile b/c++0x/Makefile index 2d8850d..79c4024 100644 --- a/c++0x/Makefile +++ b/c++0x/Makefile @@ -1,7 +1,34 @@ 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) + +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)