mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
28 lines
546 B
Makefile
28 lines
546 B
Makefile
SOFTWARE_MEANT_FOR_SORTIX=1
|
|
include ../build-aux/platform.mak
|
|
include ../build-aux/compiler.mak
|
|
include ../build-aux/version.mak
|
|
include ../build-aux/dirs.mak
|
|
|
|
OPTLEVEL?=-g -O2
|
|
CXXFLAGS?=$(OPTLEVEL)
|
|
|
|
CXXFLAGS:=$(CXXFLAGS) -std=gnu++11 -Wall -Wextra -fno-exceptions -fno-rtti -msse -msse2
|
|
|
|
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
|