aboutsummaryrefslogtreecommitdiff
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Accept colon separated paths with -L and -Igrischka2011-08-011-3/+8
| | | | | | | | | | | | | | | | | | This allows passing colon separated paths to tcc_add_library_path tcc_add_sysinclude_path tcc_add_include_path Also there are new configure variables CONFIG_TCC_LIBPATH CONFIG_TCC_SYSINCLUDE_PATHS which define the lib/sysinclude paths all in one and can be overridden from configure/make For TCC_TARGET_PE semicolons (;) are used as separators Also, \b in the path string is replaced by s->tcc_lib_path (CONFIG_TCCDIR rsp. -B option)
* make: create native tcc from separate objectsgrischka2011-07-141-4/+3
| | | | | | | | | | | | | | | | | | | | | | | This was already possible using make NOTALLINONE=1 and is now the default. To build as previously from one big source, use make ONE_SOURCE=1 Cross compilers are still build from one source because using separate objects requires separate build directories one per platform which currently is not (yet) supported by the makefile. We could probably use gnu-makeish target variables like $(I386_CROSS): OUTDIR=build/i386 $(X64_CROSS): OUTDIR=build/x86-64 and so on ... Also NEED_FLOAT_TYPES for arm-gen is removed. It was about variables that are referenced from outside (libtcc, tccgen). We could declare them in tcc.h (as with reg_classes) or have them twice in arm-gen.c. I chose option 2.
* Revert "Make examples' shebang use target tcc bindir path"Thomas Preud'homme2011-07-071-10/+4
| | | | This reverts commit cb2138f8b098feb1b51a407343a4b99e25d5b506.
* Make examples' shebang use target tcc bindir pathThomas Preud'homme2011-06-181-4/+10
| | | | | | Use @BINDIR@ in shebang of examples to put the right path on the target system. That is, use #!/usr/local/bin/tcc if tcc is installed in /usr/local/bin and #!/usr/bin/tcc if tcc is installed in /usr/bin/tcc.
* Default to create progs with symbols (incl. debug)Thomas Preud'homme2011-06-171-4/+8
| | | | | | | * Set CFLAGS entirely in configure if not already set. * Compile bcheck.c with the same flags as the other source files * Don't strip binaries by default (GB are cheap now) but provide a --strip-binaries option in configure script.
* make test work when LIBTCC1 not definedThomas Preud'homme2011-05-171-0/+2
| | | | | Make libtest depends on LIBTCC1 instead of ../libtcc1.a and define LIBTCC1 to $(TOP)/$(LIBTCC1) if LIBTCC1 is defined
* make clean work when LIBTCC1 not definedThomas Preud'homme2011-05-141-0/+2
| | | | | Don't call make -C lib clean if LIBTCC1 is not defined, else make clean fails (for example of arm).
* Makefile: respect LDFLAGS (set via --extra-ldflags=)Sergei Trofimovich2011-01-041-2/+2
| | | | Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
* make: fix cannot find -ltcc with --disable-rpathHenry Kroll III2010-12-211-2/+1
|
* make: fix install with CC=tcc and potential link problemHenry Kroll III2010-12-201-1/+6
|
* configure: add --disable-rpath option (Fedora)Henry Kroll III2010-12-201-0/+4
|
* trim unnecessary bits from my previous 3 commitsHenry Kroll III2010-12-051-2/+1
|
* make: i386/libtcc1.a for i386-tcc (x86_64 to i386 cross)Henry Kroll III2010-12-051-2/+10
|
* make: cross compilers exist before using them (fixes parallel make)Henry Kroll III2010-12-041-1/+2
|
* make: new lib/Makefile for libtcc1.a on more platformsgrischka2010-12-041-198/+135
| | | | | | win32/64 cross-compilers now build libtcc1.a and install it together with the windows headers in a 'win32' sub-directory of TCCDIR.
* needs lib path on bcheck.o fixes undefined symbol '__try__'Henry Kroll III2010-12-021-1/+1
|
* Makefile: fix clean target, bcheck, add commentsHenry Kroll III2010-12-021-6/+14
|
* split cross libtcc1.a to separate directoriesHenry Kroll III2010-12-021-106/+147
|
* Makefile: cleanup leftovers on cross build. really works nowHenry Kroll III2010-11-301-0/+1
|
* Makefile: fix typo and resulting workaroundHenry Kroll III2010-11-301-2/+2
|
* Makefile: fix Linux cross install, cleanupHenry Kroll III2010-11-301-6/+6
|
* tccpe.c: Makefile: --enable-cross win64 cross library buildHenry Kroll III2010-11-301-7/+19
|
* make CC=tcc install: fixes strip:tcc: File format not recognizedHenry Kroll III2010-11-301-1/+2
|
* Makefile: Add .PHONY targetsHenry Kroll III2010-11-301-0/+2
|
* Makefile: Put i386-win32-tcc back into --enable-cross installHenry Kroll III2010-11-301-1/+1
|
* Makefile: build --config-cross libtcc1.a directly to win32/libHenry Kroll III2010-11-301-7/+8
|
* Remove unnecessary $(PROGS_CROSS) from non-cross builds.Henry Kroll III2010-11-291-1/+0
|
* Makefile: TCC=tccHenry Kroll III2010-11-281-1/+1
|
* Makefile: --enable-cross on x86_64 simplifiedHenry Kroll III2010-11-281-27/+11
|
* Makefile: x86_64 win32-cross add clean: targetHenry Kroll III2010-11-061-4/+6
|
* Makefile: edit commentsHenry K2010-10-291-2/+1
|
* Makefile: cross-copiler tcc1.def is now libtcc1.a, ignore mv errorsHenry Kroll III2010-10-291-7/+7
|
* Force gcc for x86_64 --enable-crossHenry Kroll III2010-10-281-1/+1
|
* Add info file creation into tcc build processThomas Preud'homme2010-09-101-3/+8
| | | | Add info file creation in tcc Makefile
* Don't load libtcc1 on arch where it doesn't existThomas Preud'homme2010-05-011-0/+1
| | | | | | | ARM architecture doesn't have any libtcc1 implementation but tcc load libtcc1.a in all case. This patch add a conditional preprocessor instruction to load libtcc1.a only when there is an implementation for the target architecture.
* reverse another unnecessary changeHenry Kroll III2010-04-291-1/+1
| | | | -m32 is set elsewhere now.
* recursive Makefiles should use $(MAKE), not "make"Henry Kroll III2010-04-291-3/+3
| | | | add clean: target for lib/tcc1.def
* remove superfluous LIBS=. (leftover from work on --disable-statc)Henry Kroll III2010-04-281-1/+0
|
* Summary of commits + added some brief comments to MakefileHenry Kroll III2010-04-261-5/+10
| | | | | | | | | | | | | | | | | | | Summary of what was changed or added so far: These won't work on Win32 * --disable-static option builds libtcca.so.1.0 and associated simlinks. This replaces libtcca.a, which is a static library with a dynamic one. * --with-selinux option uses mmap to enable tcc -run to work with Selinux. * attempt to build tcc1.def on i386 / x86_64 when --enable-cross is used. If successful, this gets around the "_start not found" or "_winstart not found" messages when i386-win32-tcc is run on these systems. I say "if" because it gave me fits of trouble on my system and not all others have been tested yet. tcc1.def is not a real .def file by the way, but it works, so it's kind of a dancing bear at this point. We're not concerned that it's getting the steps wrong. We're just happy it's not eating us for lunch.
* don't build tcc1.def on Windows.Henry Kroll III2010-04-261-11/+11
| | | | | I think the Windows build portion of the Makefile already provides their own version. If not, we can remove the check.
* Makefile fixup:Henry Kroll III2010-04-251-23/+25
| | | | | | | | | | | | * additional make target for lib/tcc1.def on non-win32 builds tcc1.def was formerly lib/libtcc1.a but has bee made into its own Makefile target, tcc1.def * use mv instead of cp on config.h this fixes a mistake I made which caused Makefile to rebuild all targets every time * make links from libtcc.so.1.0 to libtcc.so.1 and libtcc.so
* make --enable-cross work properly on x86_64Henry Kroll III2010-04-251-3/+8
| | | | | merge more changes from Fedora spec file into Makefile I did a lot of reading on Makefiles. It should be a lot less hacked now that I got rid of my temporary cross-build script. I had to build i386-win32-tcc as 32 bit in order to use it to build the windows version of libtcc1.a and move that into lib directory. Still testing, but it does build windows fib.exe smoothly now and generates shard lib, libtcc.so.1.0 and test links against it.
* remove make_libtcc1_win32.sh shell scriptHenry Kroll III2010-04-241-10/+37
| | | | and merge commands into Makefile
* make win32 version of libtcc1.a for cross-compiler on x86 / x86_64Henry Kroll III2010-04-241-4/+6
|
* add --disable-static option to build libtcc.so instead of libtcc.aHenry Kroll III2010-04-241-10/+27
| | | | for distros that want static libs
* i386-win32-tcc fails to build a valid win32 executable if builtHenry Kroll III2010-04-231-1/+1
| | | | | | | | | on x86_64 using --enable-cross. The easiest way to fix this is to put -m32 in the Makefile. Committer: Henry Kroll <henry@comptune.com> Committer: Henry Kroll <henry@comptune.com>
* Added patch to detect and use the paths for 64bit libraries asNikos Mavrogiannopoulos2010-01-281-0/+1
| | | | used by CentOS (affects X86_64 only).
* Makefile: Delete tcc-doc.html during 'make distclean'Detlef Riekenberg2010-01-261-1/+1
|
* update Makefilesgrischka2009-12-201-47/+38
|
* allow tcc be build from separate objectsgrischka2009-12-201-13/+26
| | | | If you want that, run: make NOTALLINONE=1