| # |
| # Makefile.rules |
| # |
| # This library is free software; you can redistribute it and/or |
| # modify it under the terms of the GNU Lesser General Public |
| # License as published by the Free Software Foundation version 2.1 |
| # of the License. |
| # |
| # Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch> |
| # |
| |
| .SUFFIXES: |
| .SUFFIXES: .d .c |
| |
| %.o: %.c |
| @echo " CC $<"; \ |
| $(CC) $(CFLAGS) -c -o $@ $< |
| |
| %.d: %.c |
| @echo " DEP $<"; \ |
| $(CC) $(DEPFLAGS) $< > $@.tmp; \ |
| sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.tmp > $@; \ |
| rm -f $@.tmp |
| |
| Makefile.opts: |
| @echo "***" |
| @echo "*** No configuration found, please run ./configure" |
| @echo "***" |
| @exit 1 |
| |
| ifneq ($(MAKECMDGOALS),clean) |
| ifneq ($(MAKECMDGOALS),distclean) |
| ifneq ($(DEPS),) |
| -include $(DEPS) |
| endif |
| endif |
| endif |