Diff

Differences From Artifact [bf12e46800]:

To Artifact [21664f4410]:


    25     25   PACKAGE_INSTALL_DIR = $(tcllibdir)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
    26     26   TCC_CONFIGURE_OPTS = --cc='$(CC)' --extra-cflags='$(CPPFLAGS) $(CFLAGS) @TCC_EXTRA_CFLAGS@' --with-tcl=$(TCLCONFIGPATH) --sysincludepaths='{B}/include@HOST_PATH_SEPARATOR@{B}/include/1@HOST_PATH_SEPARATOR@{B}/include/2@HOST_PATH_SEPARATOR@{B}/include/3@HOST_PATH_SEPARATOR@{B}/include/4@HOST_PATH_SEPARATOR@{B}/include/5@HOST_PATH_SEPARATOR@{B}/include/6@HOST_PATH_SEPARATOR@{B}/include/7@HOST_PATH_SEPARATOR@{B}/include/8@HOST_PATH_SEPARATOR@{B}/include/9' --libpaths='{B}/lib' @TCC_CONFIGURE_OPTS@
    27     27   INSTALL_HEADERS = tcl.h assert.h ctype.h errno.h float.h limits.h locale.h math.h setjmp.h signal.h stdarg.h stddef.h stdint.h stdio.h stdlib.h string.h time.h wctype.h
    28     28   srcdir = @srcdir@
    29     29   host_os = @host_os@
    30     30   @SET_MAKE@
    31     31   
    32         -all: $(TARGET)
           32  +all: $(TARGET) tcc/libtcc1.a
    33     33   
    34     34   tcc/config.h:
    35     35   	if [ "$(srcdir)" = "." ]; then \
    36     36   		cd tcc && ./configure $(TCC_CONFIGURE_OPTS); \
    37     37   	else \
    38     38   		mkdir tcc >/dev/null 2>/dev/null; \
    39     39   		cd tcc && $(shell cd $(srcdir) && pwd)/tcc/configure $(TCC_CONFIGURE_OPTS); \
    40     40   	fi
    41     41   
    42     42   tcc/libtcc.a: tcc/config.h
    43     43   	$(MAKE) -C tcc libtcc.a
    44     44   
    45     45   tcc/libtcc1.a: tcc/config.h
    46         -	-$(MAKE) -C tcc tcc
           46  +	-if [ '@build@' = '@host@' ]; then $(MAKE) -C tcc tcc; fi
    47     47   	$(MAKE) -C tcc libtcc1.a
    48     48   
    49     49   tcc4tcl.o: $(srcdir)/tcc4tcl.c $(srcdir)/tcc/tcc.h $(srcdir)/tcc/libtcc.h tcc/config.h
    50     50   	$(CC) $(CPPFLAGS) $(CFLAGS) -o tcc4tcl.o -c $(srcdir)/tcc4tcl.c
    51     51   
    52     52   tcc4tcl.@SHOBJEXT@: tcc4tcl.o tcc/libtcc.a
    53     53   	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHOBJLDFLAGS) -o tcc4tcl.@SHOBJEXT@ tcc4tcl.o tcc/libtcc.a $(LIBS)