Index: Makefile.in ================================================================== --- Makefile.in +++ Makefile.in @@ -1,20 +1,28 @@ +prefix = UNSPECIFIED +exec_prefix = @exec_prefix@ +libdir = @libdir@ + +TARGETS = @TARGETS@ + CC = @CC@ AR = @AR@ RANLIB = @RANLIB@ CFLAGS = @CFLAGS@ @SHOBJFLAGS@ CPPFLAGS = @CPPFLAGS@ -I@srcdir@ -I@srcdir@/tcc -Itcc @DEFS@ LDFLAGS = SHOBJLDFLAGS = @SHOBJLDFLAGS@ LIBS = @LIBS@ INSTALL = @INSTALL@ + PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ -TCL_PACKAGE_PATH = @TCL_PACKAGE_PATH@ + TCLCONFIGPATH = @TCLCONFIGPATH@ -PACKAGE_INSTALL_DIR = $(TCL_PACKAGE_PATH)/$(PACKAGE_NAME)-$(PACKAGE_VERSION) -TARGETS = @TARGETS@ +TCL_PACKAGE_PATH = @TCL_PACKAGE_PATH@ +tcllibdir = $(shell if echo "$(libdir)" | grep '^UNSPECIFIED' >/dev/null; then echo $(TCL_PACKAGE_PATH); else echo "$(libdir)"; fi) +PACKAGE_INSTALL_DIR = $(tcllibdir)/$(PACKAGE_NAME)-$(PACKAGE_VERSION) TCC_CONFIGURE_OPTS = --extra-cflags='$(CPPFLAGS) $(CFLAGS)' --with-tcl=$(TCLCONFIGPATH) srcdir = @srcdir@ all: $(TARGETS)