2013-03-19 18:28: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
|
2011-12-02 06:27:58 -05:00
|
|
|
|
2014-04-13 16:34:36 -04:00
|
|
|
OPTLEVEL?=$(DEFAULT_OPTLEVEL)
|
2016-02-28 10:42:57 -05:00
|
|
|
CFLAGS?=$(OPTLEVEL)
|
2012-09-10 17:36:15 -04:00
|
|
|
|
2016-02-28 10:42:57 -05:00
|
|
|
CFLAGS:=$(CFLAGS) -Wall -Wextra
|
2012-09-10 17:36:15 -04:00
|
|
|
|
|
|
|
BINARIES:=\
|
2011-12-02 06:27:58 -05:00
|
|
|
benchsyscall \
|
2011-12-02 16:39:18 -05:00
|
|
|
benchctxswitch \
|
2011-12-02 06:27:58 -05:00
|
|
|
|
2012-09-10 17:36:15 -04:00
|
|
|
all: $(BINARIES)
|
|
|
|
|
2014-04-22 09:26:55 -04:00
|
|
|
.PHONY: all install clean
|
2011-12-02 06:27:58 -05:00
|
|
|
|
2012-09-10 17:36:15 -04:00
|
|
|
install: all
|
2013-03-19 18:28:32 -04:00
|
|
|
mkdir -p $(DESTDIR)$(BINDIR)
|
|
|
|
install $(BINARIES) $(DESTDIR)$(BINDIR)
|
2011-12-02 06:27:58 -05:00
|
|
|
|
2016-02-28 10:42:57 -05:00
|
|
|
%: %.c
|
|
|
|
$(CC) -std=gnu11 $(CFLAGS) $(CPPFLAGS) $< -o $@
|
2011-12-02 06:27:58 -05:00
|
|
|
|
|
|
|
clean:
|
2012-09-10 17:36:15 -04:00
|
|
|
rm -f $(BINARIES) *.o
|