Introduce variables GLOBAL_CFLAGS and GLOBAL_CXXFLAGS
There are flags that must be set, so they shouldn't be overriden by the user's CFLAGS or CXXFLAGS.
This commit is contained in:
parent
6b5f89f2cf
commit
ea2f7df5fa
2 changed files with 4 additions and 3 deletions
|
|
@ -24,10 +24,10 @@ dist_files :=
|
|||
QUIET = @
|
||||
|
||||
%.o: %.cc
|
||||
$(QUIET) $(CXX) -o $@ -c $< -g -fPIC $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(basename $@).dep -MP
|
||||
$(QUIET) $(CXX) -o $@ -c $< -g -fPIC $(GLOBAL_CXXFLAGS) $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(basename $@).dep -MP
|
||||
|
||||
%.o: %.c
|
||||
$(QUIET) $(CC) -o $@ -c $< -g -fPIC $(CFLAGS) $($@_CFLAGS) -MMD -MF $(basename $@).dep -MP
|
||||
$(QUIET) $(CC) -o $@ -c $< -g -fPIC $(GLOBAL_CFLAGS) $(CFLAGS) $($@_CFLAGS) -MMD -MF $(basename $@).dep -MP
|
||||
|
||||
|
||||
# Generate Make rules for libraries.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue