head	1.6;
access;
symbols
	RELEASE_8_3_0:1.5
	RELEASE_9_0_0:1.5
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.5
	RELEASE_8_1_0:1.5
	RELEASE_7_3_0:1.5
	RELEASE_8_0_0:1.5
	RELEASE_7_2_0:1.3
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1;
locks; strict;
comment	@# @;


1.6
date	2013.03.02.20.55.59;	author svnexp;	state Exp;
branches;
next	1.5;

1.5
date	2009.08.21.04.39.28;	author dinoex;	state Exp;
branches;
next	1.4;

1.4
date	2009.05.21.04.42.25;	author dinoex;	state Exp;
branches;
next	1.3;

1.3
date	2008.11.30.14.03.58;	author dinoex;	state Exp;
branches;
next	1.2;

1.2
date	2007.02.19.09.37.14;	author gabor;	state dead;
branches;
next	1.1;

1.1
date	2006.05.16.01.42.47;	author jkoshy;	state Exp;
branches;
next	;


desc
@@


1.6
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313251
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@--- Makefile.orig	2009-05-18 16:27:06.000000000 +0200
+++ Makefile	2009-07-03 07:40:15.000000000 +0200
@@@@ -28,6 +28,9 @@@@
 ifeq ($(ARCH),x86-64)
 CFLAGS+=-Wno-pointer-sign
 endif
+ifeq ($(ARCH),amd64)
+CFLAGS+=-Wno-pointer-sign
+endif
 
 ifndef CONFIG_WIN32
 LIBS=-lm
@@@@ -53,6 +56,11 @@@@
 ifeq ($(ARCH),x86-64)
 NATIVE_TARGET=-DTCC_TARGET_X86_64
 LIBTCC1=libtcc1.a
+else
+ifeq ($(ARCH),amd64)
+NATIVE_TARGET=-DTCC_TARGET_X86_64
+LIBTCC1=libtcc1.a
+endif
 endif
 endif
 endif
@@@@ -99,6 +107,10 @@@@
 NATIVE_FILES=$(X86_64_FILES)
 PROGS_CROSS=$(I386_CROSS) $(WIN32_CROSS) $(ARM_CROSS) $(C67_CROSS)
 else
+ifeq ($(ARCH),amd64)
+NATIVE_FILES=$(X86_64_FILES)
+PROGS_CROSS=$(I386_CROSS) $(WIN32_CROSS) $(ARM_CROSS) $(C67_CROSS)
+else
 ifeq ($(ARCH),arm)
 NATIVE_FILES=$(ARM_FILES)
 PROGS_CROSS=$(I386_CROSS) $(X64_CROSS) $(WIN32_CROSS) $(C67_CROSS)
@@@@ -106,6 +118,7 @@@@
 endif
 endif
 endif
+endif
 
 ifdef CONFIG_CROSS
 PROGS+=$(PROGS_CROSS)
@@@@ -180,7 +193,7 @@@@
 endif
 
 %.o: %.c
-	$(LIBTCC1_CC) -o $@@ -c $< -O2 -Wall
+	$(LIBTCC1_CC) -o $@@ -c $< $(CFLAGS) -Wall
 
 %.o: %.S
 	$(LIBTCC1_CC) -o $@@ -c $<
@@@@ -189,7 +202,7 @@@@
 	$(AR) rcs $@@ $^
 
 bcheck.o: bcheck.c
-	$(CC) -o $@@ -c $< -O2 -Wall
+	$(CC) -o $@@ -c $< $(CFLAGS) -Wall
 
 # install
 TCC_INCLUDES = stdarg.h stddef.h stdbool.h float.h varargs.h tcclib.h
@@@@ -210,8 +223,10 @@@@
 	$(INSTALL) -m644 $(BCHECK_O) "$(tccdir)"
 endif
 	$(INSTALL) -m644 $(addprefix include/,$(TCC_INCLUDES)) "$(tccdir)/include"
+ifndef NOPORTDOCS
 	mkdir -p "$(docdir)"
 	$(INSTALL) -m644 tcc-doc.html "$(docdir)"
+endif
 	mkdir -p "$(libdir)"
 	$(INSTALL) -m644 libtcc.a "$(libdir)"
 	mkdir -p "$(includedir)"
@


1.5
log
@- add experimetal support for new archs
@
text
@d44 18
d66 1
a66 1
+ifndef NOPORTSDOC
@


1.4
log
@- update to  0.9.25
http://bellard.org/tcc/changelog.html
@
text
@d2 43
a44 2
+++ Makefile	2009-05-21 06:39:33.000000000 +0200
@@@@ -210,8 +210,10 @@@@
@


1.3
log
@Tiny C Compiler

Features:
* SMALL! You can compile and execute C code everywhere, for example on rescue
  disks (about 100KB for x86 TCC executable, including C preprocessor,
  C compiler, assembler and linker).
* FAST! tcc generates x86 code. No byte code overhead. Compile, assemble and
  link several times faster than GCC.
* UNLIMITED! Any C dynamic library can be used directly. TCC is heading torward
  full ISOC99 compliance. TCC can of course compile itself.
* SAFE! tcc includes an optional memory and bound checker. Bound checked code
  can be mixed freely with standard code.
* Compile and execute C source directly. No linking or assembly necessary.
  Full C preprocessor and GNU-like assembler included.
* C script supported : just add '#!/usr/local/bin/tcc -run' at the first line
  of your C source, and execute it directly from the command line.
* With libtcc, you can use TCC as a backend for dynamic code generation.

WWW: http://bellard.org/tcc/
@
text
@d1 4
a4 5
--- Makefile.orig	2008-03-31 09:24:00.000000000 +0200
+++ Makefile	2008-11-30 14:57:08.000000000 +0100
@@@@ -221,11 +221,13 @@@@
 	$(INSTALL) -m644 stdarg.h stddef.h stdbool.h float.h varargs.h \
                    tcclib.h "$(tccdir)/include"
d6 1
a9 3
 ifdef CONFIG_WIN32
 	$(INSTALL) -m644 win32/readme.txt "$(docdir)"
 endif
d11 3
a13 3
 
 clean:
 	rm -f *~ *.o *.a tcc tcct tcc_g tcctest.ref *.bin *.i ex2 \
@


1.2
log
@Remove expired port:

2006-12-01 lang/tcc: is only for i386, and you are running amd64.

Approved by:	erwin (mentor, implicit)
@
text
@d1 13
a13 3
--- Makefile.orig	Tue May 16 06:33:17 2006
+++ Makefile	Tue May 16 06:33:28 2006
@@@@ -5,7 +5,7 @@@@
d15 2
a16 7
 CFLAGS=-O2 -g -Wall
 ifndef CONFIG_WIN32
-LIBS=-ldl
+#LIBS=-ldl
 BCHECK_O=bcheck.o
 endif
 CFLAGS_P=$(CFLAGS) -pg -static -DCONFIG_TCC_STATIC
@


1.1
log
@A new port for TinyCC, a small and fast C compiler.

Tcc's features include:
  * Small: You can compile and execute C code everywhere, for
    example on rescue disks (about 100KB for x86 TCC executable,
    including C preprocessor, C compiler, assembler and linker).
  * Fast: tcc generates optimized x86 code. No byte code overhead.
    Compile, assemble and link several times faster than GCC.
  * Unlimited: Any C dynamic library can be used directly. TCC is
    heading torward full ISOC99 compliance. TCC can of course compile
    itself.
  * Safe: tcc includes an optional memory and bound checker. Bound
    checked code can be mixed freely with standard code.
  * Compile and execute C source directly. No linking or assembly
    necessary. Full C preprocessor and GNU-like assembler included.
  * C script supported : just add '#!/usr/local/bin/tcc -run' at
    the first line of your C source, and execute it directly from the
    command line.
  * With libtcc, you can use TCC as a backend for dynamic code
    generation.
@
text
@@

