2013-03-16 17:40:02 -04:00
|
|
|
SOFTWARE_MEANT_FOR_SORTIX=1
|
2015-01-23 08:52:29 -05:00
|
|
|
include ../build-aux/platform.mak
|
2013-03-16 17:40:02 -04:00
|
|
|
include ../build-aux/compiler.mak
|
|
|
|
include ../build-aux/version.mak
|
|
|
|
include ../build-aux/dirs.mak
|
|
|
|
|
|
|
|
OPTLEVEL?=-g -O2
|
|
|
|
CXXFLAGS?=$(OPTLEVEL)
|
|
|
|
|
2017-02-11 11:29:51 -05:00
|
|
|
CXXFLAGS:=$(CXXFLAGS) -std=gnu++11 -Wall -Wextra -fno-exceptions -fno-rtti -msse -msse2
|
2013-03-16 17:40:02 -04:00
|
|
|
|
|
|
|
BINARY:=trianglix
|
|
|
|
|
|
|
|
LIBS:=-ldispd
|
|
|
|
|
|
|
|
all: $(BINARY)
|
|
|
|
|
|
|
|
.PHONY: all install uninstall clean
|
|
|
|
|
|
|
|
install: all
|
|
|
|
mkdir -p $(DESTDIR)$(BINDIR)
|
|
|
|
install $(BINARY) $(DESTDIR)$(BINDIR)
|
|
|
|
|
|
|
|
%: %.cpp
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $< -o $@ $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(BINARY) *.o
|