forked from unix-junkie/cache-callout-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdarwin.mk
More file actions
executable file
·33 lines (25 loc) · 763 Bytes
/
darwin.mk
File metadata and controls
executable file
·33 lines (25 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env make -f
#
# $Id$
#
# vim:ft=make:
#
ifndef GLOBALS_HOME
$(error GLOBALS_HOME is undefined)
endif # GLOBALS_HOME
CFLAGS = -Wall -Wextra -g
CPPFLAGS = -I${GLOBALS_HOME}/dev/cpp/include
.PHONY: all
all: libtest-callout.bundle test-callout-dynamic test-callout-dlopen
libtest-callout.dylib: test-callout.o
$(CC) -dynamiclib -o $@ $<
libtest-callout.bundle: test-callout.o
$(CC) -bundle -o $@ $<
test-callout-dynamic: test-callout-dynamic.o libtest-callout.dylib
$(CC) -L. -ltest-callout -o $@ $<
install_name_tool -change libtest-callout.dylib @executable_path/libtest-callout.dylib $@
test-callout-dlopen: test-callout-dlopen.o
$(CC) -o $@ $<
.PHONY: clean
clean:
$(RM) *.o *.so *.dylib *.bundle test-callout-dynamic test-callout-dlopen