Compiled tcc.exe location is under $(top_srcdir)/win32
Unified · Split
| @@ -60,12 +60,13 @@ endif · 59 unmodified lines | ||
| 60 | 60 | |
| 61 | 61 | # run local version of tcc with local libraries and includes |
| 62 | 62 | TCCFLAGS = -B$(TOP) -I$(TOP) -I$(top_srcdir) -I$(top_srcdir)/include -L$(TOP) |
| 63 | +TCC = $(TOP)/tcc $(TCCFLAGS) | |
| 63 | 64 | ifdef CONFIG_WIN32 |
| 64 | 65 | TCCFLAGS = -B$(top_srcdir)/win32 -I$(top_srcdir) -I$(top_srcdir)/include -L$(TOP) |
| 66 | + TCC = $(TOP)/win32/tcc $(TCCFLAGS) | |
| 65 | 67 | endif |
| 66 | 68 | XTCCFLAGS = -B$(TOP) -B$(top_srcdir)/win32 -I$(TOP) -I$(top_srcdir) -I$(top_srcdir)/include |
| 67 | 69 | |
| 68 | −TCC = $(TOP)/tcc $(TCCFLAGS) | |
| 69 | 70 | RUN_TCC = $(NATIVE_DEFINES) -DONE_SOURCE -run $(top_srcdir)/tcc.c $(TCCFLAGS) |
| 70 | 71 | |
| 71 | 72 | DISAS = objdump -d |
| @@ -2,9 +2,16 @@ · 1 unmodified line | ||
| 2 | 2 | # credits: 01..13.c from the pcc cpp-tests suite |
| 3 | 3 | # |
| 4 | 4 | |
| 5 | −TCC = ../../tcc | |
| 5 | +TOP = ../.. | |
| 6 | +include $(TOP)/Makefile | |
| 7 | + | |
| 8 | +TCC = $(TOP)/tcc | |
| 6 | 9 | TESTS = $(patsubst %.c,%.test,$(wildcard *.c)) |
| 7 | 10 | |
| 11 | +ifdef CONFIG_WIN32 | |
| 12 | + TCC = $(top_srcdir)/win32/tcc | |
| 13 | +endif | |
| 14 | + | |
| 8 | 15 | all test : $(TESTS) |
| 9 | 16 | |
| 10 | 17 | %.test: %.c %.expect |
| @@ -19,6 +19,10 @@ endif · 18 unmodified lines | ||
| 19 | 19 | |
| 20 | 20 | TCC = $(TOP)/tcc $(TCCFLAGS) |
| 21 | 21 | |
| 22 | +ifdef CONFIG_WIN32 | |
| 23 | + TCC = $(top_srcdir)/win32/tcc $(TCCFLAGS) | |
| 24 | +endif | |
| 25 | + | |
| 22 | 26 | TESTS = $(patsubst %.c,%.test,$(wildcard *.c)) |
| 23 | 27 | |
| 24 | 28 | # 34_array_assignment.test -- array assignment is not in C standard |