dect
/
libnl
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
libnl/Makefile.rules

38 lines
739 B
Makefile

#
# 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