Diff

Differences From Artifact [87dfad392f]:

To Artifact [b9df3360bc]:


13
14
15
16
17
18
19
20
21
22
23
24





25
26
27
28
29
30
31
13
14
15
16
17
18
19





20
21
22
23
24
25
26
27
28
29
30
31







-
-
-
-
-
+
+
+
+
+







PACKAGE_INSTALL_DIR = $(TCL_PACKAGE_PATH)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
TARGETS = @TARGETS@
srcdir = @srcdir@

all: $(TARGETS)

tcc/config.h:
	if [ "$(srcdir)" = "." ]; then
		cd tcc && ./configure
	else
		mkdir tcc >/dev/null 2>/dev/null || true
		cd tcc && $(shell cd $(srcdir) && pwd)/tcc/configure
	if [ "$(srcdir)" = "." ]; then \
		cd tcc && ./configure; \
	else \
		mkdir tcc >/dev/null 2>/dev/null; \
		cd tcc && $(shell cd $(srcdir) && pwd)/tcc/configure; \
	fi

tcc/libtcc.a: tcc/config.h
	$(MAKE) -C tcc libtcc.a

tcltcc.o: $(srcdir)/tcltcc.c $(srcdir)/tcc/tcc.h $(srcdir)/tcc/libtcc.h tcc/config.h
	$(CC) $(CPPFLAGS) $(CFLAGS) -o tcltcc.o -c $(srcdir)/tcltcc.c