File: Makefile.flext

package info (click to toggle)
pd-flext 0.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,960 kB
  • sloc: cpp: 12,978; makefile: 223; sh: 149
file content (68 lines) | stat: -rw-r--r-- 1,807 bytes parent folder | download | duplicates (2)
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
66
67
68
## pd-lib-builder based Makefile for Flext externals
#
# instead of calling '.../flext/build.sh pd gcc'
# just do 'make -f .../Makefile.flext'

##
# © 2016, IOhannes m zmölnig
#
# This package 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; either version 2 of the License, or
# (at your option) any later version.
#
# This package 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 General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>
##

ifndef PKGINFO
PKGINFO=package.txt
endif
ifneq ($(PKGINFO),)
include $(PKGINFO)
endif
ifdef BUILDDIR
-include $(BUILDDIR)/config-lnx.def
-include $(BUILDDIR)/gnumake-lnx-gcc.inc
endif

ifdef DEBUG
cflags += -D_DEBUG
else
cflags += -DNDEBUG
endif

SRCDIR ?= .
PKG_CONFIG ?= pkg-config

lib.name = $(NAME)

$(NAME).class.sources = $(addprefix $(SRCDIR)/, $(SRCS))

ifneq ($(filter-out 32,$(floatsize)),)
 pd-flext=pd64-flext
else
 pd-flext=pd-flext
endif



cflags += $(INCPATH) $(DEFS) $(shell $(PKG_CONFIG) --cflags $(pd-flext)) $(UFLAGS)
ldflags += $(LIBPATH)
ldlibs += $(shell $(PKG_CONFIG) --libs $(pd-flext)) $(LIBS)

ifeq (,$(findstring debug,$(MAKECMDGOALS)))
cflags += $(OFLAGS)
endif

# This Makefile is based on the Makefile from pd-lib-builder written by
# Katja Vetter. You can get it from:
# https://github.com/pure-data/pd-lib-builder

PDLIBBUILDER_DIR=/usr/share/pd-lib-builder/
include $(firstword $(wildcard $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder Makefile.pdlibbuilder))