From 82ad80deace5b5b5fd3ff2be7a28ebed97ca277e Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Sat, 11 Feb 2012 18:12:28 +0000 Subject: Fix Examples. --- debian/additions/examples/c++/debian.Makefile | 5 +++++ debian/additions/examples/c/debian.Makefile | 5 +++++ debian/additions/sample.c++.Makefile | 15 --------------- debian/additions/sample.c.Makefile | 15 --------------- debian/libconfig++-dev.examples | 6 ++++-- debian/libconfig-dev.examples | 5 +++-- 6 files changed, 17 insertions(+), 34 deletions(-) create mode 100644 debian/additions/examples/c++/debian.Makefile create mode 100644 debian/additions/examples/c/debian.Makefile delete mode 100644 debian/additions/sample.c++.Makefile delete mode 100644 debian/additions/sample.c.Makefile diff --git a/debian/additions/examples/c++/debian.Makefile b/debian/additions/examples/c++/debian.Makefile new file mode 100644 index 0000000..bcd48bb --- /dev/null +++ b/debian/additions/examples/c++/debian.Makefile @@ -0,0 +1,5 @@ +all: example1 example2 example3 example4 + +LOADLIBES += $(shell pkg-config libconfig++ --libs) +CXXFLAGS += -Wall +CXXFLAGS += -O2 diff --git a/debian/additions/examples/c/debian.Makefile b/debian/additions/examples/c/debian.Makefile new file mode 100644 index 0000000..a5e28bd --- /dev/null +++ b/debian/additions/examples/c/debian.Makefile @@ -0,0 +1,5 @@ +all: example1 example2 example3 + +LOADLIBES += $(shell pkg-config libconfig --libs) +CFLAGS += -Wall +CFLAGS += -O2 diff --git a/debian/additions/sample.c++.Makefile b/debian/additions/sample.c++.Makefile deleted file mode 100644 index 0d9cef2..0000000 --- a/debian/additions/sample.c++.Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# Makefile for libconfig++ - examples - - -sample1: sample1.cpp - $(CC) -o $@ -lconfig++ -lconfig $< - -sample2: sample2.cpp - $(CC) -o $@ -lconfig++ -lconfig $< - -sample3: sample3.cpp - $(CC) -o $@ -lconfig++ -lconfig $< - - -stub: stubcpp.cpp - $(CC) -o $@ -lconfig++ -lconfig $< diff --git a/debian/additions/sample.c.Makefile b/debian/additions/sample.c.Makefile deleted file mode 100644 index bf2f8f5..0000000 --- a/debian/additions/sample.c.Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# Makefile for libconfig - examples - - -sample1: sample1.c - $(CC) -o $@ -lconfig $< - -sample2: sample2.c - $(CC) -o $@ -lconfig $< - -sample3: sample3.c - $(CC) -o $@ -lconfig $< - - -stub: stub.c - $(CC) -o $@ -lconfig $< diff --git a/debian/libconfig++-dev.examples b/debian/libconfig++-dev.examples index b2c7675..4247368 100644 --- a/debian/libconfig++-dev.examples +++ b/debian/libconfig++-dev.examples @@ -1,2 +1,4 @@ -samples/c++/*.cpp -debian/additions/sample.c++.Makefile +examples/c+/example.cfg +examples/c+/invalid.cfg +examples/c+/example*.cpp +debian/additions/examples/c++/debian.Makefile diff --git a/debian/libconfig-dev.examples b/debian/libconfig-dev.examples index 306ccd5..af50e71 100644 --- a/debian/libconfig-dev.examples +++ b/debian/libconfig-dev.examples @@ -1,2 +1,3 @@ -samples/c/*.c -debian/additions/sample.c.Makefile \ No newline at end of file +examples/c/example.cfg +examples/c/example*.c +debian/additions/examples/c/debian.Makefile -- cgit v1.2.3