1# -*- Makefile -*- Time-stamp: <07/05/31 22:18:20 ptr> 2# 3# Copyright (c) 1997-1999, 2002, 2003, 2005, 2006 4# Petr Ovtchenkov 5# 6# Portion Copyright (c) 1999-2001 7# Parallel Graphics Ltd. 8# 9# Licensed under the Academic Free License version 3.0 10# 11 12PHONY += clean distclean mostlyclean maintainer-clean uninstall 13 14define obj_clean 15clean:: 16 @-rm -f $$($(1)_OBJ) $$($(1)_DEP) 17 @-rm -f $$($(1)_OBJ_DBG) $$($(1)_DEP_DBG) 18 @-rm -f $$($(1)_OBJ_STLDBG) $$($(1)_DEP_STLDBG) 19endef 20 21clean:: 22 @-rm -f core core.* 23ifdef PRGNAME 24 @-rm -f $(OBJ) $(DEP) 25 @-rm -f $(OBJ_DBG) $(DEP_DBG) 26 @-rm -f $(OBJ_STLDBG) $(DEP_STLDBG) 27endif 28ifdef LIBNAME 29 @-rm -f $(OBJ) $(DEP) $(_LSUPCPP_AUX_OBJ) $(_LSUPCPP_AUX_TSMP) 30 @-rm -f $(OBJ_DBG) $(DEP_DBG) 31 @-rm -f $(OBJ_STLDBG) $(DEP_STLDBG) 32endif 33 34$(foreach prg,$(PRGNAMES),$(eval $(call obj_clean,$(prg)))) 35 36$(foreach prg,$(LIBNAMES),$(eval $(call obj_clean,$(prg)))) 37 38distclean:: clean 39# $(DEPENDS_COLLECTION) removed before directory, 40# see app/clean.mak and lib/clean.mak 41 42mostlyclean:: clean 43 @-rm -f $(DEPENDS_COLLECTION) 44 @-rm -f TAGS tags 45 46maintainer-clean:: distclean 47 @rm -f ${RULESBASE}/gmake/config.mak 48 @-rm -f TAGS tags 49