1LD_EXTRAS := -lobjc -framework Foundation -L. -lTest -lTestExt
2OBJC_SOURCES := main.m
3
4all: a.out
5
6a.out: libTest.dylib libTestExt.dylib
7
8include Makefile.rules
9
10libTest.dylib:	Test/Test.m
11	mkdir -p Test
12	$(MAKE) MAKE_DSYM=YES -f $(MAKEFILE_RULES) \
13		DYLIB_ONLY=YES DYLIB_NAME=Test DYLIB_OBJC_SOURCES=Test/Test.m \
14		LD_EXTRAS="-lobjc -framework Foundation" \
15		CFLAGS_EXTRAS=-I$(SRCDIR)
16
17libTestExt.dylib: TestExt/TestExt.m
18	mkdir -p TestExt
19	$(MAKE) MAKE_DSYM=YES -f $(MAKEFILE_RULES) \
20		DYLIB_ONLY=YES DYLIB_NAME=TestExt DYLIB_OBJC_SOURCES=TestExt/TestExt.m \
21		LD_EXTRAS="-lobjc -framework Foundation -lTest -L." \
22		CFLAGS_EXTRAS=-I$(SRCDIR)
23
24