/
Makefile.in
65 lines (52 loc) · 1.38 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#
# Makefile.in -- a part of libdecodeqr
#
# Copyright(C) 2007 NISHI Takao <zophos@koka-in.org>
# JMA (Japan Medical Association)
# NaCl (Network Applied Communication Laboratory Ltd.)
#
# This is free software with ABSOLUTELY NO WARRANTY.
# You can redistribute and/or modify it under the terms of LGPL.
#
# $Id: Makefile 20 2006-11-20 03:26:52Z zophos $
#
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
includedir = @includedir@
MAJOR=@MAJOR@
MINOR=@MINOR@
TEENY=@TEENY@
BASENAME=libdecodeqr
LIBNAME_A=$(BASENAME).a
SONAME=$(BASENAME).so.$(MAJOR)
LIBNAME_SO=$(BASENAME).so.$(MAJOR).$(MINOR).$(TEENY)
CXX=@CXX@
CPPFLAGS=@CPPFLAGS@ @CXXFLAGS@ -fPIC -c
AR=@AR@
ARFLAGS=rcs
LD=@LD@
LDFLAGS=@LDFLAGS@ -shared -soname $(SONAME)
LIBCV=@LIBCV@
LIBS=$(LIBCV)
INSTALL=@INSTALL@
LDCONFIG=/sbin/ldconfig
LN=@LN@
.SUFFIXES: .cpp .o
.cpp.o:
$(CXX) $(CPPFLAGS) $<
sources:=$(wildcard *.cpp)
objs:=$(patsubst %.cpp,%.o,$(wildcard *.cpp))
dsts:=$(LIBNAME_A) $(LIBNAME_SO) decodeqr.h
all: $(dsts)
$(LIBNAME_A): $(objs)
$(AR) $(ARFLAGS) $@ $(objs)
$(LIBNAME_SO): $(objs)
$(LD) -o $@ $(objs) $(LDFLAGS) $(LIBS)
install: $(dsts)
$(INSTALL) -m 0755 $(LIBNAME_A) $(LIBNAME_SO) $(libdir)
$(LDCONFIG) -n $(libdir)
$(LN) -sf $(libdir)/$(LIBNAME_SO) $(libdir)/$(BASENAME).so
$(INSTALL) -m 0644 decodeqr.h qrerror.h qrtypes.h $(includedir)
clean:
-rm *.a *.o *.so.*