1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00

make.tmpl: Support per-object DEFS.

Same as CFLAGS.
This commit is contained in:
Alasdair G Kergon 2017-03-16 23:03:03 +00:00
parent 2d00767394
commit 0c74afa1c6

View File

@ -416,7 +416,7 @@ endif
.LIBPATTERNS = lib%.so lib%.a .LIBPATTERNS = lib%.so lib%.a
%.o: %.c %.o: %.c
$(CC) -c $(INCLUDES) $(DEFS) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@ $(CC) -c $(INCLUDES) $(DEFS) $(DEFS_$@) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@
%.o: %.cpp %.o: %.cpp
$(CXX) -c $(INCLUDES) $(DEFS) $(WFLAGS) $(CXXFLAGS) $(CXXFLAGS_$@) $< -o $@ $(CXX) -c $(INCLUDES) $(DEFS) $(WFLAGS) $(CXXFLAGS) $(CXXFLAGS_$@) $< -o $@