blob: 5a1decfb6bad1625a5d60bd0c11132688a5531fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
|