llvm-project/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile

19 lines
311 B
Makefile

LEVEL = ../../make
C_SOURCES := main.c
ifeq "$(OS)" ""
OS = $(shell uname -s)
endif
ifeq "$(OS)" "Darwin"
LDFLAGS = $(CFLAGS) -Xlinker -dead_strip
else
CFLAGS += -fdata-sections -ffunction-sections
LDFLAGS = $(CFLAGS) -Wl,--gc-sections
endif
MAKE_DSYM := NO
include $(LEVEL)/Makefile.rules