56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
-
+
+
|
tcc4tcl-static.a: tcc4tcl.o tcc/libtcc.a
cp tcc/libtcc.a tcc4tcl-static.new.a
$(AR) rcu tcc4tcl-static.new.a tcc4tcl.o
-$(RANLIB) tcc4tcl-static.new.a
mv tcc4tcl-static.new.a tcc4tcl-static.a
install: $(TARGET) pkgIndex.tcl $(srcdir)/tcc4tcl.tcl tcc/libtcc1.a $(shell echo $(srcdir)/tcc/include/*) $(shell echo $(srcdir)/tcc/win32/lib/*.c) $(srcdir)/headers.awk $(srcdir)/patch-headers.sh
install: $(TARGET) pkgIndex.tcl $(srcdir)/tcc4tcl.tcl $(srcdir)/tcc4critcl.tcl tcc/libtcc1.a $(shell echo $(srcdir)/tcc/include/*) $(shell echo $(srcdir)/tcc/win32/lib/*.c) $(srcdir)/headers.awk $(srcdir)/patch-headers.sh
$(INSTALL) -d "$(DESTDIR)$(PACKAGE_INSTALL_DIR)"
$(INSTALL) -d "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/lib"
$(INSTALL) -d "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include"
$(INSTALL) -m 0755 $(TARGET) "$(DESTDIR)$(PACKAGE_INSTALL_DIR)"
$(INSTALL) -m 0644 pkgIndex.tcl "$(DESTDIR)$(PACKAGE_INSTALL_DIR)"
$(INSTALL) -m 0644 $(srcdir)/tcc4tcl.tcl "$(DESTDIR)$(PACKAGE_INSTALL_DIR)"
$(INSTALL) -m 0644 $(srcdir)/tcc4critcl.tcl "$(DESTDIR)$(PACKAGE_INSTALL_DIR)"
$(INSTALL) -m 0644 tcc/libtcc1.a "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/lib"
$(INSTALL) -m 0644 $(shell echo $(srcdir)/tcc/win32/lib/*.c) "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/lib"
$(INSTALL) -m 0644 $(shell echo $(srcdir)/tcc/include/*) "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include"
@if ! echo "_WIN32" | $(CPP) $(CPPFLAGS) - | grep '^_WIN32$$' >/dev/null; then \
echo cp -r $(srcdir)/tcc/win32/include/* "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include/"; \
cp -r $(srcdir)/tcc/win32/include/* "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include/"; \
echo cp -r $(srcdir)/tcc/win32/lib/*.def "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/lib/"; \
|
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
-
+
|
done
$(srcdir)/patch-headers.sh "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include"
test: test.tcl
rm -rf __TMP__
$(MAKE) install tcllibdir=$(shell pwd)/__TMP__
-if [ "$(PACKAGE_VERSION)" = '@@VERS@@' ]; then cd __TMP__/* && ( \
for file in tcc4tcl.tcl pkgIndex.tcl; do \
for file in tcc4tcl.tcl tcc4critcl.tcl pkgIndex.tcl; do \
sed 's/@@VERS@@/0.0/g' "$${file}" > "$${file}.new"; \
cat "$${file}.new" > "$${file}"; \
rm -f "$${file}.new"; \
done \
); fi
if [ '@build@' = '@host@' ]; then TCC4TCL_TEST_RUN_NATIVE=1; export TCC4TCL_TEST_RUN_NATIVE; fi; $(TCLSH) $(srcdir)/test.tcl __TMP__
echo Tests Completed OK > TEST-STATUS
|