Diff

Differences From Artifact [b9df3360bc]:

To Artifact [9e8d17e35d]:


    22     22   	else \
    23     23   		mkdir tcc >/dev/null 2>/dev/null; \
    24     24   		cd tcc && $(shell cd $(srcdir) && pwd)/tcc/configure; \
    25     25   	fi
    26     26   
    27     27   tcc/libtcc.a: tcc/config.h
    28     28   	$(MAKE) -C tcc libtcc.a
           29  +
           30  +tcc/libtcc1.a: tcc/config.h
           31  +	$(MAKE) -C tcc libtcc1.a
    29     32   
    30     33   tcltcc.o: $(srcdir)/tcltcc.c $(srcdir)/tcc/tcc.h $(srcdir)/tcc/libtcc.h tcc/config.h
    31     34   	$(CC) $(CPPFLAGS) $(CFLAGS) -o tcltcc.o -c $(srcdir)/tcltcc.c
    32     35   
    33         -tcltcc-shared.@SHOBJEXT@: tcltcc.o tcc/libtcc.a
    34         -	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHOBJLDFLAGS) -o tcltcc-shared.@SHOBJEXT@ tcltcc.o $(LIBS)
           36  +tcltcc.@SHOBJEXT@: tcltcc.o tcc/libtcc.a
           37  +	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHOBJLDFLAGS) -o tcltcc.@SHOBJEXT@ tcltcc.o $(LIBS)
    35     38   
    36     39   tcltcc-static.a: tcltcc.o tcc/libtcc.a
    37     40   	cp tcc/libtcc.a tcltcc-static.new.a
    38     41   	$(AR) rcu tcltcc-static.new.a tcltcc.o
    39     42   	-$(RANLIB) tcltcc-static.new.a
    40     43   	mv tcltcc-static.new.a tcltcc-static.a
    41     44   
    42         -install: $(TARGETS) pkgIndex.tcl
           45  +pkgIndex.tcl: pkgIndex.tcl.tmpl
           46  +	if [ "${TARGETS}" = 'tcltcc-static.a' ]; then awk '/^STATIC:/{ $$1 = ""; print }'; else awk '/^SHARED:/{ $$1 = ""; print }'; fi < pkgIndex.tcl.tmpl | sed 's@^ @@' > pkgIndex.tcl
           47  +
           48  +install: $(TARGETS) pkgIndex.tcl tcc/libtcc1.a
    43     49   	$(INSTALL) -d "$(DESTDIR)$(PACKAGE_INSTALL_DIR)"
    44         -	$(INSTALL) -m 0644 pkgIndex.tcl "$(DESTDIR)$(PACKAGE_INSTALL_DIR)"
    45     50   	$(INSTALL) -m 0755 $(TARGETS) "$(DESTDIR)$(PACKAGE_INSTALL_DIR)"
           51  +	$(INSTALL) -m 0644 pkgIndex.tcl "$(DESTDIR)$(PACKAGE_INSTALL_DIR)"
           52  +	$(INSTALL) -m 0644 tcc/libtcc1.a "$(DESTDIR)$(PACKAGE_INSTALL_DIR)"
    46     53   
    47     54   clean:
    48     55   	rm -f tcltcc.o
    49         -	rm -f tcltcc-shared.@SHOBJEXT@ tcltcc-static.a
    50         -	rm -f tcltcc-shared.@SHOBJEXT@.a tcltcc-shared.@SHOBJEXT@.def
           56  +	rm -f tcltcc.@SHOBJEXT@ tcltcc-static.a
           57  +	rm -f tcltcc.@SHOBJEXT@.a tcltcc.@SHOBJEXT@.def
    51     58   	-$(MAKE) -C tcc clean
    52     59   
    53     60   distclean: clean
    54     61   	rm -rf autom4te.cache
    55     62   	rm -f config.log config.status
    56         -	rm -f pkgIndex.tcl
           63  +	rm -f pkgIndex.tcl pkgIndex.tcl.tmpl
    57     64   	rm -f Makefile
    58     65   	-$(MAKE) -C tcc distclean
    59     66   
    60     67   mrproper: distclean
    61     68   	rm -rf __TMP__
    62     69   	rm -rf tcc
    63     70   	rm -f configure aclocal.m4
    64     71   	rm -f config.guess config.sub install-sh
    65     72   
    66     73   .PHONY: all install clean distclean mrproper