3 The scons based build system doesn't handle cross compilation, special
4 compiler flags or (un)installation, so add a simple makefile instead
7 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
9 cpp/core/src/Makefile | 14 ++++++++++++++
10 1 file changed, 14 insertions(+)
12 Index: zxing-2.0/cpp/core/src/Makefile
13 ===================================================================
15 +++ zxing-2.0/cpp/core/src/Makefile
17 +override CXXFLAGS += -I.
18 +SRCS := $(shell find -name '*.cpp')
20 +libzxing.a: $(SRCS:.cpp=.o)
21 + $(AR) $(ARFLAGS) $@ $^
24 + install -D -m 0644 $^ $(DESTDIR)/usr/lib/$^
25 + find -name '*.h' -exec install -m 0644 -D "{}" \
26 + "$(DESTDIR)/usr/include/{}" ";"
29 + rm -f $(DESTDIR)/usr/lib/libzxing.a
30 + rm -rf $(DESTDIR)/usr/include/zxing