diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-01 11:06:59 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-01 11:06:59 +0100 |
commit | c140de7ce26ace99250a70d9576b9ef54518bcb2 (patch) | |
tree | eb6fa3aec55e95c1892884b745662a29652b8082 /mk/Variables.mk | |
parent | 8b995ae58d66333618da67432b921c78b7752862 (diff) | |
download | fbida-c140de7ce26ace99250a70d9576b9ef54518bcb2.tar.gz |
drop legacy build system
Diffstat (limited to 'mk/Variables.mk')
-rw-r--r-- | mk/Variables.mk | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/mk/Variables.mk b/mk/Variables.mk deleted file mode 100644 index 99f787c..0000000 --- a/mk/Variables.mk +++ /dev/null @@ -1,55 +0,0 @@ -# common variables ... -######################################################################## - -# directories -DESTDIR = -srcdir ?= . -prefix ?= /usr/local -bindir = $(DESTDIR)$(prefix)/bin -sbindir = $(DESTDIR)$(prefix)/sbin -libdir = $(DESTDIR)$(prefix)/$(LIB) -shrdir = $(DESTDIR)$(prefix)/share -mandir = $(shrdir)/man -locdir = $(shrdir)/locale -appdir = $(shrdir)/applications - -# package + version -empty := -space := $(empty) $(empty) -ifneq ($(wildcard $(srcdir)/VERSION),) - VERSION := $(shell cat $(srcdir)/VERSION) -else - VERSION := 42 -endif -RELTAG := v$(subst .,_,$(VERSION)) - -# programs -CC ?= gcc -CXX ?= g++ -MOC ?= $(if $(QTDIR),$(QTDIR)/bin/moc,moc) - -STRIP ?= -s -INSTALL ?= install -INSTALL_BINARY := $(INSTALL) $(STRIP) -INSTALL_SCRIPT := $(INSTALL) -INSTALL_DATA := $(INSTALL) -m 644 -INSTALL_DIR := $(INSTALL) -d - -# cflags -CFLAGS ?= -g -O2 -CXXFLAGS ?= $(CFLAGS) -CFLAGS += -Wall -Wmissing-prototypes -Wstrict-prototypes \ - -Wpointer-arith -Wunused -CXXFLAGS += -Wall -Wpointer-arith -Wunused - -# add /usr/local to the search path if something is in there ... -ifneq ($(wildcard /usr/local/include/*.h),) - CFLAGS += -I/usr/local/include - LDFLAGS += -L/usr/local/$(LIB) -endif - -# fixup include path for $(srcdir) != "." -ifneq ($(srcdir),.) - CFLAGS += -I. -I$(srcdir) -endif - |