2017-02-25 14:49:47 +03:00
|
|
|
# --------------------------------------------------------------------------
|
2015-07-29 23:53:57 +03:00
|
|
|
#
|
|
|
|
# Tiny C Compiler Makefile
|
|
|
|
#
|
2015-07-29 16:05:56 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
ifndef TOP
|
2017-04-25 22:01:54 +03:00
|
|
|
TOP = .
|
|
|
|
INCLUDED = no
|
2017-02-25 14:49:47 +03:00
|
|
|
endif
|
|
|
|
|
2015-07-29 23:53:57 +03:00
|
|
|
include $(TOP)/config.mak
|
2016-10-17 21:26:38 +03:00
|
|
|
|
2017-05-13 09:59:06 +03:00
|
|
|
ifeq (-$(CC)-$(GCC_MAJOR)-$(findstring $(GCC_MINOR),56789)-,-gcc-4--)
|
|
|
|
CFLAGS += -D_FORTIFY_SOURCE=0
|
2015-07-29 23:53:57 +03:00
|
|
|
endif
|
|
|
|
|
2016-10-01 22:06:33 +03:00
|
|
|
LIBTCC = libtcc.a
|
|
|
|
LIBTCC1 = libtcc1.a
|
|
|
|
LINK_LIBTCC =
|
|
|
|
LIBS =
|
2017-02-25 14:49:47 +03:00
|
|
|
CFLAGS += -I$(TOP)
|
|
|
|
CFLAGS += $(CPPFLAGS)
|
|
|
|
VPATH = $(TOPSRC)
|
2015-07-29 23:53:57 +03:00
|
|
|
|
2016-10-01 22:06:33 +03:00
|
|
|
ifdef CONFIG_WIN32
|
2017-05-13 09:59:06 +03:00
|
|
|
ifneq ($(CONFIG_static),yes)
|
2017-04-25 22:01:54 +03:00
|
|
|
LIBTCC = libtcc$(DLLSUF)
|
2017-02-18 11:55:34 +03:00
|
|
|
LIBTCCDEF = libtcc.def
|
2017-02-13 21:03:29 +03:00
|
|
|
endif
|
2017-02-25 14:49:47 +03:00
|
|
|
CFGWIN = -win
|
2017-04-25 22:01:54 +03:00
|
|
|
NATIVE_TARGET = $(ARCH)-win$(if $(findstring arm,$(ARCH)),ce,32)
|
2015-07-29 23:53:57 +03:00
|
|
|
else
|
2019-12-11 02:37:18 +03:00
|
|
|
LIBS=-lm -lpthread
|
2017-05-13 09:59:06 +03:00
|
|
|
ifneq ($(CONFIG_ldl),no)
|
2016-10-01 22:06:33 +03:00
|
|
|
LIBS+=-ldl
|
|
|
|
endif
|
|
|
|
# make libtcc as static or dynamic library?
|
2017-05-13 09:59:06 +03:00
|
|
|
ifeq ($(CONFIG_static),no)
|
2017-04-25 22:01:54 +03:00
|
|
|
LIBTCC=libtcc$(DLLSUF)
|
|
|
|
export LD_LIBRARY_PATH := $(CURDIR)/$(TOP)
|
2017-05-13 09:59:06 +03:00
|
|
|
ifneq ($(CONFIG_rpath),no)
|
2016-10-01 22:06:33 +03:00
|
|
|
LINK_LIBTCC += -Wl,-rpath,"$(libdir)"
|
|
|
|
endif
|
|
|
|
endif
|
2017-02-25 14:49:47 +03:00
|
|
|
CFGWIN =-unx
|
|
|
|
NATIVE_TARGET = $(ARCH)
|
2017-04-25 22:01:54 +03:00
|
|
|
ifdef CONFIG_OSX
|
|
|
|
NATIVE_TARGET = $(ARCH)-osx
|
|
|
|
LDFLAGS += -flat_namespace -undefined warning
|
|
|
|
export MACOSX_DEPLOYMENT_TARGET := 10.2
|
|
|
|
endif
|
2015-07-29 23:53:57 +03:00
|
|
|
endif
|
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
# run local version of tcc with local libraries and includes
|
|
|
|
TCCFLAGS-unx = -B$(TOP) -I$(TOPSRC)/include -I$(TOPSRC) -I$(TOP)
|
|
|
|
TCCFLAGS-win = -B$(TOPSRC)/win32 -I$(TOPSRC)/include -I$(TOPSRC) -I$(TOP) -L$(TOP)
|
|
|
|
TCCFLAGS = $(TCCFLAGS$(CFGWIN))
|
|
|
|
TCC = $(TOP)/tcc$(EXESUF) $(TCCFLAGS)
|
2017-04-25 22:01:54 +03:00
|
|
|
ifdef CONFIG_OSX
|
|
|
|
TCCFLAGS += -D_ANSI_SOURCE
|
|
|
|
endif
|
2017-02-25 14:49:47 +03:00
|
|
|
|
2016-10-05 19:34:17 +03:00
|
|
|
CFLAGS_P = $(CFLAGS) -pg -static -DCONFIG_TCC_STATIC -DTCC_PROFILE
|
2017-04-25 22:01:54 +03:00
|
|
|
LIBS_P = $(LIBS)
|
2016-10-05 19:34:17 +03:00
|
|
|
LDFLAGS_P = $(LDFLAGS)
|
|
|
|
|
2015-07-29 23:53:57 +03:00
|
|
|
CONFIG_$(ARCH) = yes
|
|
|
|
NATIVE_DEFINES_$(CONFIG_i386) += -DTCC_TARGET_I386
|
2017-02-20 20:58:08 +03:00
|
|
|
NATIVE_DEFINES_$(CONFIG_x86_64) += -DTCC_TARGET_X86_64
|
2015-07-29 23:53:57 +03:00
|
|
|
NATIVE_DEFINES_$(CONFIG_WIN32) += -DTCC_TARGET_PE
|
2017-04-25 22:01:54 +03:00
|
|
|
NATIVE_DEFINES_$(CONFIG_OSX) += -DTCC_TARGET_MACHO
|
2015-07-29 23:53:57 +03:00
|
|
|
NATIVE_DEFINES_$(CONFIG_uClibc) += -DTCC_UCLIBC
|
2017-04-20 23:01:50 +03:00
|
|
|
NATIVE_DEFINES_$(CONFIG_musl) += -DTCC_MUSL
|
2017-05-13 09:59:06 +03:00
|
|
|
NATIVE_DEFINES_$(CONFIG_libgcc) += -DCONFIG_USE_LIBGCC
|
|
|
|
NATIVE_DEFINES_$(CONFIG_selinux) += -DHAVE_SELINUX
|
2015-07-29 23:53:57 +03:00
|
|
|
NATIVE_DEFINES_$(CONFIG_arm) += -DTCC_TARGET_ARM
|
|
|
|
NATIVE_DEFINES_$(CONFIG_arm_eabihf) += -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT
|
|
|
|
NATIVE_DEFINES_$(CONFIG_arm_eabi) += -DTCC_ARM_EABI
|
|
|
|
NATIVE_DEFINES_$(CONFIG_arm_vfp) += -DTCC_ARM_VFP
|
|
|
|
NATIVE_DEFINES_$(CONFIG_arm64) += -DTCC_TARGET_ARM64
|
2019-06-22 07:13:10 +03:00
|
|
|
NATIVE_DEFINES_$(CONFIG_riscv64) += -DTCC_TARGET_RISCV64
|
2015-07-29 23:53:57 +03:00
|
|
|
NATIVE_DEFINES += $(NATIVE_DEFINES_yes)
|
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
ifeq ($(INCLUDED),no)
|
2017-02-23 10:41:57 +03:00
|
|
|
# --------------------------------------------------------------------------
|
|
|
|
# running top Makefile
|
|
|
|
|
|
|
|
PROGS = tcc$(EXESUF)
|
bcheck cleanup
- revert Makefiles to state before last bcheck additions
Instead, just load bcheck.o explicitly if that is
what is wanted.
- move tcc_add_bcheck() to the <target>-link.c files and
remove revently added arguments. This function is to
support tccelf.c with linking, not for tccgen.c to
support compilation.
- remove -ba option: It said:
"-ba Enable better address checking with bounds checker"
Okay, if it is better then to have it is not an option.
- remove va_copy. It is C99 and we try to stay C89 in tinycc
when possible. For example, MS compilers do not have va_copy.
- win64: revert any 'fixes' to alloca
It was correct as it was before, except for bound_checking
where it was not implemented. This should now work too.
- remove parasitic filename:linenum features
Such feature is already present with rt_printline in
tccrun.c. If it doesn't work it can be fixed.
- revert changes to gen_bounded_ptr_add()
gen_bounded_ptr_add() was working as it should before
(mostly). For the sake of simplicity I switched it to
CDECL. Anyway, FASTCALL means SLOWCALL with tinycc.
In exchange you get one addition which is required for
bounds_cnecking function arguments. The important thing
is to check them *BEFORE* they are loaded into registers.
New function gbound_args() does that.
In any case, code instrumentation with the bounds-check
functions as such now seems to work flawlessly again,
which means when they are inserted as NOPs, any code that
tcc can compile, seems to behave just the same as without
them.
What these functions then do when fully enabled, is a
differnt story. I did not touch this.
2019-12-12 17:45:45 +03:00
|
|
|
TCCLIBS = $(LIBTCC1) $(LIBTCC) $(LIBTCCDEF)
|
2015-07-29 23:53:57 +03:00
|
|
|
TCCDOCS = tcc.1 tcc-doc.html tcc-doc.info
|
|
|
|
|
|
|
|
all: $(PROGS) $(TCCLIBS) $(TCCDOCS)
|
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
# cross compiler targets to build
|
2017-03-28 08:58:42 +03:00
|
|
|
TCC_X = i386 x86_64 i386-win32 x86_64-win32 x86_64-osx arm arm64 arm-wince c67
|
2019-06-22 07:13:10 +03:00
|
|
|
TCC_X += riscv64
|
2017-02-25 14:49:47 +03:00
|
|
|
# TCC_X += arm-fpa arm-fpa-ld arm-vfp arm-eabi
|
2015-07-29 23:53:57 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
# cross libtcc1.a targets to build
|
2017-03-28 08:58:42 +03:00
|
|
|
LIBTCC1_X = i386 x86_64 i386-win32 x86_64-win32 x86_64-osx arm arm64 arm-wince
|
2019-07-16 18:30:04 +03:00
|
|
|
LIBTCC1_X += riscv64
|
2017-02-18 11:55:34 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
PROGS_CROSS = $(foreach X,$(TCC_X),$X-tcc$(EXESUF))
|
various stuff
win32/Makefile ("for cygwin") removed
- On cygwin, the normal ./configure && make can be used with either
cygwin's "GCC for Win32 Toolchain"
./configure --cross-prefix=i686-w64-mingw32-
or with an existing tcc:
./configure --cc=<old-tccdir>/tcc.exe
tcctest.c:
- exclude test_high_clobbers() on _WIN64 (does not work)
tests2/95_bitfield.c:
- use 'signed char' for ARM (where default 'char' is unsigned)
tests:
- remove -I "expr" diff option to allow tests with
busybox-diff.
libtcc.c, tcc.c:
- removed -iwithprefix option. It is supposed to be
combined with -iprefix which we don't have either.
tccgen.c:
- fix assignments and return of 'void', as in
void f() {
void *p, *q;
*p = *q:
return *p;
}
This appears to be allowed but should do nothing.
tcc.h, libtcc.c, tccpp.c:
- Revert "Introduce VIP sysinclude paths which are always searched first"
This reverts commit 1d5e386b0a78393ac6b670c209a185849ec798a1.
The patch was giving tcc's system includes priority over -I which
is not how it should be.
tccelf.c:
- add DT_TEXTREL tag only if text relocations are actually
used (which is likely not the case on x86_64)
- prepare_dynamic_rel(): avoid relocation of unresolved
(weak) symbols
tccrun.c:
- for HAVE_SELINUX, use two mappings to the same (real) file.
(it was so once except the RX mapping wasn't used at all).
tccpe.c:
- fix relocation constant used for x86_64 (by Andrei E. Warentin)
- #ifndef _WIN32 do "chmod 755 ..." to get runnable exes on cygwin.
tccasm.c:
- keep forward asm labels static, otherwise they will endup
in dynsym eventually.
configure, Makefile:
- mingw32: respect ./configure options --bindir --docdir --libdir
- allow overriding tcc when building libtcc1.a and libtcc.def with
make XTCC=<tcc program to use>
- use $(wildcard ...) for install to allow installing just
a cross compiler for example
make cross-arm
make install
- use name <target>-libtcc1.a
build-tcc.bat:
- add options: -clean, -b bindir
2017-10-11 19:13:43 +03:00
|
|
|
LIBTCC1_CROSS = $(foreach X,$(LIBTCC1_X),$X-libtcc1.a)
|
2015-07-29 23:53:57 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
# build cross compilers & libs
|
bcheck cleanup
- revert Makefiles to state before last bcheck additions
Instead, just load bcheck.o explicitly if that is
what is wanted.
- move tcc_add_bcheck() to the <target>-link.c files and
remove revently added arguments. This function is to
support tccelf.c with linking, not for tccgen.c to
support compilation.
- remove -ba option: It said:
"-ba Enable better address checking with bounds checker"
Okay, if it is better then to have it is not an option.
- remove va_copy. It is C99 and we try to stay C89 in tinycc
when possible. For example, MS compilers do not have va_copy.
- win64: revert any 'fixes' to alloca
It was correct as it was before, except for bound_checking
where it was not implemented. This should now work too.
- remove parasitic filename:linenum features
Such feature is already present with rt_printline in
tccrun.c. If it doesn't work it can be fixed.
- revert changes to gen_bounded_ptr_add()
gen_bounded_ptr_add() was working as it should before
(mostly). For the sake of simplicity I switched it to
CDECL. Anyway, FASTCALL means SLOWCALL with tinycc.
In exchange you get one addition which is required for
bounds_cnecking function arguments. The important thing
is to check them *BEFORE* they are loaded into registers.
New function gbound_args() does that.
In any case, code instrumentation with the bounds-check
functions as such now seems to work flawlessly again,
which means when they are inserted as NOPs, any code that
tcc can compile, seems to behave just the same as without
them.
What these functions then do when fully enabled, is a
differnt story. I did not touch this.
2019-12-12 17:45:45 +03:00
|
|
|
cross: $(LIBTCC1_CROSS) $(PROGS_CROSS)
|
2015-07-29 23:53:57 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
# build specific cross compiler & lib
|
various stuff
win32/Makefile ("for cygwin") removed
- On cygwin, the normal ./configure && make can be used with either
cygwin's "GCC for Win32 Toolchain"
./configure --cross-prefix=i686-w64-mingw32-
or with an existing tcc:
./configure --cc=<old-tccdir>/tcc.exe
tcctest.c:
- exclude test_high_clobbers() on _WIN64 (does not work)
tests2/95_bitfield.c:
- use 'signed char' for ARM (where default 'char' is unsigned)
tests:
- remove -I "expr" diff option to allow tests with
busybox-diff.
libtcc.c, tcc.c:
- removed -iwithprefix option. It is supposed to be
combined with -iprefix which we don't have either.
tccgen.c:
- fix assignments and return of 'void', as in
void f() {
void *p, *q;
*p = *q:
return *p;
}
This appears to be allowed but should do nothing.
tcc.h, libtcc.c, tccpp.c:
- Revert "Introduce VIP sysinclude paths which are always searched first"
This reverts commit 1d5e386b0a78393ac6b670c209a185849ec798a1.
The patch was giving tcc's system includes priority over -I which
is not how it should be.
tccelf.c:
- add DT_TEXTREL tag only if text relocations are actually
used (which is likely not the case on x86_64)
- prepare_dynamic_rel(): avoid relocation of unresolved
(weak) symbols
tccrun.c:
- for HAVE_SELINUX, use two mappings to the same (real) file.
(it was so once except the RX mapping wasn't used at all).
tccpe.c:
- fix relocation constant used for x86_64 (by Andrei E. Warentin)
- #ifndef _WIN32 do "chmod 755 ..." to get runnable exes on cygwin.
tccasm.c:
- keep forward asm labels static, otherwise they will endup
in dynsym eventually.
configure, Makefile:
- mingw32: respect ./configure options --bindir --docdir --libdir
- allow overriding tcc when building libtcc1.a and libtcc.def with
make XTCC=<tcc program to use>
- use $(wildcard ...) for install to allow installing just
a cross compiler for example
make cross-arm
make install
- use name <target>-libtcc1.a
build-tcc.bat:
- add options: -clean, -b bindir
2017-10-11 19:13:43 +03:00
|
|
|
cross-%: %-tcc$(EXESUF) %-libtcc1.a ;
|
2015-07-29 23:53:57 +03:00
|
|
|
|
various stuff
win32/Makefile ("for cygwin") removed
- On cygwin, the normal ./configure && make can be used with either
cygwin's "GCC for Win32 Toolchain"
./configure --cross-prefix=i686-w64-mingw32-
or with an existing tcc:
./configure --cc=<old-tccdir>/tcc.exe
tcctest.c:
- exclude test_high_clobbers() on _WIN64 (does not work)
tests2/95_bitfield.c:
- use 'signed char' for ARM (where default 'char' is unsigned)
tests:
- remove -I "expr" diff option to allow tests with
busybox-diff.
libtcc.c, tcc.c:
- removed -iwithprefix option. It is supposed to be
combined with -iprefix which we don't have either.
tccgen.c:
- fix assignments and return of 'void', as in
void f() {
void *p, *q;
*p = *q:
return *p;
}
This appears to be allowed but should do nothing.
tcc.h, libtcc.c, tccpp.c:
- Revert "Introduce VIP sysinclude paths which are always searched first"
This reverts commit 1d5e386b0a78393ac6b670c209a185849ec798a1.
The patch was giving tcc's system includes priority over -I which
is not how it should be.
tccelf.c:
- add DT_TEXTREL tag only if text relocations are actually
used (which is likely not the case on x86_64)
- prepare_dynamic_rel(): avoid relocation of unresolved
(weak) symbols
tccrun.c:
- for HAVE_SELINUX, use two mappings to the same (real) file.
(it was so once except the RX mapping wasn't used at all).
tccpe.c:
- fix relocation constant used for x86_64 (by Andrei E. Warentin)
- #ifndef _WIN32 do "chmod 755 ..." to get runnable exes on cygwin.
tccasm.c:
- keep forward asm labels static, otherwise they will endup
in dynsym eventually.
configure, Makefile:
- mingw32: respect ./configure options --bindir --docdir --libdir
- allow overriding tcc when building libtcc1.a and libtcc.def with
make XTCC=<tcc program to use>
- use $(wildcard ...) for install to allow installing just
a cross compiler for example
make cross-arm
make install
- use name <target>-libtcc1.a
build-tcc.bat:
- add options: -clean, -b bindir
2017-10-11 19:13:43 +03:00
|
|
|
install: ; @$(MAKE) --no-print-directory install$(CFGWIN)
|
|
|
|
install-strip: ; @$(MAKE) --no-print-directory install$(CFGWIN) CONFIG_strip=yes
|
|
|
|
uninstall: ; @$(MAKE) --no-print-directory uninstall$(CFGWIN)
|
2017-02-18 11:55:34 +03:00
|
|
|
|
2017-05-13 09:59:06 +03:00
|
|
|
ifdef CONFIG_cross
|
2017-04-25 22:01:54 +03:00
|
|
|
all : cross
|
|
|
|
endif
|
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
# --------------------------------------------
|
2016-10-01 22:06:33 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
T = $(or $(CROSS_TARGET),$(NATIVE_TARGET),unknown)
|
|
|
|
X = $(if $(CROSS_TARGET),$(CROSS_TARGET)-)
|
2015-07-29 23:53:57 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
DEF-i386 = -DTCC_TARGET_I386
|
|
|
|
DEF-x86_64 = -DTCC_TARGET_X86_64
|
|
|
|
DEF-i386-win32 = -DTCC_TARGET_PE -DTCC_TARGET_I386
|
|
|
|
DEF-x86_64-win32= -DTCC_TARGET_PE -DTCC_TARGET_X86_64
|
2017-03-28 08:58:42 +03:00
|
|
|
DEF-x86_64-osx = -DTCC_TARGET_MACHO -DTCC_TARGET_X86_64
|
2017-02-25 14:49:47 +03:00
|
|
|
DEF-arm-wince = -DTCC_TARGET_PE -DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_VFP -DTCC_ARM_HARDFLOAT
|
jump optimizations
This unifies VT_CMP with VT_JMP(i) by using mostly VT_CMP
with both a positive and a negative jump target list.
Such we can delay putting the non-inverted or inverted jump
until we can see which one is nore suitable (in most cases).
example:
if (a && b || c && d)
e = 0;
before this patch:
a: 8b 45 fc mov 0xfffffffc(%ebp),%eax
d: 83 f8 00 cmp $0x0,%eax
10: 0f 84 11 00 00 00 je 27 <main+0x27>
16: 8b 45 f8 mov 0xfffffff8(%ebp),%eax
19: 83 f8 00 cmp $0x0,%eax
1c: 0f 84 05 00 00 00 je 27 <main+0x27>
22: e9 22 00 00 00 jmp 49 <main+0x49>
27: 8b 45 f4 mov 0xfffffff4(%ebp),%eax
2a: 83 f8 00 cmp $0x0,%eax
2d: 0f 84 11 00 00 00 je 44 <main+0x44>
33: 8b 45 f0 mov 0xfffffff0(%ebp),%eax
36: 83 f8 00 cmp $0x0,%eax
39: 0f 84 05 00 00 00 je 44 <main+0x44>
3f: e9 05 00 00 00 jmp 49 <main+0x49>
44: e9 08 00 00 00 jmp 51 <main+0x51>
49: b8 00 00 00 00 mov $0x0,%eax
4e: 89 45 ec mov %eax,0xffffffec(%ebp)
51: ...
with this patch:
a: 8b 45 fc mov 0xfffffffc(%ebp),%eax
d: 83 f8 00 cmp $0x0,%eax
10: 0f 84 0c 00 00 00 je 22 <main+0x22>
16: 8b 45 f8 mov 0xfffffff8(%ebp),%eax
19: 83 f8 00 cmp $0x0,%eax
1c: 0f 85 18 00 00 00 jne 3a <main+0x3a>
22: 8b 45 f4 mov 0xfffffff4(%ebp),%eax
25: 83 f8 00 cmp $0x0,%eax
28: 0f 84 14 00 00 00 je 42 <main+0x42>
2e: 8b 45 f0 mov 0xfffffff0(%ebp),%eax
31: 83 f8 00 cmp $0x0,%eax
34: 0f 84 08 00 00 00 je 42 <main+0x42>
3a: b8 00 00 00 00 mov $0x0,%eax
3f: 89 45 ec mov %eax,0xffffffec(%ebp)
42: ...
2019-06-22 12:45:35 +03:00
|
|
|
DEF-arm64 = -DTCC_TARGET_ARM64 -Wno-format
|
2017-02-25 14:49:47 +03:00
|
|
|
DEF-c67 = -DTCC_TARGET_C67 -w # disable warnigs
|
|
|
|
DEF-arm-fpa = -DTCC_TARGET_ARM
|
|
|
|
DEF-arm-fpa-ld = -DTCC_TARGET_ARM -DLDOUBLE_SIZE=12
|
|
|
|
DEF-arm-vfp = -DTCC_TARGET_ARM -DTCC_ARM_VFP
|
|
|
|
DEF-arm-eabi = -DTCC_TARGET_ARM -DTCC_ARM_VFP -DTCC_ARM_EABI
|
|
|
|
DEF-arm-eabihf = -DTCC_TARGET_ARM -DTCC_ARM_VFP -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT
|
|
|
|
DEF-arm = $(DEF-arm-eabihf)
|
2019-06-22 07:13:10 +03:00
|
|
|
DEF-riscv64 = -DTCC_TARGET_RISCV64
|
2017-02-25 14:49:47 +03:00
|
|
|
DEF-$(NATIVE_TARGET) = $(NATIVE_DEFINES)
|
2017-02-23 10:41:57 +03:00
|
|
|
|
|
|
|
DEFINES += $(DEF-$T) $(DEF-all)
|
|
|
|
DEFINES += $(if $(ROOT-$T),-DCONFIG_SYSROOT="\"$(ROOT-$T)\"")
|
|
|
|
DEFINES += $(if $(CRT-$T),-DCONFIG_TCC_CRTPREFIX="\"$(CRT-$T)\"")
|
|
|
|
DEFINES += $(if $(LIB-$T),-DCONFIG_TCC_LIBPATHS="\"$(LIB-$T)\"")
|
|
|
|
DEFINES += $(if $(INC-$T),-DCONFIG_TCC_SYSINCLUDEPATHS="\"$(INC-$T)\"")
|
|
|
|
DEFINES += $(DEF-$(or $(findstring win,$T),unx))
|
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
ifneq ($(X),)
|
2017-02-23 10:41:57 +03:00
|
|
|
ifeq ($(CONFIG_WIN32),yes)
|
bcheck cleanup
- revert Makefiles to state before last bcheck additions
Instead, just load bcheck.o explicitly if that is
what is wanted.
- move tcc_add_bcheck() to the <target>-link.c files and
remove revently added arguments. This function is to
support tccelf.c with linking, not for tccgen.c to
support compilation.
- remove -ba option: It said:
"-ba Enable better address checking with bounds checker"
Okay, if it is better then to have it is not an option.
- remove va_copy. It is C99 and we try to stay C89 in tinycc
when possible. For example, MS compilers do not have va_copy.
- win64: revert any 'fixes' to alloca
It was correct as it was before, except for bound_checking
where it was not implemented. This should now work too.
- remove parasitic filename:linenum features
Such feature is already present with rt_printline in
tccrun.c. If it doesn't work it can be fixed.
- revert changes to gen_bounded_ptr_add()
gen_bounded_ptr_add() was working as it should before
(mostly). For the sake of simplicity I switched it to
CDECL. Anyway, FASTCALL means SLOWCALL with tinycc.
In exchange you get one addition which is required for
bounds_cnecking function arguments. The important thing
is to check them *BEFORE* they are loaded into registers.
New function gbound_args() does that.
In any case, code instrumentation with the bounds-check
functions as such now seems to work flawlessly again,
which means when they are inserted as NOPs, any code that
tcc can compile, seems to behave just the same as without
them.
What these functions then do when fully enabled, is a
differnt story. I did not touch this.
2019-12-12 17:45:45 +03:00
|
|
|
DEF-win += -DTCC_LIBTCC1="\"$(X)libtcc1.a\""
|
|
|
|
DEF-unx += -DTCC_LIBTCC1="\"lib/$(X)libtcc1.a\""
|
2017-02-23 10:41:57 +03:00
|
|
|
else
|
bcheck cleanup
- revert Makefiles to state before last bcheck additions
Instead, just load bcheck.o explicitly if that is
what is wanted.
- move tcc_add_bcheck() to the <target>-link.c files and
remove revently added arguments. This function is to
support tccelf.c with linking, not for tccgen.c to
support compilation.
- remove -ba option: It said:
"-ba Enable better address checking with bounds checker"
Okay, if it is better then to have it is not an option.
- remove va_copy. It is C99 and we try to stay C89 in tinycc
when possible. For example, MS compilers do not have va_copy.
- win64: revert any 'fixes' to alloca
It was correct as it was before, except for bound_checking
where it was not implemented. This should now work too.
- remove parasitic filename:linenum features
Such feature is already present with rt_printline in
tccrun.c. If it doesn't work it can be fixed.
- revert changes to gen_bounded_ptr_add()
gen_bounded_ptr_add() was working as it should before
(mostly). For the sake of simplicity I switched it to
CDECL. Anyway, FASTCALL means SLOWCALL with tinycc.
In exchange you get one addition which is required for
bounds_cnecking function arguments. The important thing
is to check them *BEFORE* they are loaded into registers.
New function gbound_args() does that.
In any case, code instrumentation with the bounds-check
functions as such now seems to work flawlessly again,
which means when they are inserted as NOPs, any code that
tcc can compile, seems to behave just the same as without
them.
What these functions then do when fully enabled, is a
differnt story. I did not touch this.
2019-12-12 17:45:45 +03:00
|
|
|
DEF-all += -DTCC_LIBTCC1="\"$(X)libtcc1.a\""
|
2017-02-23 10:41:57 +03:00
|
|
|
DEF-win += -DCONFIG_TCCDIR="\"$(tccdir)/win32\""
|
2016-10-01 22:06:33 +03:00
|
|
|
endif
|
2017-02-25 14:49:47 +03:00
|
|
|
endif
|
2016-10-01 22:06:33 +03:00
|
|
|
|
2017-07-09 13:07:40 +03:00
|
|
|
# include custom configuration (see make help)
|
|
|
|
-include config-extra.mak
|
2015-07-29 23:53:57 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
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
|
|
|
|
i386_FILES = $(CORE_FILES) i386-gen.c i386-link.c i386-asm.c i386-asm.h i386-tok.h
|
|
|
|
i386-win32_FILES = $(i386_FILES) tccpe.c
|
|
|
|
x86_64_FILES = $(CORE_FILES) x86_64-gen.c x86_64-link.c i386-asm.c x86_64-asm.h
|
|
|
|
x86_64-win32_FILES = $(x86_64_FILES) tccpe.c
|
2017-03-28 08:58:42 +03:00
|
|
|
x86_64-osx_FILES = $(x86_64_FILES)
|
2017-02-25 14:49:47 +03:00
|
|
|
arm_FILES = $(CORE_FILES) arm-gen.c arm-link.c arm-asm.c
|
|
|
|
arm-wince_FILES = $(arm_FILES) tccpe.c
|
2019-01-08 21:06:26 +03:00
|
|
|
arm-eabihf_FILES = $(arm_FILES)
|
|
|
|
arm-fpa_FILES = $(arm_FILES)
|
|
|
|
arm-fpa-ld_FILES = $(arm_FILES)
|
|
|
|
arm-vfp_FILES = $(arm_FILES)
|
|
|
|
arm-eabi_FILES = $(arm_FILES)
|
|
|
|
arm-eabihf_FILES = $(arm_FILES)
|
2017-02-25 14:49:47 +03:00
|
|
|
arm64_FILES = $(CORE_FILES) arm64-gen.c arm64-link.c
|
|
|
|
c67_FILES = $(CORE_FILES) c67-gen.c c67-link.c tcccoff.c
|
2019-06-22 07:13:10 +03:00
|
|
|
riscv64_FILES = $(CORE_FILES) riscv64-gen.c riscv64-link.c
|
2017-02-23 10:41:57 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
# libtcc sources
|
2017-05-13 09:59:06 +03:00
|
|
|
LIBTCC_SRC = $(filter-out tcc.c tcctools.c,$(filter %.c,$($T_FILES)))
|
2017-02-23 10:41:57 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
ifeq ($(ONE_SOURCE),yes)
|
|
|
|
LIBTCC_OBJ = $(X)libtcc.o
|
|
|
|
LIBTCC_INC = $($T_FILES)
|
2017-05-02 02:39:01 +03:00
|
|
|
TCC_FILES = $(X)tcc.o
|
2017-07-23 22:24:11 +03:00
|
|
|
tcc.o : DEFINES += -DONE_SOURCE=0
|
2017-02-25 14:49:47 +03:00
|
|
|
else
|
|
|
|
LIBTCC_OBJ = $(patsubst %.c,$(X)%.o,$(LIBTCC_SRC))
|
|
|
|
LIBTCC_INC = $(filter %.h %-gen.c %-link.c,$($T_FILES))
|
|
|
|
TCC_FILES = $(X)tcc.o $(LIBTCC_OBJ)
|
2017-07-23 22:24:11 +03:00
|
|
|
$(TCC_FILES) : DEFINES += -DONE_SOURCE=0
|
2017-02-25 14:49:47 +03:00
|
|
|
endif
|
2017-02-23 10:41:57 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
# target specific object rule
|
|
|
|
$(X)%.o : %.c $(LIBTCC_INC)
|
|
|
|
$(CC) -o $@ -c $< $(DEFINES) $(CFLAGS)
|
2017-02-23 10:41:57 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
# additional dependencies
|
|
|
|
$(X)tcc.o : tcctools.c
|
|
|
|
|
|
|
|
# Host Tiny C Compiler
|
2017-04-25 22:01:54 +03:00
|
|
|
tcc$(EXESUF): tcc.o $(LIBTCC)
|
2017-05-07 13:41:29 +03:00
|
|
|
$(CC) -o $@ $^ $(LIBS) $(LDFLAGS) $(LINK_LIBTCC)
|
2017-02-23 10:41:57 +03:00
|
|
|
|
|
|
|
# Cross Tiny C Compilers
|
2017-02-25 14:49:47 +03:00
|
|
|
%-tcc$(EXESUF): FORCE
|
|
|
|
@$(MAKE) --no-print-directory $@ CROSS_TARGET=$* ONE_SOURCE=$(or $(ONE_SOURCE),yes)
|
|
|
|
|
|
|
|
$(CROSS_TARGET)-tcc$(EXESUF): $(TCC_FILES)
|
2017-05-07 13:41:29 +03:00
|
|
|
$(CC) -o $@ $^ $(LIBS) $(LDFLAGS)
|
2017-02-25 14:49:47 +03:00
|
|
|
|
|
|
|
# profiling version
|
|
|
|
tcc_p$(EXESUF): $($T_FILES)
|
2017-07-23 22:24:11 +03:00
|
|
|
$(CC) -o $@ $< $(DEFINES) $(CFLAGS_P) $(LIBS_P) $(LDFLAGS_P)
|
2017-02-25 14:49:47 +03:00
|
|
|
|
|
|
|
# static libtcc library
|
|
|
|
libtcc.a: $(LIBTCC_OBJ)
|
|
|
|
$(AR) rcs $@ $^
|
|
|
|
|
|
|
|
# dynamic libtcc library
|
|
|
|
libtcc.so: $(LIBTCC_OBJ)
|
2017-05-07 13:41:29 +03:00
|
|
|
$(CC) -shared -Wl,-soname,$@ -o $@ $^ $(LDFLAGS)
|
2017-02-25 14:49:47 +03:00
|
|
|
|
|
|
|
libtcc.so: CFLAGS+=-fPIC
|
2017-05-07 13:41:29 +03:00
|
|
|
libtcc.so: LDFLAGS+=-fPIC
|
2017-02-25 14:49:47 +03:00
|
|
|
|
|
|
|
# windows dynamic libtcc library
|
|
|
|
libtcc.dll : $(LIBTCC_OBJ)
|
2017-05-07 13:41:29 +03:00
|
|
|
$(CC) -shared -o $@ $^ $(LDFLAGS)
|
various stuff
win32/Makefile ("for cygwin") removed
- On cygwin, the normal ./configure && make can be used with either
cygwin's "GCC for Win32 Toolchain"
./configure --cross-prefix=i686-w64-mingw32-
or with an existing tcc:
./configure --cc=<old-tccdir>/tcc.exe
tcctest.c:
- exclude test_high_clobbers() on _WIN64 (does not work)
tests2/95_bitfield.c:
- use 'signed char' for ARM (where default 'char' is unsigned)
tests:
- remove -I "expr" diff option to allow tests with
busybox-diff.
libtcc.c, tcc.c:
- removed -iwithprefix option. It is supposed to be
combined with -iprefix which we don't have either.
tccgen.c:
- fix assignments and return of 'void', as in
void f() {
void *p, *q;
*p = *q:
return *p;
}
This appears to be allowed but should do nothing.
tcc.h, libtcc.c, tccpp.c:
- Revert "Introduce VIP sysinclude paths which are always searched first"
This reverts commit 1d5e386b0a78393ac6b670c209a185849ec798a1.
The patch was giving tcc's system includes priority over -I which
is not how it should be.
tccelf.c:
- add DT_TEXTREL tag only if text relocations are actually
used (which is likely not the case on x86_64)
- prepare_dynamic_rel(): avoid relocation of unresolved
(weak) symbols
tccrun.c:
- for HAVE_SELINUX, use two mappings to the same (real) file.
(it was so once except the RX mapping wasn't used at all).
tccpe.c:
- fix relocation constant used for x86_64 (by Andrei E. Warentin)
- #ifndef _WIN32 do "chmod 755 ..." to get runnable exes on cygwin.
tccasm.c:
- keep forward asm labels static, otherwise they will endup
in dynsym eventually.
configure, Makefile:
- mingw32: respect ./configure options --bindir --docdir --libdir
- allow overriding tcc when building libtcc1.a and libtcc.def with
make XTCC=<tcc program to use>
- use $(wildcard ...) for install to allow installing just
a cross compiler for example
make cross-arm
make install
- use name <target>-libtcc1.a
build-tcc.bat:
- add options: -clean, -b bindir
2017-10-11 19:13:43 +03:00
|
|
|
libtcc.dll : DEFINES += -DLIBTCC_AS_DLL
|
2017-02-25 14:49:47 +03:00
|
|
|
|
various stuff
win32/Makefile ("for cygwin") removed
- On cygwin, the normal ./configure && make can be used with either
cygwin's "GCC for Win32 Toolchain"
./configure --cross-prefix=i686-w64-mingw32-
or with an existing tcc:
./configure --cc=<old-tccdir>/tcc.exe
tcctest.c:
- exclude test_high_clobbers() on _WIN64 (does not work)
tests2/95_bitfield.c:
- use 'signed char' for ARM (where default 'char' is unsigned)
tests:
- remove -I "expr" diff option to allow tests with
busybox-diff.
libtcc.c, tcc.c:
- removed -iwithprefix option. It is supposed to be
combined with -iprefix which we don't have either.
tccgen.c:
- fix assignments and return of 'void', as in
void f() {
void *p, *q;
*p = *q:
return *p;
}
This appears to be allowed but should do nothing.
tcc.h, libtcc.c, tccpp.c:
- Revert "Introduce VIP sysinclude paths which are always searched first"
This reverts commit 1d5e386b0a78393ac6b670c209a185849ec798a1.
The patch was giving tcc's system includes priority over -I which
is not how it should be.
tccelf.c:
- add DT_TEXTREL tag only if text relocations are actually
used (which is likely not the case on x86_64)
- prepare_dynamic_rel(): avoid relocation of unresolved
(weak) symbols
tccrun.c:
- for HAVE_SELINUX, use two mappings to the same (real) file.
(it was so once except the RX mapping wasn't used at all).
tccpe.c:
- fix relocation constant used for x86_64 (by Andrei E. Warentin)
- #ifndef _WIN32 do "chmod 755 ..." to get runnable exes on cygwin.
tccasm.c:
- keep forward asm labels static, otherwise they will endup
in dynsym eventually.
configure, Makefile:
- mingw32: respect ./configure options --bindir --docdir --libdir
- allow overriding tcc when building libtcc1.a and libtcc.def with
make XTCC=<tcc program to use>
- use $(wildcard ...) for install to allow installing just
a cross compiler for example
make cross-arm
make install
- use name <target>-libtcc1.a
build-tcc.bat:
- add options: -clean, -b bindir
2017-10-11 19:13:43 +03:00
|
|
|
# import file for windows libtcc.dll
|
2017-02-25 14:49:47 +03:00
|
|
|
libtcc.def : libtcc.dll tcc$(EXESUF)
|
various stuff
win32/Makefile ("for cygwin") removed
- On cygwin, the normal ./configure && make can be used with either
cygwin's "GCC for Win32 Toolchain"
./configure --cross-prefix=i686-w64-mingw32-
or with an existing tcc:
./configure --cc=<old-tccdir>/tcc.exe
tcctest.c:
- exclude test_high_clobbers() on _WIN64 (does not work)
tests2/95_bitfield.c:
- use 'signed char' for ARM (where default 'char' is unsigned)
tests:
- remove -I "expr" diff option to allow tests with
busybox-diff.
libtcc.c, tcc.c:
- removed -iwithprefix option. It is supposed to be
combined with -iprefix which we don't have either.
tccgen.c:
- fix assignments and return of 'void', as in
void f() {
void *p, *q;
*p = *q:
return *p;
}
This appears to be allowed but should do nothing.
tcc.h, libtcc.c, tccpp.c:
- Revert "Introduce VIP sysinclude paths which are always searched first"
This reverts commit 1d5e386b0a78393ac6b670c209a185849ec798a1.
The patch was giving tcc's system includes priority over -I which
is not how it should be.
tccelf.c:
- add DT_TEXTREL tag only if text relocations are actually
used (which is likely not the case on x86_64)
- prepare_dynamic_rel(): avoid relocation of unresolved
(weak) symbols
tccrun.c:
- for HAVE_SELINUX, use two mappings to the same (real) file.
(it was so once except the RX mapping wasn't used at all).
tccpe.c:
- fix relocation constant used for x86_64 (by Andrei E. Warentin)
- #ifndef _WIN32 do "chmod 755 ..." to get runnable exes on cygwin.
tccasm.c:
- keep forward asm labels static, otherwise they will endup
in dynsym eventually.
configure, Makefile:
- mingw32: respect ./configure options --bindir --docdir --libdir
- allow overriding tcc when building libtcc1.a and libtcc.def with
make XTCC=<tcc program to use>
- use $(wildcard ...) for install to allow installing just
a cross compiler for example
make cross-arm
make install
- use name <target>-libtcc1.a
build-tcc.bat:
- add options: -clean, -b bindir
2017-10-11 19:13:43 +03:00
|
|
|
$(XTCC) -impdef $< -o $@
|
|
|
|
XTCC ?= ./tcc$(EXESUF)
|
2017-02-25 14:49:47 +03:00
|
|
|
|
|
|
|
# TinyCC runtime libraries
|
|
|
|
libtcc1.a : tcc$(EXESUF) FORCE
|
2020-01-21 16:23:57 +03:00
|
|
|
@$(MAKE) -C lib
|
2017-02-23 10:41:57 +03:00
|
|
|
|
|
|
|
# Cross libtcc1.a
|
various stuff
win32/Makefile ("for cygwin") removed
- On cygwin, the normal ./configure && make can be used with either
cygwin's "GCC for Win32 Toolchain"
./configure --cross-prefix=i686-w64-mingw32-
or with an existing tcc:
./configure --cc=<old-tccdir>/tcc.exe
tcctest.c:
- exclude test_high_clobbers() on _WIN64 (does not work)
tests2/95_bitfield.c:
- use 'signed char' for ARM (where default 'char' is unsigned)
tests:
- remove -I "expr" diff option to allow tests with
busybox-diff.
libtcc.c, tcc.c:
- removed -iwithprefix option. It is supposed to be
combined with -iprefix which we don't have either.
tccgen.c:
- fix assignments and return of 'void', as in
void f() {
void *p, *q;
*p = *q:
return *p;
}
This appears to be allowed but should do nothing.
tcc.h, libtcc.c, tccpp.c:
- Revert "Introduce VIP sysinclude paths which are always searched first"
This reverts commit 1d5e386b0a78393ac6b670c209a185849ec798a1.
The patch was giving tcc's system includes priority over -I which
is not how it should be.
tccelf.c:
- add DT_TEXTREL tag only if text relocations are actually
used (which is likely not the case on x86_64)
- prepare_dynamic_rel(): avoid relocation of unresolved
(weak) symbols
tccrun.c:
- for HAVE_SELINUX, use two mappings to the same (real) file.
(it was so once except the RX mapping wasn't used at all).
tccpe.c:
- fix relocation constant used for x86_64 (by Andrei E. Warentin)
- #ifndef _WIN32 do "chmod 755 ..." to get runnable exes on cygwin.
tccasm.c:
- keep forward asm labels static, otherwise they will endup
in dynsym eventually.
configure, Makefile:
- mingw32: respect ./configure options --bindir --docdir --libdir
- allow overriding tcc when building libtcc1.a and libtcc.def with
make XTCC=<tcc program to use>
- use $(wildcard ...) for install to allow installing just
a cross compiler for example
make cross-arm
make install
- use name <target>-libtcc1.a
build-tcc.bat:
- add options: -clean, -b bindir
2017-10-11 19:13:43 +03:00
|
|
|
%-libtcc1.a : %-tcc$(EXESUF) FORCE
|
2020-01-21 16:23:57 +03:00
|
|
|
@$(MAKE) -C lib CROSS_TARGET=$*
|
2017-02-25 14:49:47 +03:00
|
|
|
|
2020-01-21 16:23:57 +03:00
|
|
|
.PRECIOUS: %-libtcc1.a
|
2017-02-25 14:49:47 +03:00
|
|
|
FORCE:
|
2017-02-23 10:41:57 +03:00
|
|
|
|
|
|
|
# --------------------------------------------------------------------------
|
2017-02-25 14:49:47 +03:00
|
|
|
# documentation and man page
|
|
|
|
tcc-doc.html: tcc-doc.texi
|
2017-12-12 19:57:20 +03:00
|
|
|
makeinfo --no-split --html --number-sections -o $@ $< || true
|
2017-02-25 14:49:47 +03:00
|
|
|
|
|
|
|
tcc.1: tcc-doc.texi
|
2017-12-12 19:57:20 +03:00
|
|
|
$(TOPSRC)/texi2pod.pl $< tcc.pod \
|
|
|
|
&& pod2man --section=1 --center="Tiny C Compiler" --release="$(VERSION)" tcc.pod >tmp.1 \
|
|
|
|
&& mv tmp.1 $@ || rm -f tmp.1
|
2017-02-25 14:49:47 +03:00
|
|
|
|
|
|
|
tcc-doc.info: tcc-doc.texi
|
2017-12-12 19:57:20 +03:00
|
|
|
makeinfo $< || true
|
2015-07-29 23:53:57 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
# --------------------------------------------------------------------------
|
2015-07-29 23:53:57 +03:00
|
|
|
# install
|
2016-05-20 15:48:02 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
INSTALL = install -m644
|
2017-05-13 09:59:06 +03:00
|
|
|
INSTALLBIN = install -m755 $(STRIP_$(CONFIG_strip))
|
2017-02-25 14:49:47 +03:00
|
|
|
STRIP_yes = -s
|
2015-07-29 23:53:57 +03:00
|
|
|
|
various stuff
win32/Makefile ("for cygwin") removed
- On cygwin, the normal ./configure && make can be used with either
cygwin's "GCC for Win32 Toolchain"
./configure --cross-prefix=i686-w64-mingw32-
or with an existing tcc:
./configure --cc=<old-tccdir>/tcc.exe
tcctest.c:
- exclude test_high_clobbers() on _WIN64 (does not work)
tests2/95_bitfield.c:
- use 'signed char' for ARM (where default 'char' is unsigned)
tests:
- remove -I "expr" diff option to allow tests with
busybox-diff.
libtcc.c, tcc.c:
- removed -iwithprefix option. It is supposed to be
combined with -iprefix which we don't have either.
tccgen.c:
- fix assignments and return of 'void', as in
void f() {
void *p, *q;
*p = *q:
return *p;
}
This appears to be allowed but should do nothing.
tcc.h, libtcc.c, tccpp.c:
- Revert "Introduce VIP sysinclude paths which are always searched first"
This reverts commit 1d5e386b0a78393ac6b670c209a185849ec798a1.
The patch was giving tcc's system includes priority over -I which
is not how it should be.
tccelf.c:
- add DT_TEXTREL tag only if text relocations are actually
used (which is likely not the case on x86_64)
- prepare_dynamic_rel(): avoid relocation of unresolved
(weak) symbols
tccrun.c:
- for HAVE_SELINUX, use two mappings to the same (real) file.
(it was so once except the RX mapping wasn't used at all).
tccpe.c:
- fix relocation constant used for x86_64 (by Andrei E. Warentin)
- #ifndef _WIN32 do "chmod 755 ..." to get runnable exes on cygwin.
tccasm.c:
- keep forward asm labels static, otherwise they will endup
in dynsym eventually.
configure, Makefile:
- mingw32: respect ./configure options --bindir --docdir --libdir
- allow overriding tcc when building libtcc1.a and libtcc.def with
make XTCC=<tcc program to use>
- use $(wildcard ...) for install to allow installing just
a cross compiler for example
make cross-arm
make install
- use name <target>-libtcc1.a
build-tcc.bat:
- add options: -clean, -b bindir
2017-10-11 19:13:43 +03:00
|
|
|
LIBTCC1_W = $(filter %-win32-libtcc1.a %-wince-libtcc1.a,$(LIBTCC1_CROSS))
|
|
|
|
LIBTCC1_U = $(filter-out $(LIBTCC1_W),$(LIBTCC1_CROSS))
|
|
|
|
IB = $(if $1,mkdir -p $2 && $(INSTALLBIN) $1 $2)
|
|
|
|
IBw = $(call IB,$(wildcard $1),$2)
|
|
|
|
IF = $(if $1,mkdir -p $2 && $(INSTALL) $1 $2)
|
|
|
|
IFw = $(call IF,$(wildcard $1),$2)
|
|
|
|
IR = mkdir -p $2 && cp -r $1/. $2
|
2020-01-18 00:58:39 +03:00
|
|
|
B_O = bcheck.o bt-exe.o bt-log.o bt-dll.o
|
2017-02-25 14:49:47 +03:00
|
|
|
|
|
|
|
# install progs & libs
|
|
|
|
install-unx:
|
various stuff
win32/Makefile ("for cygwin") removed
- On cygwin, the normal ./configure && make can be used with either
cygwin's "GCC for Win32 Toolchain"
./configure --cross-prefix=i686-w64-mingw32-
or with an existing tcc:
./configure --cc=<old-tccdir>/tcc.exe
tcctest.c:
- exclude test_high_clobbers() on _WIN64 (does not work)
tests2/95_bitfield.c:
- use 'signed char' for ARM (where default 'char' is unsigned)
tests:
- remove -I "expr" diff option to allow tests with
busybox-diff.
libtcc.c, tcc.c:
- removed -iwithprefix option. It is supposed to be
combined with -iprefix which we don't have either.
tccgen.c:
- fix assignments and return of 'void', as in
void f() {
void *p, *q;
*p = *q:
return *p;
}
This appears to be allowed but should do nothing.
tcc.h, libtcc.c, tccpp.c:
- Revert "Introduce VIP sysinclude paths which are always searched first"
This reverts commit 1d5e386b0a78393ac6b670c209a185849ec798a1.
The patch was giving tcc's system includes priority over -I which
is not how it should be.
tccelf.c:
- add DT_TEXTREL tag only if text relocations are actually
used (which is likely not the case on x86_64)
- prepare_dynamic_rel(): avoid relocation of unresolved
(weak) symbols
tccrun.c:
- for HAVE_SELINUX, use two mappings to the same (real) file.
(it was so once except the RX mapping wasn't used at all).
tccpe.c:
- fix relocation constant used for x86_64 (by Andrei E. Warentin)
- #ifndef _WIN32 do "chmod 755 ..." to get runnable exes on cygwin.
tccasm.c:
- keep forward asm labels static, otherwise they will endup
in dynsym eventually.
configure, Makefile:
- mingw32: respect ./configure options --bindir --docdir --libdir
- allow overriding tcc when building libtcc1.a and libtcc.def with
make XTCC=<tcc program to use>
- use $(wildcard ...) for install to allow installing just
a cross compiler for example
make cross-arm
make install
- use name <target>-libtcc1.a
build-tcc.bat:
- add options: -clean, -b bindir
2017-10-11 19:13:43 +03:00
|
|
|
$(call IBw,$(PROGS) $(PROGS_CROSS),"$(bindir)")
|
2020-01-18 00:58:39 +03:00
|
|
|
$(call IFw,$(LIBTCC1) $(B_O) $(LIBTCC1_U),"$(tccdir)")
|
various stuff
win32/Makefile ("for cygwin") removed
- On cygwin, the normal ./configure && make can be used with either
cygwin's "GCC for Win32 Toolchain"
./configure --cross-prefix=i686-w64-mingw32-
or with an existing tcc:
./configure --cc=<old-tccdir>/tcc.exe
tcctest.c:
- exclude test_high_clobbers() on _WIN64 (does not work)
tests2/95_bitfield.c:
- use 'signed char' for ARM (where default 'char' is unsigned)
tests:
- remove -I "expr" diff option to allow tests with
busybox-diff.
libtcc.c, tcc.c:
- removed -iwithprefix option. It is supposed to be
combined with -iprefix which we don't have either.
tccgen.c:
- fix assignments and return of 'void', as in
void f() {
void *p, *q;
*p = *q:
return *p;
}
This appears to be allowed but should do nothing.
tcc.h, libtcc.c, tccpp.c:
- Revert "Introduce VIP sysinclude paths which are always searched first"
This reverts commit 1d5e386b0a78393ac6b670c209a185849ec798a1.
The patch was giving tcc's system includes priority over -I which
is not how it should be.
tccelf.c:
- add DT_TEXTREL tag only if text relocations are actually
used (which is likely not the case on x86_64)
- prepare_dynamic_rel(): avoid relocation of unresolved
(weak) symbols
tccrun.c:
- for HAVE_SELINUX, use two mappings to the same (real) file.
(it was so once except the RX mapping wasn't used at all).
tccpe.c:
- fix relocation constant used for x86_64 (by Andrei E. Warentin)
- #ifndef _WIN32 do "chmod 755 ..." to get runnable exes on cygwin.
tccasm.c:
- keep forward asm labels static, otherwise they will endup
in dynsym eventually.
configure, Makefile:
- mingw32: respect ./configure options --bindir --docdir --libdir
- allow overriding tcc when building libtcc1.a and libtcc.def with
make XTCC=<tcc program to use>
- use $(wildcard ...) for install to allow installing just
a cross compiler for example
make cross-arm
make install
- use name <target>-libtcc1.a
build-tcc.bat:
- add options: -clean, -b bindir
2017-10-11 19:13:43 +03:00
|
|
|
$(call IF,$(TOPSRC)/include/*.h $(TOPSRC)/tcclib.h,"$(tccdir)/include")
|
|
|
|
$(call $(if $(findstring .so,$(LIBTCC)),IBw,IFw),$(LIBTCC),"$(libdir)")
|
|
|
|
$(call IF,$(TOPSRC)/libtcc.h,"$(includedir)")
|
|
|
|
$(call IFw,tcc.1,"$(mandir)/man1")
|
|
|
|
$(call IFw,tcc-doc.info,"$(infodir)")
|
|
|
|
$(call IFw,tcc-doc.html,"$(docdir)")
|
|
|
|
ifneq "$(wildcard $(LIBTCC1_W))" ""
|
|
|
|
$(call IFw,$(TOPSRC)/win32/lib/*.def $(LIBTCC1_W),"$(tccdir)/win32/lib")
|
|
|
|
$(call IR,$(TOPSRC)/win32/include,"$(tccdir)/win32/include")
|
|
|
|
$(call IF,$(TOPSRC)/include/*.h $(TOPSRC)/tcclib.h,"$(tccdir)/win32/include")
|
2017-04-25 22:01:54 +03:00
|
|
|
endif
|
2017-02-25 14:49:47 +03:00
|
|
|
|
|
|
|
# uninstall
|
|
|
|
uninstall-unx:
|
2017-04-25 22:01:54 +03:00
|
|
|
@rm -fv $(foreach P,$(PROGS) $(PROGS_CROSS),"$(bindir)/$P")
|
|
|
|
@rm -fv "$(libdir)/libtcc.a" "$(libdir)/libtcc.so" "$(includedir)/libtcc.h"
|
|
|
|
@rm -fv "$(mandir)/man1/tcc.1" "$(infodir)/tcc-doc.info"
|
|
|
|
@rm -fv "$(docdir)/tcc-doc.html"
|
|
|
|
rm -r "$(tccdir)"
|
2017-02-23 10:41:57 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
# install progs & libs on windows
|
|
|
|
install-win:
|
various stuff
win32/Makefile ("for cygwin") removed
- On cygwin, the normal ./configure && make can be used with either
cygwin's "GCC for Win32 Toolchain"
./configure --cross-prefix=i686-w64-mingw32-
or with an existing tcc:
./configure --cc=<old-tccdir>/tcc.exe
tcctest.c:
- exclude test_high_clobbers() on _WIN64 (does not work)
tests2/95_bitfield.c:
- use 'signed char' for ARM (where default 'char' is unsigned)
tests:
- remove -I "expr" diff option to allow tests with
busybox-diff.
libtcc.c, tcc.c:
- removed -iwithprefix option. It is supposed to be
combined with -iprefix which we don't have either.
tccgen.c:
- fix assignments and return of 'void', as in
void f() {
void *p, *q;
*p = *q:
return *p;
}
This appears to be allowed but should do nothing.
tcc.h, libtcc.c, tccpp.c:
- Revert "Introduce VIP sysinclude paths which are always searched first"
This reverts commit 1d5e386b0a78393ac6b670c209a185849ec798a1.
The patch was giving tcc's system includes priority over -I which
is not how it should be.
tccelf.c:
- add DT_TEXTREL tag only if text relocations are actually
used (which is likely not the case on x86_64)
- prepare_dynamic_rel(): avoid relocation of unresolved
(weak) symbols
tccrun.c:
- for HAVE_SELINUX, use two mappings to the same (real) file.
(it was so once except the RX mapping wasn't used at all).
tccpe.c:
- fix relocation constant used for x86_64 (by Andrei E. Warentin)
- #ifndef _WIN32 do "chmod 755 ..." to get runnable exes on cygwin.
tccasm.c:
- keep forward asm labels static, otherwise they will endup
in dynsym eventually.
configure, Makefile:
- mingw32: respect ./configure options --bindir --docdir --libdir
- allow overriding tcc when building libtcc1.a and libtcc.def with
make XTCC=<tcc program to use>
- use $(wildcard ...) for install to allow installing just
a cross compiler for example
make cross-arm
make install
- use name <target>-libtcc1.a
build-tcc.bat:
- add options: -clean, -b bindir
2017-10-11 19:13:43 +03:00
|
|
|
$(call IBw,$(PROGS) $(PROGS_CROSS) $(subst libtcc.a,,$(LIBTCC)),"$(bindir)")
|
|
|
|
$(call IF,$(TOPSRC)/win32/lib/*.def,"$(tccdir)/lib")
|
2020-01-18 00:58:39 +03:00
|
|
|
$(call IFw,libtcc1.a $(B_O) $(LIBTCC1_W),"$(tccdir)/lib")
|
various stuff
win32/Makefile ("for cygwin") removed
- On cygwin, the normal ./configure && make can be used with either
cygwin's "GCC for Win32 Toolchain"
./configure --cross-prefix=i686-w64-mingw32-
or with an existing tcc:
./configure --cc=<old-tccdir>/tcc.exe
tcctest.c:
- exclude test_high_clobbers() on _WIN64 (does not work)
tests2/95_bitfield.c:
- use 'signed char' for ARM (where default 'char' is unsigned)
tests:
- remove -I "expr" diff option to allow tests with
busybox-diff.
libtcc.c, tcc.c:
- removed -iwithprefix option. It is supposed to be
combined with -iprefix which we don't have either.
tccgen.c:
- fix assignments and return of 'void', as in
void f() {
void *p, *q;
*p = *q:
return *p;
}
This appears to be allowed but should do nothing.
tcc.h, libtcc.c, tccpp.c:
- Revert "Introduce VIP sysinclude paths which are always searched first"
This reverts commit 1d5e386b0a78393ac6b670c209a185849ec798a1.
The patch was giving tcc's system includes priority over -I which
is not how it should be.
tccelf.c:
- add DT_TEXTREL tag only if text relocations are actually
used (which is likely not the case on x86_64)
- prepare_dynamic_rel(): avoid relocation of unresolved
(weak) symbols
tccrun.c:
- for HAVE_SELINUX, use two mappings to the same (real) file.
(it was so once except the RX mapping wasn't used at all).
tccpe.c:
- fix relocation constant used for x86_64 (by Andrei E. Warentin)
- #ifndef _WIN32 do "chmod 755 ..." to get runnable exes on cygwin.
tccasm.c:
- keep forward asm labels static, otherwise they will endup
in dynsym eventually.
configure, Makefile:
- mingw32: respect ./configure options --bindir --docdir --libdir
- allow overriding tcc when building libtcc1.a and libtcc.def with
make XTCC=<tcc program to use>
- use $(wildcard ...) for install to allow installing just
a cross compiler for example
make cross-arm
make install
- use name <target>-libtcc1.a
build-tcc.bat:
- add options: -clean, -b bindir
2017-10-11 19:13:43 +03:00
|
|
|
$(call IF,$(TOPSRC)/include/*.h $(TOPSRC)/tcclib.h,"$(tccdir)/include")
|
|
|
|
$(call IR,$(TOPSRC)/win32/include,"$(tccdir)/include")
|
|
|
|
$(call IR,$(TOPSRC)/win32/examples,"$(tccdir)/examples")
|
|
|
|
$(call IF,$(TOPSRC)/tests/libtcc_test.c,"$(tccdir)/examples")
|
|
|
|
$(call IFw,$(TOPSRC)/libtcc.h $(subst .dll,.def,$(LIBTCC)),"$(libdir)")
|
|
|
|
$(call IFw,$(TOPSRC)/win32/tcc-win32.txt tcc-doc.html,"$(docdir)")
|
|
|
|
ifneq "$(wildcard $(LIBTCC1_U))" ""
|
|
|
|
$(call IFw,$(LIBTCC1_U),"$(tccdir)/lib")
|
|
|
|
$(call IF,$(TOPSRC)/include/*.h $(TOPSRC)/tcclib.h,"$(tccdir)/lib/include")
|
2017-04-25 22:01:54 +03:00
|
|
|
endif
|
2015-07-29 16:05:56 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
# the msys-git shell works to configure && make except it does not have install
|
2017-12-12 19:57:20 +03:00
|
|
|
ifeq "$(and $(CONFIG_WIN32),$(shell which install >/dev/null 2>&1 || echo no))" "no"
|
2017-02-25 14:49:47 +03:00
|
|
|
install-win : INSTALL = cp
|
various stuff
win32/Makefile ("for cygwin") removed
- On cygwin, the normal ./configure && make can be used with either
cygwin's "GCC for Win32 Toolchain"
./configure --cross-prefix=i686-w64-mingw32-
or with an existing tcc:
./configure --cc=<old-tccdir>/tcc.exe
tcctest.c:
- exclude test_high_clobbers() on _WIN64 (does not work)
tests2/95_bitfield.c:
- use 'signed char' for ARM (where default 'char' is unsigned)
tests:
- remove -I "expr" diff option to allow tests with
busybox-diff.
libtcc.c, tcc.c:
- removed -iwithprefix option. It is supposed to be
combined with -iprefix which we don't have either.
tccgen.c:
- fix assignments and return of 'void', as in
void f() {
void *p, *q;
*p = *q:
return *p;
}
This appears to be allowed but should do nothing.
tcc.h, libtcc.c, tccpp.c:
- Revert "Introduce VIP sysinclude paths which are always searched first"
This reverts commit 1d5e386b0a78393ac6b670c209a185849ec798a1.
The patch was giving tcc's system includes priority over -I which
is not how it should be.
tccelf.c:
- add DT_TEXTREL tag only if text relocations are actually
used (which is likely not the case on x86_64)
- prepare_dynamic_rel(): avoid relocation of unresolved
(weak) symbols
tccrun.c:
- for HAVE_SELINUX, use two mappings to the same (real) file.
(it was so once except the RX mapping wasn't used at all).
tccpe.c:
- fix relocation constant used for x86_64 (by Andrei E. Warentin)
- #ifndef _WIN32 do "chmod 755 ..." to get runnable exes on cygwin.
tccasm.c:
- keep forward asm labels static, otherwise they will endup
in dynsym eventually.
configure, Makefile:
- mingw32: respect ./configure options --bindir --docdir --libdir
- allow overriding tcc when building libtcc1.a and libtcc.def with
make XTCC=<tcc program to use>
- use $(wildcard ...) for install to allow installing just
a cross compiler for example
make cross-arm
make install
- use name <target>-libtcc1.a
build-tcc.bat:
- add options: -clean, -b bindir
2017-10-11 19:13:43 +03:00
|
|
|
install-win : INSTALLBIN = cp
|
|
|
|
endif
|
2015-07-29 23:53:57 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
# uninstall on windows
|
|
|
|
uninstall-win:
|
various stuff
win32/Makefile ("for cygwin") removed
- On cygwin, the normal ./configure && make can be used with either
cygwin's "GCC for Win32 Toolchain"
./configure --cross-prefix=i686-w64-mingw32-
or with an existing tcc:
./configure --cc=<old-tccdir>/tcc.exe
tcctest.c:
- exclude test_high_clobbers() on _WIN64 (does not work)
tests2/95_bitfield.c:
- use 'signed char' for ARM (where default 'char' is unsigned)
tests:
- remove -I "expr" diff option to allow tests with
busybox-diff.
libtcc.c, tcc.c:
- removed -iwithprefix option. It is supposed to be
combined with -iprefix which we don't have either.
tccgen.c:
- fix assignments and return of 'void', as in
void f() {
void *p, *q;
*p = *q:
return *p;
}
This appears to be allowed but should do nothing.
tcc.h, libtcc.c, tccpp.c:
- Revert "Introduce VIP sysinclude paths which are always searched first"
This reverts commit 1d5e386b0a78393ac6b670c209a185849ec798a1.
The patch was giving tcc's system includes priority over -I which
is not how it should be.
tccelf.c:
- add DT_TEXTREL tag only if text relocations are actually
used (which is likely not the case on x86_64)
- prepare_dynamic_rel(): avoid relocation of unresolved
(weak) symbols
tccrun.c:
- for HAVE_SELINUX, use two mappings to the same (real) file.
(it was so once except the RX mapping wasn't used at all).
tccpe.c:
- fix relocation constant used for x86_64 (by Andrei E. Warentin)
- #ifndef _WIN32 do "chmod 755 ..." to get runnable exes on cygwin.
tccasm.c:
- keep forward asm labels static, otherwise they will endup
in dynsym eventually.
configure, Makefile:
- mingw32: respect ./configure options --bindir --docdir --libdir
- allow overriding tcc when building libtcc1.a and libtcc.def with
make XTCC=<tcc program to use>
- use $(wildcard ...) for install to allow installing just
a cross compiler for example
make cross-arm
make install
- use name <target>-libtcc1.a
build-tcc.bat:
- add options: -clean, -b bindir
2017-10-11 19:13:43 +03:00
|
|
|
@rm -fv $(foreach P,$(PROGS) $(PROGS_CROSS) libtcc.dll,"$(bindir)/$P")
|
|
|
|
@rm -fv $(foreach F,tcc-doc.html tcc-win32.txt,"$(docdir)/$F")
|
|
|
|
@rm -fv $(foreach F,libtcc.h libtcc.def libtcc.a,"$(libdir)/$F")
|
2017-07-09 13:07:40 +03:00
|
|
|
rm -r "$(tccdir)"
|
2015-07-29 23:53:57 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
# --------------------------------------------------------------------------
|
|
|
|
# other stuff
|
2015-07-29 23:53:57 +03:00
|
|
|
|
2016-10-01 22:06:33 +03:00
|
|
|
TAGFILES = *.[ch] include/*.h lib/*.[chS]
|
|
|
|
tags : ; ctags $(TAGFILES)
|
2017-02-25 14:49:47 +03:00
|
|
|
# cannot have both tags and TAGS on windows
|
|
|
|
ETAGS : ; etags $(TAGFILES)
|
2015-07-29 23:53:57 +03:00
|
|
|
|
|
|
|
# create release tarball from *current* git branch (including tcc-doc.html
|
|
|
|
# and converting two files to CRLF)
|
2017-04-25 22:01:54 +03:00
|
|
|
TCC-VERSION = tcc-$(VERSION)
|
2015-07-29 23:53:57 +03:00
|
|
|
tar: tcc-doc.html
|
|
|
|
mkdir $(TCC-VERSION)
|
|
|
|
( cd $(TCC-VERSION) && git --git-dir ../.git checkout -f )
|
|
|
|
cp tcc-doc.html $(TCC-VERSION)
|
|
|
|
for f in tcc-win32.txt build-tcc.bat ; do \
|
|
|
|
cat win32/$$f | sed 's,\(.*\),\1\r,g' > $(TCC-VERSION)/win32/$$f ; \
|
|
|
|
done
|
|
|
|
tar cjf $(TCC-VERSION).tar.bz2 $(TCC-VERSION)
|
|
|
|
rm -rf $(TCC-VERSION)
|
|
|
|
git reset
|
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
config.mak:
|
|
|
|
$(if $(wildcard $@),,@echo "Please run ./configure." && exit 1)
|
|
|
|
|
2017-07-14 20:26:01 +03:00
|
|
|
# run all tests
|
2017-02-25 14:49:47 +03:00
|
|
|
test:
|
|
|
|
$(MAKE) -C tests
|
2017-07-14 20:26:01 +03:00
|
|
|
# run test(s) from tests2 subdir (see make help)
|
|
|
|
tests2.%:
|
|
|
|
$(MAKE) -C tests/tests2 $@
|
2017-02-25 14:49:47 +03:00
|
|
|
|
2018-01-05 04:13:27 +03:00
|
|
|
testspp.%:
|
|
|
|
$(MAKE) -C tests/pp $@
|
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
clean:
|
2017-12-12 19:57:20 +03:00
|
|
|
rm -f tcc$(EXESUF) tcc_p$(EXESUF) *-tcc$(EXESUF) tcc.pod
|
2017-04-25 22:01:54 +03:00
|
|
|
rm -f *~ *.o *.a *.so* *.out *.log lib*.def *.exe *.dll a.out tags TAGS
|
|
|
|
@$(MAKE) -C lib $@
|
2017-12-12 19:57:20 +03:00
|
|
|
@$(MAKE) -C tests $@
|
2017-02-25 14:49:47 +03:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f config.h config.mak config.texi tcc.1 tcc-doc.info tcc-doc.html
|
2015-07-29 23:53:57 +03:00
|
|
|
|
2017-02-25 14:49:47 +03:00
|
|
|
.PHONY: all clean test tar tags ETAGS distclean install uninstall FORCE
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo "make"
|
|
|
|
@echo " build native compiler (from separate objects)"
|
|
|
|
@echo ""
|
|
|
|
@echo "make cross"
|
|
|
|
@echo " build cross compilers (from one source)"
|
|
|
|
@echo ""
|
|
|
|
@echo "make ONE_SOURCE=yes / no"
|
|
|
|
@echo " force building from one source / separate objects"
|
|
|
|
@echo ""
|
|
|
|
@echo "make cross-TARGET"
|
|
|
|
@echo " build one specific cross compiler for 'TARGET', as in"
|
|
|
|
@echo " $(TCC_X)"
|
|
|
|
@echo ""
|
2017-07-09 13:07:40 +03:00
|
|
|
@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..."
|
2017-02-25 14:49:47 +03:00
|
|
|
@echo ""
|
2017-07-09 13:07:40 +03:00
|
|
|
@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__"
|
2017-02-25 14:49:47 +03:00
|
|
|
@echo ""
|
2017-07-14 20:26:01 +03:00
|
|
|
@echo "make test"
|
|
|
|
@echo " run all tests"
|
|
|
|
@echo ""
|
|
|
|
@echo "make tests2.all / make tests2.37 / make tests2.37+"
|
|
|
|
@echo " run all/single test(s) from tests2, optionally update .expect"
|
2018-01-05 04:13:27 +03:00
|
|
|
@echo "make testspp.all / make testspp.17"
|
|
|
|
@echo " run all/single test(s) from tests/pp"
|
2017-07-14 20:26:01 +03:00
|
|
|
@echo ""
|
2017-02-25 14:49:47 +03:00
|
|
|
@echo "Other supported make targets:"
|
2017-07-14 20:26:01 +03:00
|
|
|
@echo " install install-strip tags ETAGS tar clean distclean help"
|
2017-07-09 13:07:40 +03:00
|
|
|
@echo ""
|
2017-02-25 14:49:47 +03:00
|
|
|
|
|
|
|
# --------------------------------------------------------------------------
|
|
|
|
endif # ($(INCLUDED),no)
|