3c880bbb56
* libc/libc-mes.c: New file. Contents from module/mes/libc.mes, module/mes/libc-i386.mes. * libc/libc-gcc.c: Rename from libc/mlibc.c, include libc/mstart.c * libc/mstart.c: Remove. * module/mes/libc-i386.mes: Remove. * module/mes/libc-i386.scm: Remove. * module/mes/libc.mes: Remove. * module/mes/libc.scm: Remove. * GNUmakefile (CFLAGS): Include libc-gcc.c (WAS: mlibc.c). * make/bin-mlibc.make (C_FLAGS): Remove start.c include. * make/mescc-guile.make: Rewrite using compile, link. * make/mescc-mes.make: Likewise. * scaffold/m.c: Update.
50 lines
915 B
Makefile
50 lines
915 B
Makefile
SHELL:=bash
|
|
export SHELL
|
|
.export: SHELL
|
|
QUIET:=@
|
|
|
|
default: all
|
|
|
|
MES_DEBUG:=1
|
|
CFLAGS:=--std=gnu99 -O0 -g --include libc-gcc.c
|
|
OUT:=out
|
|
|
|
SUBDIRS:=\
|
|
module\
|
|
src\
|
|
scaffold\
|
|
scripts\
|
|
tests\
|
|
tinycc\
|
|
#
|
|
|
|
include make/common.make
|
|
-include .local.make
|
|
|
|
help: help-top
|
|
|
|
install: all
|
|
release: all
|
|
|
|
help:
|
|
@echo
|
|
|
|
define HELP_TOP
|
|
Usage: make [OPTION]... [TARGET]...
|
|
|
|
Targets:
|
|
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
|
|
endef
|
|
export HELP_TOP
|
|
help-top:
|
|
@echo "$$HELP_TOP"
|