Skip to content

Commit c114ca5

Browse files
committed
Reapply "build: fix rule for building dynamic files"
This reverts commit 7eab365 and fixes the pattern rule requirement "% must match a non-empty stem" to match at least '.' in the pattern. This whole file could actually be substantially simplified to just: %.$(SUFFIX): %.c $(CC) $(CFLAGS) -c $< -o $(@f) %.$(PSUFFIX): %.c $(CC) $(PFLAGS) -c $< -o $(@f) if desired to entirely avoid the copy-paste duplication, but the net effect is the same.
1 parent b8697b3 commit c114ca5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

driver/others/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ endif
127127
xerbla.$(SUFFIX) : xerbla.c
128128
$(CC) $(CFLAGS) -c $< -o $(@F)
129129

130-
dynamic.$(SUFFIX) : dynamic.c
130+
dynamic%$(SUFFIX) : dynamic%c
131131
$(CC) $(CFLAGS) -c $< -o $(@F)
132132

133-
dynamic.$(PSUFFIX) : dynamic.c
133+
dynamic%$(PSUFFIX) : dynamic%c
134134
$(CC) $(PFLAGS) -c $< -o $(@F)
135135

136136
parameter.$(SUFFIX) : parameter.c ../../param.h

0 commit comments

Comments
 (0)