Fixes #2128. Based on @infinity0's commit.

This commit is contained in:
Dominik Picheta 2016-06-05 14:30:47 +01:00
commit 9d001d207e
2 changed files with 22 additions and 22 deletions

View file

@ -1,13 +1,13 @@
#? stdtmpl(subsChar='?') | standard
#proc generateMakefile(c: ConfigData): string =
#proc generateMakefile(c: ConfigData): string =
# result = "# Generated from niminst\n" &
# "# Template is in tools/niminst/makefile.tmpl\n" &
# "# To regenerate run ``niminst csource`` or ``koch csource``\n"
CC = gcc
LINKER = gcc
COMP_FLAGS = ?{c.ccompiler.flags}
LINK_FLAGS = ?{c.linker.flags}
COMP_FLAGS = $(CPPFLAGS) $(CFLAGS) ?{c.ccompiler.flags}
LINK_FLAGS = $(LDFLAGS) ?{c.linker.flags}
binDir = ?{firstBinPath(c).toUnix}
koch := $(shell sh -c 'test -s ../koch.nim && echo "yes"')