summaryrefslogtreecommitdiff
path: root/util/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'util/Makefile.in')
-rw-r--r--util/Makefile.in19
1 files changed, 15 insertions, 4 deletions
diff --git a/util/Makefile.in b/util/Makefile.in
index 4ad769f6..d235fffc 100644
--- a/util/Makefile.in
+++ b/util/Makefile.in
@@ -16,11 +16,18 @@ SRCS = $(srcdir)/subst.c
.c.o:
$(E) " CC $<"
$(Q) $(BUILD_CC) -c $(BUILD_CFLAGS) $< -o $@
+ $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
-PROGS= subst
+PROGS= subst symlinks
all:: $(PROGS) gen-tarball
+dirpaths.h:
+ $(E) " CREATE dirpaths.h"
+ $(Q) echo "/* fake dirpaths.h for config.h */" > dirpaths.h
+
+subst.o: dirpaths.h
+
subst: subst.o
$(E) " LD $@"
$(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o subst subst.o
@@ -29,6 +36,10 @@ copy_sparse: copy_sparse.o
$(E) " LD $@"
$(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o copy_sparse copy_sparse.o
+symlinks: symlinks.o
+ $(E) " LD $@"
+ $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o symlinks symlinks.o
+
gen-tarball: $(srcdir)/gen-tarball.in $(top_builddir)/config.status
$(E) " CONFIG.STATUS $@"
$(Q) cd $(top_builddir); CONFIG_FILES=util/gen-tarball ./config.status
@@ -39,9 +50,9 @@ tarballs: gen-tarball
sh gen-tarball all
sh gen-tarball subset
-clean:
+clean::
$(RM) -f $(PROGS) \#* *.s *.o *.a *~ core *.tar.gz gen-tarball \
- copy-sparse
+ copy-sparse dirpaths.h
mostlyclean: clean
@@ -53,4 +64,4 @@ distclean: clean
# Makefile dependencies follow. This must be the last section in
# the Makefile.in file
#
-subst.o: $(srcdir)/subst.c
+subst.o: $(srcdir)/subst.c $(top_builddir)/lib/config.h dirpaths.h