forked from mattn/gntp-send
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile.w32
81 lines (48 loc) · 2.08 KB
/
Makefile.w32
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
all: dirs bin/gntp-send-static.exe bin/gntp-send-shared.exe bin/gntp-send-static++.exe bin/gntp-send-shared++.exe
bin/gntp-send-static.exe : objs/gntp-send-static.o lib/libgrowl-static.a
gcc $^ -o $@ -lws2_32
bin/gntp-send-static++.exe : objs/gntp-send-static++.o lib/libgrowl-static++.a lib/libgrowl-static.a
g++ $^ -o $@ -lws2_32
bin/gntp-send-shared.exe : objs/gntp-send-shared.o lib/libgrowl-shared.a
gcc $^ -o $@ -lws2_32
bin/gntp-send-shared++.exe : objs/gntp-send-shared++.o lib/libgrowl-shared++.a lib/libgrowl-shared.a
g++ $^ -o $@ -lws2_32
lib/libgrowl-static.a : objs/growl-static.o objs/tcp.o objs/md5.o
ar rc $@ $^
ranlib $@
lib/libgrowl-static++.a : objs/growl-static++.o objs/tcp.o objs/md5.o
ar rc $@ $^
ranlib $@
lib/libgrowl-shared.a: objs/growl-shared.o objs/tcp.o objs/md5.o
gcc -shared -o lib/libgrowl.dll $^ -Wl,--out-implib,$@ -l ws2_32
lib/libgrowl-shared++.a: lib/libgrowl-shared.a objs/growl-shared++.o
g++ -shared -o lib/libgrowl++.dll objs/growl-shared++.o -Wl,--out-implib,$@ -l ws2_32 lib/libgrowl-shared.a
objs/gntp-send-static.o : source/gntp-send.c
gcc -D GROWL_STATIC -I headers -Wall -c $< -o $@
objs/gntp-send-static++.o : source/gntp-send++.cpp
g++ -D GROWL_STATIC -D GROWL_CPP_STATIC -I headers -Wall -c $< -o $@
objs/growl-static.o : source/growl.c
gcc -D GROWL_STATIC -I headers -Wall -Wno-format-zero-length -c $< -o $@
objs/growl-static++.o : source/growl++.cpp
g++ -D GROWL_STATIC -D GROWL_CPP_STATIC -I headers -Wall -c $< -o $@
objs/gntp-send-shared.o : source/gntp-send.c
gcc -I headers -Wall -c $< -o $@
objs/gntp-send-shared++.o : source/gntp-send++.cpp
g++ -I headers -Wall -c $< -o $@
objs/growl-shared.o : source/growl.c
gcc -D GROWL_DLL -I headers -Wall -Wno-format-zero-length -c $< -o $@
objs/growl-shared++.o : source/growl++.cpp
g++ -D GROWL_CPP_DLL -D GROWL_DLL -I headers -Wall -c $< -o $@
objs/tcp.o : source/tcp.c
gcc -I headers -Wall -c $< -o $@
objs/md5.o : source/md5.c
gcc -I headers -Wall -c $< -o $@
clean :
del /Q bin\* objs\* lib\*
dirs : bin objs lib
bin :
mkdir $@
objs :
mkdir $@
lib :
mkdir $@