annotate src/Makefile.msvc @ 0:d39e1d0d75b6

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