mirror of
https://github.com/curl/curl.git
synced 2026-07-24 06:27:16 +03:00
Changed suffix rules to pattern rules.
Suffix rules cannot have any prerequisites of their own.
This commit is contained in:
parent
977825a68c
commit
e4172d934d
3 changed files with 11 additions and 13 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue