2014-06-28 10:10:20 -04:00
|
|
|
include ../build-aux/platform.mak
|
|
|
|
include ../build-aux/compiler.mak
|
|
|
|
include ../build-aux/version.mak
|
|
|
|
include ../build-aux/dirs.mak
|
2013-03-26 07:40:43 -04:00
|
|
|
|
2014-04-13 16:34:36 -04:00
|
|
|
OPTLEVEL?=$(DEFAULT_OPTLEVEL)
|
2013-03-26 07:40:43 -04:00
|
|
|
CXXFLAGS?=$(OPTLEVEL)
|
|
|
|
|
2015-07-29 19:08:49 -04:00
|
|
|
CPPFLAGS:=$(CPPFLAGS) -DVERSIONSTR=\"$(VERSION)\"
|
2013-03-26 07:40:43 -04:00
|
|
|
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra -fno-exceptions -fno-rtti
|
|
|
|
|
|
|
|
BINARIES:=\
|
|
|
|
porttix-create \
|
|
|
|
srctix-create \
|
|
|
|
tix \
|
|
|
|
tix-build \
|
|
|
|
tix-collection \
|
|
|
|
tix-execdiff \
|
|
|
|
tix-execpatch \
|
|
|
|
tix-install \
|
|
|
|
tix-rmpatch \
|
|
|
|
|
|
|
|
PROGRAMS:=\
|
|
|
|
$(BINARIES) \
|
|
|
|
tix-eradicate-libtool-la \
|
|
|
|
|
|
|
|
all: $(PROGRAMS)
|
|
|
|
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
%: %.cpp util.h
|
2014-06-19 18:10:53 -04:00
|
|
|
$(CXX) -std=gnu++11 $(CPPFLAGS) $(CXXFLAGS) $< -o $@
|
2013-03-26 07:40:43 -04:00
|
|
|
|
|
|
|
$(DESTDIR)$(BINDIR):
|
|
|
|
mkdir -p $@
|
|
|
|
|
|
|
|
install: all $(DESTDIR)$(BINDIR)
|
|
|
|
install $(PROGRAMS) $(DESTDIR)$(BINDIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(BINARIES)
|