lldb/test/API/functionalities/dead-strip/Makefile
raw| 1 | C_SOURCES := main.c |
| 2 | |
| 3 | ifeq "$(OS)" "" |
| 4 | OS = $(shell uname -s) |
| 5 | endif |
| 6 | |
| 7 | ifeq "$(OS)" "Darwin" |
| 8 | LD_EXTRAS = -Xlinker -dead_strip |
| 9 | else |
| 10 | CFLAGS_EXTRAS += -fdata-sections -ffunction-sections |
| 11 | ifeq "$(OS)" "Windows_NT" |
| 12 | LD_EXTRAS = -Xlinker /OPT:REF |
| 13 | else |
| 14 | LD_EXTRAS = -Wl,--gc-sections |
| 15 | endif |
| 16 | endif |
| 17 | |
| 18 | MAKE_DSYM := NO |
| 19 | |
| 20 | include Makefile.rules |