aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.common
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-02-14 20:33:57 +0000
committerGuy Harris <guy@alum.mit.edu>2005-02-14 20:33:57 +0000
commit6616a3770c6ba8f0154e9887f5179af59a8f4b2c (patch)
tree97ab3ed42dd7c943f067a2cb2243b19f8978aff5 /Makefile.common
parentb4b5a4776fb35f7a4431055a1295f5f162e7b355 (diff)
Make the "maintainer-clean" rules get rid of some additional generated
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and GENERATED_FILES macros in Makefile.common files, along the lines of what wiretap/Makefile.common has. Clean up "*~" files with "make clean" rather than only "make distclean" in some additional places. Add "maintainer-clean" rules to the Makefile.nmake files, paralelling the ones in the automake-generated Makefile.in files, using the GENERATED_FILES macros from Makefile.common files. In some cases, move the cleanup of files from "make distclean" to "make maintainer-clean", and in other cases, put in a comment indicating why we're not doing that (because some files that are distributed in the source tarballs, namely Flex output, were built with a UN*X Flex and won't compile on Windows, so we get rid of them with "make distclean" so you can clean up stuff that *has* to be re-generated for Windows). Clean up some *CLEANFILES definitions - get rid of ones that no longer apply as files were moved or that add to the definition a name that's already there. svn path=/trunk/; revision=13402
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common20
1 files changed, 18 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common
index d47c72d02d..287c8e3856 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -48,10 +48,26 @@ DISSECTOR_SUPPORT_INCLUDES = \
x264_prt_id.h
# "BUILT_SOURCES" are built before any "make all" or "make check" targets.
-BUILT_SOURCES = \
- svnversion.h \
+BUILT_HEADER_FILES = \
+ svnversion.h
+
+BUILT_C_FILES = \
ps.c
+BUILT_SOURCES = $(BUILT_C_FILES) $(BUILT_HEADER_FILES)
+
+# Header files generated from source files.
+GENERATED_HEADER_FILES = \
+ $(BUILT_HEADER_FILES)
+
+# C source files generated from source files.
+GENERATED_C_FILES = \
+ $(BUILT_C_FILES) \
+ tethereal-tap-register.c
+
+# All the generated files.
+GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
+
# sources common for ethereal and tethereal
ETHEREAL_COMMON_SRC = \
$(PLATFORM_SRC) \