aboutsummaryrefslogtreecommitdiff
path: root/perl/Makefile
blob: 832668dd1559a6e5ec24da9495970ee5a67e7009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
makefiles = local.mk

GLOBAL_CXXFLAGS += -g -Wall -std=c++2a

# A convenience for concurrent development of Nix and its Perl bindings.
# Not needed in a standalone build of the Perl bindings.
ifneq ("$(wildcard ../src)", "")
  GLOBAL_CXXFLAGS += -I ../src
endif

-include Makefile.config

OPTIMIZE = 1

ifeq ($(OPTIMIZE), 1)
  GLOBAL_CXXFLAGS += -O3
else
  GLOBAL_CXXFLAGS += -O0
endif

include mk/lib.mk