summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/macosx/add-dsym/Makefile
blob: 3a363ab98c174b1b990afe02577d25a46db3847f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CC ?= clang
ifeq "$(ARCH)" ""
	ARCH = x86_64
endif

ifeq "$(OS)" ""
	OS = $(shell uname -s)
endif

CFLAGS ?= -g -O0

ifeq "$(OS)" "Darwin"
	CFLAGS += -arch $(ARCH)
endif

all: clean
	mkdir hide.app
	mkdir hide.app/Contents
	$(CC) $(CFLAGS) -g main.c
	mv a.out.dSYM hide.app/Contents
	strip -x a.out

clean:
	rm -rf a.out a.out.dSYM hide.app
OpenPOWER on IntegriCloud