annotate src/protocols/rendezvous/Makefile.mingw @ 10549:8bc7ba019e96

[gaim-migrate @ 11919] This should make rendezvous compile again. It's back to being able to somewhat sign on and see other people. Still nowhere near being able to message. I think I want to work on messaging, then maybe come back and look into using a third party lib or maybe just an external mDNS server for presence. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 27 Jan 2005 05:28:08 +0000
parents dbbf5470ba05
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8489
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
1 #
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
2 # Makefile.mingw
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
3 #
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
4 # Description: Makefile for win32 (mingw) version of librendezvous
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
5 #
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
6
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
7 #
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
8 # PATHS
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
9 #
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
10
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
11 INCLUDE_DIR := .
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
12 GTK_TOP := ../../../../win32-dev/gtk_2_0
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
13 GAIM_TOP := ../../..
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
14 RENDEZVOUS_ROOT := .
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
16
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
17 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
18 ## VARIABLE DEFINITIONS
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
19 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
20
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
21 TARGET = librendezvous
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
22
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
23 # Compiler Options
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
24
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
25 CFLAGS =
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
26
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
27 DEFINES =
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
28
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
29 # Static or Plugin...
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
30 ifeq ($(TYPE),STATIC)
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
31 DEFINES += -DSTATIC
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
32 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
33 else
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
34 ifeq ($(TYPE),PLUGIN)
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
35 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
36 endif
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
37 endif
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
38
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
39
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
40 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
41 ## INCLUDE MAKEFILES
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
42 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
43
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
44 include $(GAIM_TOP)/src/win32/global.mak
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
45
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
46 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
47 ## INCLUDE PATHS
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
48 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
49
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
50 INCLUDE_PATHS += -I$(RENDEZVOUS_ROOT) \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
51 -I$(GTK_TOP)/include \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
52 -I$(GTK_TOP)/include/gtk-2.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
53 -I$(GTK_TOP)/include/glib-2.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
54 -I$(GTK_TOP)/include/pango-1.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
55 -I$(GTK_TOP)/include/atk-1.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
56 -I$(GTK_TOP)/lib/glib-2.0/include \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
57 -I$(GTK_TOP)/lib/gtk-2.0/include \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
58 -I$(GAIM_TOP)/src \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
59 -I$(GAIM_TOP)/src/win32 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
60 -I$(GAIM_TOP)
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
61
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
62
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
63 LIB_PATHS = -L$(GTK_TOP)/lib \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
64 -L$(GAIM_TOP)/src
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
65
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
66
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
67 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
68 ## SOURCES, OBJECTS
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
69 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
70
10549
8bc7ba019e96 [gaim-migrate @ 11919]
Mark Doliner <mark@kingant.net>
parents: 8738
diff changeset
71 C_SRC = direct.c \
8bc7ba019e96 [gaim-migrate @ 11919]
Mark Doliner <mark@kingant.net>
parents: 8738
diff changeset
72 mdns.c \
8738
dbbf5470ba05 [gaim-migrate @ 9493]
Mark Doliner <mark@kingant.net>
parents: 8489
diff changeset
73 mdns_cache.c \
8489
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
74 rendezvous.c
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
75
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
76
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
77 OBJECTS = $(C_SRC:%.c=%.o)
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
78
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
79
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
80 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
81 ## LIBRARIES
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
82 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
83
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
84 LIBS = -lgtk-win32-2.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
85 -lglib-2.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
86 -lgdk-win32-2.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
87 -lgmodule-2.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
88 -lgobject-2.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
89 -lws2_32 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
90 -lintl \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
91 -lgaim
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
92
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
93
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
94 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
95 ## RULES
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
96 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
97
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
98 # How to make a C file
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
99
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
100 %.o: %.c
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
101 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $<
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
102
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
103 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
104 ## TARGET DEFINITIONS
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
105 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
106
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
107 .PHONY: all clean
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
108
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
109 all: $(TARGET).dll
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
110
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
111 install:
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
112 cp $(RENDEZVOUS_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR)
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
113
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
114
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
115 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
116 ## BUILD Dependencies
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
117 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
118
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
119 $(GAIM_TOP)/src/gaim.lib:
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
120 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
121
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
122 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
123 ## BUILD DLL
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
124 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
125
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
126 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
127 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
128
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
129 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
130 ## CLEAN RULES
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
131 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
132
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
133 clean:
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
134 rm -rf *.o
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
135 rm -rf $(TARGET).dll
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
136 rm -rf $(TARGET).lib