summaryrefslogtreecommitdiffstats
path: root/Makefile.rules
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2007-09-14 23:28:01 (GMT)
committerThomas Graf <tgraf@suug.ch>2007-09-14 23:28:01 (GMT)
commit44d362409d5469aed47d19e7908d19bd194493a4 (patch)
tree5d1e739a4566f3af796273e5c3f78ca53d234df6 /Makefile.rules
downloadlibnl-44d362409d5469aed47d19e7908d19bd194493a4.zip
libnl-44d362409d5469aed47d19e7908d19bd194493a4.tar.gz
libnl-44d362409d5469aed47d19e7908d19bd194493a4.tar.bz2
Initial import
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules37
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
new file mode 100644
index 0000000..5a1decf
--- /dev/null
+++ b/Makefile.rules
@@ -0,0 +1,37 @@
+#
+# 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