This commit was generated by cvs2svn to compensate for changes in r786,
[libnl.git] / Makefile.rules
1 #
2 # Makefile.rules
3 #
4 #       This library is free software; you can redistribute it and/or
5 #       modify it under the terms of the GNU Lesser General Public
6 #       License as published by the Free Software Foundation version 2.1
7 #       of the License.
8 #
9 # Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
10 #
11
12 .SUFFIXES:
13 .SUFFIXES: .deps/%.d .c
14
15 %.o: %.c
16         @echo "  CC $<"; \
17         $(CC) $(CFLAGS) -c -o $@ $<
18
19 .deps/%.d: %.c
20         @echo "  DEP $<"; \
21         $(CC) $(DEPFLAGS) $< > $@.tmp; \
22         sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.tmp > $@; \
23         rm -f $@.tmp
24
25 Makefile.opts:
26         @echo "***"
27         @echo "*** No configuration found, please run ./configure"
28         @echo "***"
29         @exit 1
30
31 ifneq ($(MAKECMDGOALS),clean)
32 ifneq ($(MAKECMDGOALS),distclean)
33 ifneq ($(DEPS),)
34 -include $(DEPS)
35 endif
36 endif
37 endif