Sha256: 17192336ce9f7e1245217fe7d80f8d4d0d9aade5d8509157711a4ae04d9c7d1c

Contents?: true

Size: 1.38 KB

Versions: 2

Compression:

Stored size: 1.38 KB

Contents

#
# 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.*

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qrtools-1.0.1 ext/qrtools/Makefile.in
qrtools-1.0.0 ext/qrtools/Makefile.in