2017-04-02 16:50:07 +00:00
|
|
|
SHELL:=bash
|
2017-04-12 19:27:59 +00:00
|
|
|
QUIET:=@
|
2017-04-02 16:50:07 +00:00
|
|
|
|
2016-10-15 22:34:23 +00:00
|
|
|
default: all
|
|
|
|
|
2017-04-12 19:27:59 +00:00
|
|
|
MES_DEBUG:=1
|
|
|
|
CFLAGS:=--std=gnu99 -O0 -g
|
2016-10-15 22:34:23 +00:00
|
|
|
OUT:=out
|
2016-07-09 21:12:25 +00:00
|
|
|
|
2017-04-12 19:27:59 +00:00
|
|
|
SUBDIRS:=\
|
|
|
|
module\
|
|
|
|
src\
|
|
|
|
scaffold\
|
|
|
|
scripts\
|
|
|
|
tests\
|
2016-10-12 21:40:11 +00:00
|
|
|
#
|
|
|
|
|
2017-04-12 19:27:59 +00:00
|
|
|
include make/common.make
|
|
|
|
-include .local.make
|
2016-12-19 18:41:43 +00:00
|
|
|
|
2016-10-15 22:34:23 +00:00
|
|
|
help: help-top
|
|
|
|
|
|
|
|
install: all
|
|
|
|
release: all
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo
|
|
|
|
|
|
|
|
define HELP_TOP
|
|
|
|
Usage: make [OPTION]... [TARGET]...
|
|
|
|
|
|
|
|
Targets:
|
2017-04-12 19:27:59 +00:00
|
|
|
all update everything
|
|
|
|
check run unit tests
|
|
|
|
clean remove all generated stuff
|
|
|
|
dist create tarball in $(TARBALL)
|
|
|
|
distclean also clean configuration
|
|
|
|
maintainer-clean also clean expensive targets [$(strip $(MAINTAINER-CLEAN))]
|
|
|
|
mescc compile cc/main.c to a.out
|
|
|
|
install install in $$(DESTDIR)$$(PREFIX) [$(DESTDIR)$(PREFIX)]
|
|
|
|
release make a release
|
|
|
|
update-hash update hash in guix.scm
|
2016-10-15 22:34:23 +00:00
|
|
|
endef
|
|
|
|
export HELP_TOP
|
|
|
|
help-top:
|
|
|
|
@echo "$$HELP_TOP"
|