diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2013-01-30 19:39:29 +0100 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2013-01-30 19:39:29 +0100 |
| commit | 1b1e7ee1fd2f269872128dc5e8b830bd55dfa80c (patch) | |
| tree | ec54d27fc97970fa893dff4463bc540cec540d3e /Makefile | |
| parent | 913cd6270bb68857f366787efef344ba08188071 (diff) | |
| download | tinycc-1b1e7ee1fd2f269872128dc5e8b830bd55dfa80c.tar.gz tinycc-1b1e7ee1fd2f269872128dc5e8b830bd55dfa80c.tar.bz2 | |
Fix cross-compilation out-of-tree build
Add tcc.c as a prerequesite of the %-tcc$(EXESUF) target and compile $<
instead of tcc.c to make sure tcc.c is search in directories specified
by VPATH.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -170,8 +170,8 @@ tcc$(EXESUF): tcc.o $(LIBTCC) $(CC) -o $@ $^ $(LIBS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LINK_LIBTCC) # Cross Tiny C Compilers -%-tcc$(EXESUF): - $(CC) -o $@ tcc.c -DONE_SOURCE $(DEFINES) $(CPPFLAGS) $(CFLAGS) $(LIBS) $(LDFLAGS) +%-tcc$(EXESUF): tcc.c + $(CC) -o $@ $< -DONE_SOURCE $(DEFINES) $(CPPFLAGS) $(CFLAGS) $(LIBS) $(LDFLAGS) $(I386_CROSS): DEFINES = -DTCC_TARGET_I386 \ -DCONFIG_TCCDIR="\"$(tccdir)/i386\"" |
