aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Kroll III <henry@comptune.com>2010-04-26 01:27:15 -0700
committerHenry Kroll III <henry@comptune.com>2010-04-26 01:27:15 -0700
commitac0b7d82d8a3fbfb6c524a9470db3d6195ccb909 (patch)
treed85d9232e4e611f9d599d40d06d0c77a1895bc30
parent765992396f2d6a5c3de22aacf0ab159dbe1a8837 (diff)
downloadtinycc-ac0b7d82d8a3fbfb6c524a9470db3d6195ccb909.tar.gz
tinycc-ac0b7d82d8a3fbfb6c524a9470db3d6195ccb909.tar.bz2
don't build tcc1.def on Windows.
I think the Windows build portion of the Makefile already provides their own version. If not, we can remove the check.
-rw-r--r--Makefile22
1 files changed, 11 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index bb6b9b6..63e2a26 100644
--- a/Makefile
+++ b/Makefile
@@ -10,17 +10,6 @@ CFLAGS_P=$(CFLAGS) -pg -static -DCONFIG_TCC_STATIC
LIBS_P=
LIBS=.
-LIBTCCB=libtcc.a
-ifdef DISABLE_STATIC
-CFLAGS+=-fPIC
-LIBTCCL=-L. -ltcc
-LIBTCCB=libtcc.so.1.0
-endif
-LIBTCCPROGS=$(LIBTCCB)
-ifndef CONFIG_WIN32
-LIBTCCPROGS+=tcc1.def
-endif
-
ifneq ($(GCC_MAJOR),2)
CFLAGS+=-fno-strict-aliasing
ifneq ($(GCC_MAJOR),3)
@@ -125,8 +114,19 @@ endif
endif
endif
+LIBTCCB=libtcc.a
+ifdef DISABLE_STATIC
+CFLAGS+=-fPIC
+LIBTCCL=-L. -ltcc
+LIBTCCB=libtcc.so.1.0
+endif
+LIBTCCPROGS=$(LIBTCCB)
+
ifdef CONFIG_CROSS
PROGS+=$(PROGS_CROSS)
+ifndef CONFIG_WIN32
+LIBTCCPROGS+=tcc1.def
+endif
endif
all: $(PROGS) $(LIBTCC1) $(BCHECK_O) $(LIBTCCPROGS) tcc-doc.html tcc.1 libtcc_test$(EXESUF)