Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / functionalities / limit-debug-info / Makefile
blob874b3a15e0fee9bf6e9446d15610948169cebee9
1 CFLAGS_EXTRAS = $(LIMIT_DEBUG_INFO_FLAGS)
2 LD_EXTRAS = -L. -lone -ltwo
3 CXX_SOURCES = main.cpp
5 ONE_CXXFLAGS = $(LIMIT_DEBUG_INFO_FLAGS)
6 ifdef STRIP_ONE
7 ONE_CXXFLAGS += -g0
8 endif
10 TWO_CXXFLAGS = $(LIMIT_DEBUG_INFO_FLAGS)
11 ifdef STRIP_TWO
12 TWO_CXXFLAGS += -g0
13 endif
15 include Makefile.rules
17 a.out: libone libtwo
19 libone:
20 $(MAKE) -f $(MAKEFILE_RULES) \
21 DYLIB_ONLY=YES DYLIB_CXX_SOURCES=one.cpp DYLIB_NAME=one \
22 CFLAGS_EXTRAS="$(ONE_CXXFLAGS)"
24 libtwo: libone
25 $(MAKE) -f $(MAKEFILE_RULES) \
26 DYLIB_ONLY=YES DYLIB_CXX_SOURCES=two.cpp DYLIB_NAME=two \
27 CFLAGS_EXTRAS="$(TWO_CXXFLAGS)" LD_EXTRAS="-L. -lone"