comparison src/Makefile.mingw @ 4018:1e9dbcdf8455

[gaim-migrate @ 4218] No longer building sound headers, sounds are played from file committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Fri, 29 Nov 2002 19:12:24 +0000
parents e0f868943dee
children a997156437b6
comparison
equal deleted inserted replaced
4017:4cf1d0ff9f5f 4018:1e9dbcdf8455
72 -L$(GTKSPELL_TOP)/gtkspell 72 -L$(GTKSPELL_TOP)/gtkspell
73 73
74 ## 74 ##
75 ## SOURCES, OBJECTS 75 ## SOURCES, OBJECTS
76 ## 76 ##
77
78 SOUND_H_FILES = $(GAIM_TOP)/sounds/BuddyArrive.h \
79 $(GAIM_TOP)/sounds/BuddyLeave.h \
80 $(GAIM_TOP)/sounds/Receive.h \
81 $(GAIM_TOP)/sounds/RedAlert.h \
82 $(GAIM_TOP)/sounds/Send.h
83
84 HEADER_DEPS = $(SOUND_H_FILES)
85 77
86 DLL_C_SRC = aim.c \ 78 DLL_C_SRC = aim.c \
87 about.c \ 79 about.c \
88 away.c \ 80 away.c \
89 browser.c \ 81 browser.c \
147 139
148 ## 140 ##
149 ## RULES 141 ## RULES
150 ## 142 ##
151 143
152 # Make Sound headers
153 $(GAIM_TOP)/sounds/%.h:
154 $(MAKE) -C $(GAIM_TOP)/sounds -f Makefile.mingw $(@F)
155
156 # How to make a C file 144 # How to make a C file
157 %.o: %.c 145 %.o: %.c
158 $(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@ 146 $(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@
159 147
160 # How to make an RC file 148 # How to make an RC file
177 165
178 # 166 #
179 # BUILD DLL 167 # BUILD DLL
180 # 168 #
181 169
182 $(TARGET).def: $(HEADER_DEPS) $(DLL_OBJECTS) 170 $(TARGET).def: $(DLL_OBJECTS)
183 dlltool -D $(TARGET).dll -z $(TARGET).def --export-all-symbols \ 171 dlltool -D $(TARGET).dll -z $(TARGET).def --export-all-symbols \
184 --exclude-symbols WinMain@16 $^ 172 --exclude-symbols WinMain@16 $^
185 173
186 $(TARGET).base: $(HEADER_DEPS) $(DLL_OBJECTS) 174 $(TARGET).base: $(DLL_OBJECTS)
187 $(CC) -mdll $(LDFLAGS) -o junk.tmp -Wl,--base-file,$@ $(DLL_OBJECTS) $(LIB_PATHS) $(DLL_LIBS) 175 $(CC) -mdll $(LDFLAGS) -o junk.tmp -Wl,--base-file,$@ $(DLL_OBJECTS) $(LIB_PATHS) $(DLL_LIBS)
188 rm -rf junk.tmp 176 rm -rf junk.tmp
189 177
190 $(TARGET).exp: $(TARGET).base $(TARGET).def 178 $(TARGET).exp: $(TARGET).base $(TARGET).def
191 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ 179 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \
192 --output-exp $(TARGET).exp --def $(TARGET).def 180 --output-exp $(TARGET).exp --def $(TARGET).def
193 181
194 $(TARGET).dll: $(HEADER_DEPS) $(DLL_OBJECTS) $(GAIM_SRC)/win32/IdleTracker/IdleTrac.dll $(TARGET).exp 182 $(TARGET).dll: $(DLL_OBJECTS) $(GAIM_SRC)/win32/IdleTracker/IdleTrac.dll $(TARGET).exp
195 $(CC) -mdll $(LDFLAGS) -o $(TARGET).dll $(DLL_OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(DLL_LIBS) 183 $(CC) -mdll $(LDFLAGS) -o $(TARGET).dll $(DLL_OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(DLL_LIBS)
196 rm -rf $(TARGET).exp $(TARGET).def $(TARGET).base 184 rm -rf $(TARGET).exp $(TARGET).def $(TARGET).base
197 185
198 $(TARGET).lib: $(TARGET).def 186 $(TARGET).lib: $(TARGET).def
199 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib 187 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib