aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorgrischka <grischka>2017-07-09 12:07:40 +0200
committergrischka <grischka>2017-07-09 12:07:40 +0200
commit9f79b62ec4d84d07cf4a2fba969cb67c8f6ed8e5 (patch)
tree2ed2cab29b41d9b17c434d4a15565fb3e8387345 /Makefile
parent6c468c10f70d74e962591a0584765e42ce1bcaf2 (diff)
downloadtinycc-9f79b62ec4d84d07cf4a2fba969cb67c8f6ed8e5.tar.gz
tinycc-9f79b62ec4d84d07cf4a2fba969cb67c8f6ed8e5.tar.bz2
unsorted adjustments
- configure * use aarch64 instead of arm64 - Makefile * rename the custom include file to "config-extra.mak" * Also avoid "rm -r /*" if $(tccdir) is empty - pp/Makefile * fix .expect generation with gcc - tcc.h * cleanup #defines for _MSC_VER - tccgen.c: * fix const-propagation for &,| * fix anonymous named struct (ms-extension) and enable -fms-extension by default - i386-gen.c * clear VT_DEFSIGN - x86_64-gen.c/win64: * fix passing structs in registers * fix alloca (need to keep "func_scratch" below each alloca area on stack) (This allows to compile a working gnu-make on win64) - tccpp.c * alternative approach to 37999a4fbf3487b363fd0c2f9b7ab622401b202a This is to avoid some slowdown with ## token pasting. * get_tok_str() : return <eof> for TOK_EOF * -funsigned-char: apply to "string" literals as well - tccpe/tools.c: -impdef: support both 32 and 64 bit dlls anyway
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 17 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 565ce2c..ee8dcd9 100644
--- a/Makefile
+++ b/Makefile
@@ -151,8 +151,8 @@ DEF-win += -DCONFIG_TCCDIR="\"$(tccdir)/win32\""
endif
endif
-# include custom cross-compiler configuration (see make help)
--include config-cross.mak
+# include custom configuration (see make help)
+-include config-extra.mak
CORE_FILES = tcc.c tcctools.c libtcc.c tccpp.c tccgen.c tccelf.c tccasm.c tccrun.c
CORE_FILES += tcc.h config.h libtcc.h tcctok.h
@@ -318,7 +318,7 @@ install-win : INSTALL = cp
# uninstall on windows
uninstall-win:
- rm -r "$(tccdir)/"*
+ rm -r "$(tccdir)"
# --------------------------------------------------------------------------
# other stuff
@@ -374,19 +374,24 @@ help:
@echo " build one specific cross compiler for 'TARGET', as in"
@echo " $(TCC_X)"
@echo ""
- @echo "Cross compiler configuration:"
- @echo " make will read custom configuration for cross compilers from a file"
- @echo " 'config-cross.mak' if present. For example for a windows->i386-linux"
- @echo " cross-compiler that expects the linux files in <tccdir>/i386-linux:"
+ @echo "Custom configuration:"
+ @echo " The makefile includes a file 'config-extra.mak' if it is present."
+ @echo " This file may contain some custom configuration. For example:"
+ @echo ""
+ @echo " NATIVE_DEFINES += -D..."
@echo ""
- @echo " ROOT-i386 = {B}/i386-linux"
- @echo " CRT-i386 = {B}/i386-linux/usr/lib"
- @echo " LIB-i386 = {B}/i386-linux/lib:{B}/i386-linux/usr/lib"
- @echo " INC-i386 = {B}/lib/include:{B}/i386-linux/usr/include"
- @echo " DEF-i386 += -D__linux__"
+ @echo " Or for example to configure the search paths for a cross-compiler"
+ @echo " that expects the linux files in <tccdir>/i386-linux:"
+ @echo ""
+ @echo " ROOT-i386 = {B}/i386-linux"
+ @echo " CRT-i386 = {B}/i386-linux/usr/lib"
+ @echo " LIB-i386 = {B}/i386-linux/lib:{B}/i386-linux/usr/lib"
+ @echo " INC-i386 = {B}/lib/include:{B}/i386-linux/usr/include"
+ @echo " DEF-i386 += -D__linux__"
@echo ""
@echo "Other supported make targets:"
@echo " install install-strip test tags ETAGS tar clean distclean help"
+ @echo ""
# --------------------------------------------------------------------------
endif # ($(INCLUDED),no)