1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00
sortix--sortix/bench/Makefile

34 lines
594 B
Makefile
Raw Normal View History

SOFTWARE_MEANT_FOR_SORTIX=1
2012-09-10 17:36:15 -04:00
include ../compiler.mak
include ../version.mak
include ../dirs.mak
OPTLEVEL?=$(DEFAULT_OPTLEVEL)
CXXFLAGS?=$(OPTLEVEL)
2012-09-10 17:36:15 -04:00
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra -fno-exceptions -fno-rtti
BINARIES:=\
benchsyscall \
benchctxswitch \
INSTALLBINARIES:=$(addprefix $(DESTDIR)$(BINDIR)/,$(BINARIES))
2012-09-10 17:36:15 -04:00
all: $(BINARIES)
.PHONY: all install uninstall clean
2012-09-10 17:36:15 -04:00
install: all
mkdir -p $(DESTDIR)$(BINDIR)
install $(BINARIES) $(DESTDIR)$(BINDIR)
2012-09-10 17:36:15 -04:00
uninstall:
rm -f $(INSTALLBINARIES)
%: %.cpp
$(CXX) -std=gnu++11 $(CPPFLAGS) $(CXXFLAGS) $< -o $@
clean:
2012-09-10 17:36:15 -04:00
rm -f $(BINARIES) *.o