summaryrefslogtreecommitdiff
path: root/include/makeinclude/rules.local.GNU
diff options
context:
space:
mode:
authordhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-11-12 07:58:07 +0000
committerdhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-11-12 07:58:07 +0000
commitae860fd8b9246f5f6488925b8969e0140b06abcb (patch)
tree5d7d0e614aeff56dd5ffe6ad43b1f84e5ba3b22d /include/makeinclude/rules.local.GNU
parentaf01b58013bfddf9c317e840322d57b8c7de478b (diff)
downloadATCD-ae860fd8b9246f5f6488925b8969e0140b06abcb.tar.gz
ChangeLogTag:Wed Nov 12 07:40:27 UTC 2003 Don Hinton <dhinton@dresystems.com>
Diffstat (limited to 'include/makeinclude/rules.local.GNU')
-rw-r--r--include/makeinclude/rules.local.GNU51
1 files changed, 50 insertions, 1 deletions
diff --git a/include/makeinclude/rules.local.GNU b/include/makeinclude/rules.local.GNU
index d63cbae835a..59373ca9dca 100644
--- a/include/makeinclude/rules.local.GNU
+++ b/include/makeinclude/rules.local.GNU
@@ -229,8 +229,57 @@ ifneq ($(IDL_FILES),)
-$(RM) $(addsuffix $(IDL_SERVER_THDR_EXT), $(IDL_FILES)) $(addsuffix $(IDL_SERVER_TINL_EXT), $(IDL_FILES)) $(addsuffix $(IDL_SERVER_TSRC_EXT),$(IDL_FILES))
endif
+# Set the cleanup targets
+ifeq ($(CLEAN_BIN),)
+ ifneq ($(BIN),)
+ CLEAN_BIN = $(BIN)
+ else
+ ifneq ($(BIN2),)
+ CLEAN_BIN = $(BIN2)
+ else
+ CLEAN_BIN = $(BIN_UNCHECKED)
+ endif
+ endif
+endif
+
+ifeq ($(CLEAN_LIB),)
+ ifneq ($(LIB),)
+ CLEAN_LIB = $(LIB)
+ else
+ ifneq ($(LIB2),)
+ CLEAN_LIB = $(LIB2)
+ else
+ CLEAN_LIB = $(LIB_UNCHECKED)
+ endif
+ endif
+endif
+
+ifeq ($(CLEAN_SHLIB),)
+ ifneq ($(SHLIB),)
+ CLEAN_SHLIB = $(SHLIB)
+ else
+ ifneq ($(SHLIB2),)
+ CLEAN_SHLIB = $(SHLIB2)
+ else
+ CLEAN_SHLIB = $(SHLIB_UNCHECKED)
+ endif
+ endif
+endif
+
+ifeq ($(CLEAN_SHLIBA),)
+ ifneq ($(SHLIBA),)
+ CLEAN_SHLIBA = $(SHLIBA)
+ else
+ ifneq ($(SHLIBA2),)
+ CLEAN_SHLIBA = $(SHLIBA2)
+ else
+ CLEAN_SHLIBA = $(SHLIBA2)
+ endif
+ endif
+endif
+
realclean.local: clean.local deinstall.local clean_idl_stubs.local
- -$(RM) $(BIN:%=%$(EXEEXT)) $(BIN:%=%_debug$(EXEEXT)) $(BIN:%=%_profile$(EXEEXT)) $(BIN:%=%_optimize$(EXEEXT)) $(LIB:%=%) $(LIB:%=%_debug) $(LIB:%=%_profile) $(LIB:%=%_optimize) $(SHLIB:%=%) $(SHLIB:%=%.*) $(SHLIB:%.so=%.a) $(SHLIB:%=%_debug) $(SHLIB:%=%_profile) $(SHLIB:%=%_optimize) $(SHLIBA:%=%) $(BIN2:%=%$(EXEEXT)) $(BIN2:%=%_debug$(EXEEXT)) $(BIN2:%=%_profile$(EXEEXT)) $(BIN2:%=%_optimize$(EXEEXT)) $(LIB2:%=%) $(LIB2:%=%_debug) $(LIB2:%=%_profile) $(LIB2:%=%_optimize) $(SHLIB2:%=%) $(SHLIB2:%=%_debug) $(SHLIB2:%=%_profile) $(SHLIB2:%=%_optimize) $(SHLIBA2:%=%)
+ -$(RM) $(CLEAN_BIN:%=%$(EXEEXT)) $(CLEAN_BIN:%=%_debug$(EXEEXT)) $(CLEAN_BIN:%=%_profile$(EXEEXT)) $(CLEAN_BIN:%=%_optimize$(EXEEXT)) $(CLEAN_LIB:%=%) $(CLEAN_LIB:%=%_debug) $(CLEAN_LIB:%=%_profile) $(CLEAN_LIB:%=%_optimize) $(CLEAN_SHLIB:%=%) $(CLEAN_SHLIB:%=%.*) $(CLEAN_SHLIB:%.so=%.a) $(CLEAN_SHLIB:%=%_debug) $(CLEAN_SHLIB:%=%_profile) $(CLEAN_SHLIB:%=%_optimize) $(CLEAN_SHLIBA:%=%)
#----------------------------------------------------------------------------
# Dependency generation target