mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-12-01 02:04:15 +01:00
Breakpad Linux dumper: Generate make dependencies on header files automatically.
The Linux dumper's Makefile doesn't record the object files' dependence on header files at all, just because I was too lazy to write them out and knew I would forget to keep them up to date anyway. But I've wasted too much time tracking down mysterious segmentation faults and other problems after changing header files, and I know it's wasted others' time, too. a=jimblandy, r=nealsid,dmuir git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@563 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
a0aca73851
commit
2a18f064ce
@ -338,16 +338,20 @@ clean::
|
||||
$(CPP_EXECUTABLES): %: %.o
|
||||
$(CXX) $(CXXFLAGS) $(COVERAGE_LDFLAGS) $(LDFLAGS) -o $@ $^
|
||||
|
||||
# These flags are required for breakpad sources to compile correctly.
|
||||
BREAKPAD_CPPFLAGS = -I$(SRC) -D_REENTRANT
|
||||
# Allow #include directives to refer to files below 'src'; generate
|
||||
# dependency files automatically; and I doubt _REENTRANT is needed at all.
|
||||
BREAKPAD_CPPFLAGS = -I$(SRC) -MMD -D_REENTRANT
|
||||
|
||||
# Bring in whatever dependency files we have generated by compiling with -MMD.
|
||||
-include *.d
|
||||
|
||||
%.o: %.cc
|
||||
$(CXX) -c $^ -o $@ $(CPPFLAGS) $(BREAKPAD_CPPFLAGS) $(CXXFLAGS)
|
||||
$(CXX) -c $< -o $@ $(CPPFLAGS) $(BREAKPAD_CPPFLAGS) $(CXXFLAGS)
|
||||
%.o: %.c
|
||||
$(CC) -c $^ -o $@ $(CPPFLAGS) $(BREAKPAD_CPPFLAGS) $(CFLAGS)
|
||||
$(CC) -c $< -o $@ $(CPPFLAGS) $(BREAKPAD_CPPFLAGS) $(CFLAGS)
|
||||
|
||||
clean::
|
||||
rm -f *.o core
|
||||
rm -f *.o *.d core
|
||||
|
||||
### Generic testing rules.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user