comparison src/Makefile.msvc @ 0:d39e1d0d75b6

initial add
author paulo@hit-nxdomain.opendns.com
date Sat, 20 Feb 2010 21:18:28 -0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:99c30758bf15
1 # $Id: Makefile.msvc,v 1.18 2004/03/27 00:36:20 mkern Exp $
2
3 !include ../Make.msvc
4
5 INCLUDES = $(INCLUDES) -I. -Iio
6
7 !if defined(dynamic) || defined(DYNAMIC)
8
9 LIBS = $(LIBS) $(LIBGIFT_LIB) $(LIBGIFTPROTO_LIB) $(GIFT_LIB)
10 TARGET = $(GNUTELLA_DLL)
11
12 !else # !(defined(dynamic) || defined(DYNAMIC))
13
14 LIBS = $(LIBS) $(LIBGIFT_STATIC) $(LIBGIFTPROTO_STATIC) $(GIFT_LIB)
15 TARGET = $(GNUTELLA_STATIC)
16
17 !endif # defined(dynamic) || defined(DYNAMIC)
18
19
20 OBJECTS = \
21 dns$(O) \
22 file_cache$(O) \
23 gt_accept$(O) \
24 gt_ban$(O) \
25 gt_bind$(O) \
26 gt_conf$(O) \
27 gt_connect$(O) \
28 gt_gnutella$(O) \
29 gt_guid$(O) \
30 gt_http_client$(O) \
31 gt_http_server$(O) \
32 gt_netorg$(O) \
33 gt_node$(O) \
34 gt_node_cache$(O) \
35 gt_node_list$(O) \
36 gt_packet$(O) \
37 gt_query_route$(O) \
38 gt_search$(O) \
39 gt_search_exec$(O) \
40 gt_share$(O) \
41 gt_share_file$(O) \
42 gt_share_state$(O) \
43 gt_stats$(O) \
44 gt_urn$(O) \
45 gt_utils$(O) \
46 gt_version$(O) \
47 gt_web_cache$(O) \
48 gt_xfer$(O) \
49 gt_xfer_obj$(O) \
50 http_request$(O) \
51 sha1$(O) \
52 trie$(O) \
53 xml$(O) \
54 encoding\base32$(O) \
55 encoding\url$(O) \
56 io\io_buf$(O) \
57 io\rx_inflate$(O) \
58 io\rx_layer$(O) \
59 io\rx_link$(O) \
60 io\rx_packet$(O) \
61 io\rx_stack$(O) \
62 io\tx_deflate$(O) \
63 io\tx_layer$(O) \
64 io\tx_link$(O) \
65 io\tx_packet$(O) \
66 io\tx_stack$(O) \
67 message\bye$(O) \
68 message\gt_message$(O) \
69 message\ping$(O) \
70 message\ping_reply$(O) \
71 message\push$(O) \
72 message\query$(O) \
73 message\query_reply$(O) \
74 message\query_route$(O) \
75 message\vendor$(O) \
76 transfer\download$(O) \
77 transfer\push_proxy$(O) \
78 transfer\source$(O)
79
80
81 all : $(TARGET)
82
83
84 clean :
85 @-del /Q /F *$(O)
86 @-del /Q /F $(GNUTELLA_LIB)
87 @-del /Q /F $(GNUTELLA_DLL)
88 @-del /Q /F $(GNUTELLA_STATIC)
89 @-del /Q /F *.exp
90 @-del /Q /F *.idb
91 @-del /Q /F *.ilk
92 @-del /Q /F *.pch
93 @-del /Q /F *.pdb
94 @-del /Q /F *.plg
95 @-del /Q /F io\*$(O)
96 @-del /Q /F transfer\*$(O)
97 @-del /Q /F message\*$(O)
98 @-del /Q /F encoding\*$(O)
99
100
101 !if defined(dynamic) || defined(DYNAMIC)
102
103 $(TARGET) : $(OBJECTS)
104 $(LD) $(LDFLAGS) -dll -out:$(TARGET) $(LIBS) $(OBJECTS)
105
106 !else # !(defined(dynamic) || defined(DYNAMIC))
107
108 $(TARGET) : $(OBJECTS)
109 $(LT) -nologo -out:$(TARGET) $(OBJECTS)
110
111 !endif # defined(dynamic) || defined(DYNAMIC)
112
113
114 .c$(O):
115 $(CC) $(CFLAGS) $(DEFS) $(INCLUDES) -Fo$@ -c $<