annotate src/Makefile.mingw @ 3681:8599c86b9f46

[gaim-migrate @ 3811] sigh committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Mon, 14 Oct 2002 04:31:21 +0000
parents d26752101ae4
children 764d6f1848b2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3638
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
1 #
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
2 # Makefile.mingw
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
3 #
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
4 # Description: Makefile for win32 (mingw) version of Gaim
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
5 #
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
6
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
7 #
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
8 # PATHS
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
9 #
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
10
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
11 BUILD_TOOLS = /usr/local/mingw
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
12
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
13 INCLUDE_DIR := .
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
14 GTK_TOP := ../../win32-dev/gtk_2_0
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
15 GAIM_TOP := ..
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
16 GAIM_SRC := .
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
17 PERL_LIB_DIR := ../../win32-dev/perl56
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
18 PERL_INCLUDE := $(PERL_LIB_DIR)/CORE
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
19 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
20
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
21 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
22 ## VARIABLE DEFINITIONS
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
23 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
24
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
25 TARGET = gaim
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
26
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
27 VERSION := $(shell cat $(GAIM_TOP)/VERSION)
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
28
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
29 # Compiler and Linker Options
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
30
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
31 GCOPTS = -B $(BUILD_TOOLS)
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
32
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
33 CC = gcc.exe $(GCOPTS)
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
34
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
35 CFLAGS = -g -mno-cygwin -fnative-struct
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
36
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
37 DEFINES = -DHAVE_CONFIG_H -DVERSION=\"$(VERSION)\" -DGTK_ENABLE_BROKEN
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
38
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
39 LDFLAGS = -mwindows
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
40
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
41 #-mconsole
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
42 #-mwindows
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
43
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
44 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
45 ## INCLUDE MAKEFILES
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
46 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
47
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
48
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
49 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
50 ## INCLUDE PATHS
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
51 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
52
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
53 INCLUDE_PATHS = -I$(INCLUDE_DIR) \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
54 -I$(INCLUDE_DIR)/win32 \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
55 -I$(GAIM_TOP) \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
56 -I$(GTK_TOP)/include \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
57 -I$(GTK_TOP)/include/gtk-2.0 \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
58 -I$(GTK_TOP)/include/glib-2.0 \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
59 -I$(GTK_TOP)/include/pango-1.0 \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
60 -I$(GTK_TOP)/include/atk-1.0 \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
61 -I$(GTK_TOP)/lib/glib-2.0/include \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
62 -I$(GTK_TOP)/lib/gtk-2.0/include \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
63 -I$(PERL_INCLUDE)
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
64
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
65
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
66 LIB_PATHS = -L$(GTK_TOP)/lib \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
67 -L$(GAIM_SRC) \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
68 -L$(PERL_LIB_DIR)
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
69
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
70
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
71 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
72 ## SOURCES, OBJECTS
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
73 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
74
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
75 SOUND_H_FILES = $(GAIM_TOP)/sounds/BuddyArrive.h \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
76 $(GAIM_TOP)/sounds/BuddyLeave.h \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
77 $(GAIM_TOP)/sounds/Receive.h \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
78 $(GAIM_TOP)/sounds/RedAlert.h \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
79 $(GAIM_TOP)/sounds/Send.h
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
80
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
81 HEADER_DEPS = $(SOUND_H_FILES)
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
82
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
83 DLL_C_SRC = aim.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
84 about.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
85 away.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
86 browser.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
87 buddy.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
88 buddy_chat.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
89 conversation.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
90 core.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
91 dialogs.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
92 ft.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
93 gaimrc.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
94 gtkimhtml.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
95 gtkspell.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
96 html.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
97 idle.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
98 list.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
99 md5.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
100 module.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
101 multi.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
102 perl.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
103 prefs.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
104 proxy.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
105 prpl.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
106 server.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
107 sound.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
108 util.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
109 win32/win32dep.c \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
110 win32/MinimizeToTray.c
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
111
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
112 RC_SRC = win32/gaimrc.rc
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
113
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
114 EXE_C_SRC = win_aim.c
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
115
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
116 DLL_OBJECTS = $(DLL_C_SRC:%.c=%.o)
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
117
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
118 EXE_OBJECTS = $(EXE_C_SRC:%.c=%.o) $(RC_SRC:%.rc=%.o)
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
119
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
120 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
121 ## LIBRARIES
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
122 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
123
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
124 DLL_LIBS = -lgtk-win32-2.0 \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
125 -lpango-1.0 \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
126 -lglib-2.0 \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
127 -lgdk-win32-2.0 \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
128 -lgobject-2.0 \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
129 -lintl \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
130 -lgmodule-2.0 \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
131 -lgdk_pixbuf-2.0 \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
132 -lws2_32 \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
133 -liberty \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
134 -lwinmm \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
135 -lperl56
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
136
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
137
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
138 EXE_LIBS = -lgaim -lglib-2.0
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
139
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
140 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
141 ## RULES
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
142 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
143
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
144 # Make Sound headers
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
145 $(GAIM_TOP)/sounds/%.h:
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
146 $(MAKE) -C $(GAIM_TOP)/sounds -f Makefile.mingw $(@F)
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
147
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
148 # How to make a C file
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
149 %.o: %.c
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
150 $(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
151
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
152 # How to make an RC file
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
153 %.o: %.rc
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
154 windres -i $< -o $@
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
155
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
156 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
157 ## TARGET DEFINITIONS
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
158 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
159
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
160 .PHONY: all clean
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
161
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
162 all: $(TARGET).exe $(TARGET).dll
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
163
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
164 install:
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
165 cp $(GAIM_SRC)/gaim.exe $(GAIM_SRC)/gaim.dll $(GAIM_INSTALL_DIR)
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
166
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
167
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
168 #
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
169 # BUILD DLL
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
170 #
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
171
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
172 $(TARGET).def: $(HEADER_DEPS) $(DLL_OBJECTS)
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
173 dlltool -D $(TARGET).dll -z $(TARGET).def --export-all-symbols \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
174 --exclude-symbols WinMain@16 $^
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
175
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
176 $(TARGET).base: $(HEADER_DEPS) $(DLL_OBJECTS)
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
177 gcc -mdll $(LDFLAGS) -o junk.tmp -Wl,--base-file,$@ $(DLL_OBJECTS) $(LIB_PATHS) $(DLL_LIBS)
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
178 rm -rf junk.tmp
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
179
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
180 $(TARGET).exp: $(TARGET).base $(TARGET).def
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
181 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
182 --output-exp $(TARGET).exp --def $(TARGET).def
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
183
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
184 $(TARGET).dll: $(HEADER_DEPS) $(DLL_OBJECTS) $(TARGET).exp
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
185 gcc -mdll $(LDFLAGS) -o $(TARGET).dll $(DLL_OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(DLL_LIBS)
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
186 rm -rf $(TARGET).exp $(TARGET).def $(TARGET).base
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
187
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
188 $(TARGET).lib: $(TARGET).def
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
189 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
190
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
191 #
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
192 # BUILD EXE
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
193 #
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
194
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
195 $(TARGET).exe: $(TARGET).lib $(EXE_OBJECTS)
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
196 gcc $(LDFLAGS) $(EXE_OBJECTS) $(LIB_PATHS) $(EXE_LIBS) -o $(TARGET).exe
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
197
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
198 # -Wl,--subsystem,windows
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
199
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
200 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
201 ## CLEAN RULES
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
202 ##
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
203
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
204 clean:
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
205 $(MAKE) -C $(GAIM_TOP)/sounds -f Makefile.mingw clean
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
206 rm -rf *.o ./win32/*.o
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
207 rm -rf $(TARGET).dll
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
208 rm -rf $(TARGET).lib
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
209 rm -rf $(TARGET).exe
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
210
d26752101ae4 [gaim-migrate @ 3761]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
211