2013-06-01 07:26:32 -04:00
|
|
|
SOFTWARE_MEANT_FOR_SORTIX=1
|
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-06-01 07:26:32 -04:00
|
|
|
|
2014-04-13 16:34:36 -04:00
|
|
|
OPTLEVEL?=$(DEFAULT_OPTLEVEL)
|
2013-06-01 07:26:32 -04:00
|
|
|
CXXFLAGS?=$(OPTLEVEL)
|
|
|
|
|
|
|
|
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra -fno-exceptions -fno-rtti
|
|
|
|
|
2014-04-22 09:26:55 -04:00
|
|
|
BINARY:=mbrfs
|
2013-06-01 07:26:32 -04:00
|
|
|
|
2014-04-22 09:26:55 -04:00
|
|
|
all: $(BINARY)
|
2013-06-01 07:26:32 -04:00
|
|
|
|
2014-04-22 09:26:55 -04:00
|
|
|
.PHONY: all install clean
|
2013-06-01 07:26:32 -04:00
|
|
|
|
|
|
|
install: all
|
|
|
|
mkdir -p $(DESTDIR)$(BINDIR)
|
2014-04-22 09:26:55 -04:00
|
|
|
install $(BINARY) $(DESTDIR)$(BINDIR)
|
2013-06-01 07:26:32 -04:00
|
|
|
|
|
|
|
%: %.cpp
|
|
|
|
$(CXX) -std=gnu++11 $(CPPFLAGS) $(CXXFLAGS) $< -o $@
|
|
|
|
|
|
|
|
clean:
|
2014-04-22 09:26:55 -04:00
|
|
|
rm -f $(BINARY) *.o
|