forked from mattn/gntp-send
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
48 lines (34 loc) · 1021 Bytes
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
all: dirs bin/gntp-send bin/gntp-send++
ARCH=-arch i386
#ARCH=-arch i386 -arch x86_64
bin/gntp-send : objs/gntp-send.o lib/libgrowl.a
gcc $(ARCH) $^ -o $@
bin/gntp-send++ : objs/gntp-send++.o lib/libgrowl++.a lib/libgrowl.a
g++ $(ARCH) $^ -o $@
lib/libgrowl.a : objs/growl.o objs/tcp.o objs/md5.o
ar rc $@ $^
ranlib $@
lib/libgrowl++.a : objs/growl++.o objs/tcp.o objs/md5.o
ar rc $@ $^
ranlib $@
objs/growl.o : source/growl.c
gcc $(ARCH) -D GROWL_STATIC -I headers -Wall -Wno-format-zero-length -c $< -o $@
objs/tcp.o : source/tcp.c
gcc $(ARCH) -I headers -Wall -c $< -o $@
objs/md5.o : source/md5.c
gcc $(ARCH) -I headers -Wall -c $< -o $@
objs/gntp-send.o : source/gntp-send.c
gcc $(ARCH) -I headers -Wall -c $< -o $@
objs/growl++.o : source/growl++.cpp
g++ $(ARCH) -I headers -Wall -c $< -o $@
objs/gntp-send++.o : source/gntp-send++.cpp
g++ $(ARCH) -I headers -Wall -c $< -o $@
clean :
rm -f bin/* objs/* lib/*
dirs : bin objs lib
bin :
mkdir $@
objs :
mkdir $@
lib :
mkdir $@