Diff

Differences From Artifact [0b56aecef2]:

To Artifact [ec9fd55538]:


     6      6   LDFLAGS =
     7      7   SHOBJLDFLAGS = @SHOBJLDFLAGS@
     8      8   LIBS = @LIBS@
     9      9   INSTALL = @INSTALL@
    10     10   PACKAGE_NAME = @PACKAGE_NAME@
    11     11   PACKAGE_VERSION = @PACKAGE_VERSION@
    12     12   TCL_PACKAGE_PATH = @TCL_PACKAGE_PATH@
           13  +TCLCONFIGPATH = @TCLCONFIGPATH@
    13     14   PACKAGE_INSTALL_DIR = $(TCL_PACKAGE_PATH)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
    14     15   TARGETS = @TARGETS@
           16  +TCC_CONFIGURE_OPTS = --extra-cflags='$(CFLAGS)' --with-tcl=$(TCLCONFIGPATH)
    15     17   srcdir = @srcdir@
    16     18   
    17     19   all: $(TARGETS)
    18     20   
    19     21   tcc/config.h:
    20     22   	if [ "$(srcdir)" = "." ]; then \
    21         -		cd tcc && ./configure; \
           23  +		cd tcc && ./configure $(TCC_CONFIGURE_OPTS); \
    22     24   	else \
    23     25   		mkdir tcc >/dev/null 2>/dev/null; \
    24         -		cd tcc && $(shell cd $(srcdir) && pwd)/tcc/configure; \
           26  +		cd tcc && $(shell cd $(srcdir) && pwd)/tcc/configure $(TCC_CONFIGURE_OPTS); \
    25     27   	fi
    26     28   
    27     29   tcc/libtcc.a: tcc/config.h
    28     30   	$(MAKE) -C tcc libtcc.a
    29     31   
    30     32   tcc/libtcc1.a: tcc/config.h
    31     33   	$(MAKE) -C tcc libtcc1.a
    32     34   
    33     35   tcltcc.o: $(srcdir)/tcltcc.c $(srcdir)/tcc/tcc.h $(srcdir)/tcc/libtcc.h tcc/config.h
    34     36   	$(CC) $(CPPFLAGS) $(CFLAGS) -o tcltcc.o -c $(srcdir)/tcltcc.c
    35     37   
    36     38   tcltcc.@SHOBJEXT@: tcltcc.o tcc/libtcc.a
    37         -	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHOBJLDFLAGS) -o tcltcc.@SHOBJEXT@ tcltcc.o $(LIBS)
           39  +	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHOBJLDFLAGS) -o tcltcc.@SHOBJEXT@ tcltcc.o tcc/libtcc.a $(LIBS)
    38     40   
    39     41   tcltcc-static.a: tcltcc.o tcc/libtcc.a
    40     42   	cp tcc/libtcc.a tcltcc-static.new.a
    41     43   	$(AR) rcu tcltcc-static.new.a tcltcc.o
    42     44   	-$(RANLIB) tcltcc-static.new.a
    43     45   	mv tcltcc-static.new.a tcltcc-static.a
    44     46