X-Git-Url: http://git.onelab.eu/?p=libnl.git;a=blobdiff_plain;f=Makefile.rules;fp=Makefile.rules;h=de32230ea8be7db163337923e4f920fe36c449b0;hp=0000000000000000000000000000000000000000;hb=4cee2ecb3b8afa0637e6f5fe4c57985a4bc740ff;hpb=2df2fbe518d5a221ce6e3ee88a3fb23fb1b94b27 diff --git a/Makefile.rules b/Makefile.rules new file mode 100644 index 0000000..de32230 --- /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 +# + +.SUFFIXES: +.SUFFIXES: .deps/%.d .c + +%.o: %.c + @echo " CC $<"; \ + $(CC) $(CFLAGS) -c -o $@ $< + +.deps/%.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