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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
|
#
# Copyright (C) 2025 Linux Studio Plugins Project <https://lsp-plug.in/>
# (C) 2025 Vladimir Sadovnikov <sadko4u@gmail.com>
#
# This file is part of lsp-plugins-clipper
#
# lsp-plugins-clipper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# lsp-plugins-clipper 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with lsp-plugins-clipper. If not, see <https://www.gnu.org/licenses/>.
#
# Installation prefix
ifndef PREFIX
ifeq ($(PLATFORM),Windows)
PREFIX := $(BASEDIR)/INSTALL
else ifeq ($(CROSS_COMPILE),1)
PREFIX := $(BASEDIR)/INSTALL
else
PREFIX := /usr/local
endif
endif
# Path to configuration
ifndef ETCDIR
ifeq ($(PLATFORM),Windows)
ETCDIR := $(PREFIX)/etc
else
ETCDIR := /etc
endif
endif
LIBDIR := $(PREFIX)/lib
BINDIR := $(PREFIX)/bin
INCDIR := $(PREFIX)/include
BUILDDIR := $(BASEDIR)/.build
TARGET_BUILDDIR := $(BUILDDIR)/target
ifeq ($(CROSS_COMPILE),1)
HOST_BUILDDIR := $(BUILDDIR)/host
else
HOST_BUILDDIR := $(TARGET_BUILDDIR)
endif
MODULES := $(BASEDIR)/modules
CONFIG := $(BASEDIR)/.config.mk
# Library prefix
ifndef LIBDIR
LIBDIR := $(PREFIX)/lib
endif
# Binaries prefix
ifndef BINDIR
BINDIR := $(PREFIX)/bin
endif
# Binaries prefix
ifndef INCDIR
INCDIR := $(PREFIX)/include
endif
# Shared resources
ifndef SHAREDDIR
ifeq ($(PLATFORM),Haiku)
SHAREDDIR := $(PREFIX)/data
else
SHAREDDIR := $(PREFIX)/share
endif
endif
# Temporary directory
ifndef TEMPDIR
ifeq ($(PLATFORM),Windows)
TEMPDIR := $(TEMP)
else
TEMPDIR := /tmp
endif
endif
# Set-up list of common variables
PATH_VARS = \
BINDIR \
BUILDDIR \
ETCDIR \
INCDIR \
LIBDIR \
PREFIX \
ROOTDIR \
SHAREDDIR \
TEMPDIR
.PHONY: pathvars
pathvars:
echo "List of available path variables:"
echo " BINDIR location of the binaries"
echo " BUILDDIR location of the build directory"
echo " ETCDIR location of system configuration files"
echo " INCDIR location of the header files"
echo " LIBDIR location of the library"
echo " PREFIX installation prefix for binary files"
echo " SHAREDDIR location of the shared files"
echo " TEMPDIR location of temporary directory"
|