# FlexiPix library
# !version: 1.0.4! !date: 2010-09-19!
#
# Copyright 2010 Stefan Schuermans <stefan schuermans info>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
LIBTARGET=libflexipix
VER=1
VERMIN=0
VERREV=4
SRCS=$(wildcard src/*.c)
EX_SRCS=$(wildcard examples/src/*.c)
CC=gcc
AR=ar
RANLIB=ranlib
INSTALL=install
CFLAGS=-W -Wall -fPIC -O3
DEFINES=-DFLP_VER_MAJ=$(VER) -DFLP_VER_MIN=$(VERMIN) -DFLP_VER_REV=$(VERREV)
INCLUDES=-Iinclude
LDFLAGS=-Llib
LIBS=-lm -lpthread -lflexipix
SRCS_BASE=$(patsubst %.c,%,$(SRCS))
DEPS=$(addsuffix .d,$(SRCS_BASE))
OBJS=$(addsuffix .o,$(SRCS_BASE))
EX_SRCS_BASE=$(patsubst %.c,%,$(EX_SRCS))
EX_DEPS=$(addsuffix .d,$(EX_SRCS_BASE))
EX_OBJS=$(addsuffix .o,$(EX_SRCS_BASE))
EX_TARGETS=$(EX_SRCS_BASE)
LIBTGA = lib/$(LIBTARGET).a
LIBTGSO = lib/$(LIBTARGET).so.$(VER)
LIBTGSOM = $(LIBTGSO).$(VERMIN)
LIBTGSOR = $(LIBTGSOM).$(VERREV)
VERSION = $(VER).$(VERMIN).$(VERREV)