mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
make: support per-object defines
In the case we have a dir with multiple objects and for an individual object file we need special define - allow to define it without adding extra rules. To ensure dmeventd.o compilation will use EXTRA_FLAGS: CFLAGS_dmeventd.o += $(EXTRA_FLAGS) Then it's better to use: dmeventd.o: CFLAGS += $(EXTRA_FLAGS)
This commit is contained in:
parent
6c6bcc00e4
commit
fc37d4fb0d
@ -1,5 +1,6 @@
|
||||
Version 2.02.105 -
|
||||
=====================================
|
||||
Support per-object compilation cflags via CFLAGS_object.o.
|
||||
Automatically detect support for compiler/linker options to use RELRO and PIE.
|
||||
Add --splitsnapshot to lvconvert to separate out cow LV.
|
||||
Reinstate origin reload to complete lvconvert -s with active LVs. (2.02.98)
|
||||
|
@ -345,7 +345,7 @@ endif
|
||||
$(TARGETS): $(OBJECTS)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -c $(INCLUDES) $(DEFS) $(WFLAGS) $(CFLAGS) $< -o $@
|
||||
$(CC) -c $(INCLUDES) $(DEFS) $(WFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@
|
||||
|
||||
%.pot: %.c Makefile
|
||||
$(CC) -E $(INCLUDES) -include $(top_srcdir)/include/pogen.h \
|
||||
|
Loading…
Reference in New Issue
Block a user