aboutsummaryrefslogtreecommitdiffstats
path: root/packages/Python/lldbsuite/test/lang/objc/conflicting-definition/Makefile
blob: 3d24348618da927215396e8f49393b41c68e9641 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
LEVEL = ../../../make

CFLAGS = -g -O0
LDFLAGS = $(CFLAGS) -lobjc -framework Foundation

all: a.out libTest.dylib libTestExt.dylib

libTest.dylib:	Test/Test.m
	$(CC) $(CFLAGS) -I. -c -o Test.o Test/Test.m
	$(CC) $(LDFLAGS) -shared -o libTest.dylib Test.o
	dsymutil libTest.dylib

libTestExt.dylib: TestExt/TestExt.m
	$(CC) $(CFLAGS) -I. -c -o TestExt.o TestExt/TestExt.m
	$(CC) $(LDFLAGS) -L. -lTest -shared -o libTestExt.dylib TestExt.o
	dsymutil libTestExt.dylib

a.out: main.m libTest.dylib libTestExt.dylib
	$(CC) $(LDFLAGS) -I. -L. -lTest -lTestExt -o a.out main.m 

.PHONY: clean

clean:
	rm -rf libTest.dylib libTestExt.dylib a.out Test.o TestExt.o libTest.dylib.dSYM libTest.dylib.dSYM