aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2
diff options
context:
space:
mode:
authorgrischka <grischka>2014-04-07 11:13:19 +0200
committergrischka <grischka>2014-04-07 11:16:06 +0200
commit76accfb8d5b16664207fa8ae43d02b015bc8e019 (patch)
treedbaa047719fc7fc906d10345c430ac7ce391554f /tests/tests2
parentf01373765b1ac5270fbb1859a2f6d42510f34cde (diff)
downloadtinycc-76accfb8d5b16664207fa8ae43d02b015bc8e019.tar.gz
tinycc-76accfb8d5b16664207fa8ae43d02b015bc8e019.tar.bz2
win32: libtcc1.a needs to be built with tcc
gcc/mingw produces msvc compatible pecoff objects, tcc only knows ELF.
Diffstat (limited to 'tests/tests2')
-rw-r--r--tests/tests2/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tests2/Makefile b/tests/tests2/Makefile
index d523b77..e5790c7 100644
--- a/tests/tests2/Makefile
+++ b/tests/tests2/Makefile
@@ -1,10 +1,10 @@
TOP = ../..
include $(TOP)/Makefile
-VPATH = $(top_srcdir)/tests/tests2
-TCCFLAGS = -B$(TOP) -I$(top_srcdir)/include
ifdef CONFIG_WIN32
TCCFLAGS = -B$(top_srcdir)/win32 -I$(top_srcdir)/include -L$(TOP)
+else
+ TCCFLAGS = -B$(TOP) -I$(top_srcdir)/include -lm
endif
ifeq ($(TARGETOS),Darwin)
@@ -94,7 +94,7 @@ endif
@if [ "x`echo $* | grep args`" != "x" ]; \
then $(TCC) $< -norunsrc -run $(notdir $<) - arg1 arg2 arg3 arg4 >$*.output 2>&1; \
else $(TCC) -run $< >$*.output 2>&1; \
- ($(TCC) -o $*.exe $< -lm && ./$*.exe) >$*.output2 2>&1; \
+ ($(TCC) -o $*.exe $< && ./$*.exe) >$*.output2 2>&1; \
fi || true
@if diff -bu $(<:.c=.expect) $*.output ; \
then rm -f $*.output; \