-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (17 loc) · 695 Bytes
/
Makefile
File metadata and controls
27 lines (17 loc) · 695 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
CC=cc
FRAMEWORK=-framework CoreFoundation -framework CoreServices
STATIC_LIBRARIES=/usr/local/lib/libuv.a
#DYLD_LIBRARIES=/usr/local/lib/libuv.dylib
all: hello watcher
hello: hello-static hello-dynamic
watcher: watcher-static watcher-dynamic
static: hello-static watcher-static
dynamic: hello-dynamic watcher-dynamic
hello-static: hello.c
$(CC) -o hello-static hello.c $(FRAMEWORK) $(STATIC_LIBRARIES)
hello-dynamic: hello.c
$(CC) -D DYNAMIC=1 -o hello-dynamic hello.c $(FRAMEWORK) #$(DYLD_LIBRARIES)
watcher-static: watcher.c
$(CC) -o watcher-staic watcher.c $(FRAMEWORK) $(STATIC_LIBRARIES)
watcher-dynamic: watcher.c
$(CC) -D DYNAMIC=1 -o watcher-dynamic watcher.c $(FRAMEWORK)