diff options
author | Guenter Knauf <lists@gknw.net> | 2011-09-21 03:25:19 +0200 |
---|---|---|
committer | Guenter Knauf <lists@gknw.net> | 2011-09-21 03:25:19 +0200 |
commit | e4172d934da23083eb43660bf3300d77bf157bac (patch) | |
tree | d9319a28cfd99bee64c75babbff245872803b2c1 /docs/examples/Makefile.m32 | |
parent | 977825a68c59b09d15609df6ffbb7465a4ae6a73 (diff) | |
download | curl-e4172d934da23083eb43660bf3300d77bf157bac.tar.gz |
Changed suffix rules to pattern rules.
Suffix rules cannot have any prerequisites of their own.
Diffstat (limited to 'docs/examples/Makefile.m32')
-rw-r--r-- | docs/examples/Makefile.m32 | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/examples/Makefile.m32 b/docs/examples/Makefile.m32 index 44c288330..32bc8f479 100644 --- a/docs/examples/Makefile.m32 +++ b/docs/examples/Makefile.m32 @@ -217,20 +217,21 @@ include Makefile.inc example_PROGRAMS := $(patsubst %,%.exe,$(strip $(check_PROGRAMS))) -.SUFFIXES: .rc .res .o .exe - all: $(example_PROGRAMS) -.o.exe: $(curl_DEPENDENCIES) +%.exe: %.o $(curl_DEPENDENCIES) $(CC) $(LDFLAGS) -o $@ $< $(curl_LDADD) -.c.o: +%.o: %.c $(CC) $(INCLUDES) $(CFLAGS) -c $< -.rc.res: +%.res: %.rc $(RC) $(RCFLAGS) $< -o $@ clean: - $(RM) $(example_PROGRAMS) + $(RM) $(example_PROGRAMS:.exe=.o) + +distclean vclean: clean + -$(RM) $(example_PROGRAMS) |