56 |
rm -f *~ core $(ALL) $(library) |
rm -f *~ core $(ALL) $(library) |
57 |
|
|
58 |
distclean: clean |
distclean: clean |
59 |
rm -f *.d Makefile |
rm -rf .depend |
60 |
|
rm -f Makefile |
61 |
|
|
62 |
realclean: distclean |
realclean: distclean |
63 |
rm -f tags |
rm -f tags |
65 |
TAGS: |
TAGS: |
66 |
$(MKTAGS) $(srcdir)/*.[ch] |
$(MKTAGS) $(srcdir)/*.[ch] |
67 |
|
|
68 |
# These lines sort out proper dependencies, done if --enable-debug |
# These lines sort out proper dependencies. |
69 |
# passed to configure. To override uncomment the following line. |
ifeq (,$(findstring clean,$(MAKECMDGOALS))) |
70 |
#debug=on |
SRCS = $(notdir $(wildcard $(srcdir)/*.c)) |
71 |
ifneq ($(clean),yes) |
-include $(SRCS:%.c=.depend/%.d) |
|
|
|
|
ifeq ($(debug),on) |
|
|
SRCS = $(notdir $(wildcard $(srcdir)/*.c)) |
|
|
include $(SRCS:.c=.d) |
|
|
endif |
|
|
|
|
72 |
endif |
endif |