comparison plugins/perl/Makefile.mingw @ 6816:5aeba37b303c

[gaim-migrate @ 7356] Perl plugins for Win Gaim. committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Fri, 12 Sep 2003 19:04:52 +0000
parents b931dcf6febc
children f05d0a317f45
comparison
equal deleted inserted replaced
6815:1c6a4cba84f3 6816:5aeba37b303c
8 # PATHS 8 # PATHS
9 # 9 #
10 10
11 GTK_TOP := ../../../win32-dev/gtk_2_0 11 GTK_TOP := ../../../win32-dev/gtk_2_0
12 GAIM_TOP := ../.. 12 GAIM_TOP := ../..
13 PERL_LIB_DIR := ../../../win32-dev/perl56 13 PERL_LIB_DIR := ../../../win32-dev/perl58
14 PERL_INCLUDE := $(PERL_LIB_DIR)/CORE 14 PERL_INCLUDE := $(PERL_LIB_DIR)/CORE
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir 15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir
16 DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins 16 DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins
17 17
18 ## 18 ##
82 -lgmodule-2.0 \ 82 -lgmodule-2.0 \
83 -lgobject-2.0 \ 83 -lgobject-2.0 \
84 -lws2_32 \ 84 -lws2_32 \
85 -lintl \ 85 -lintl \
86 -lgaim \ 86 -lgaim \
87 -lperl56 87 -lperl58
88 88
89 89
90 ## 90 ##
91 ## RULES 91 ## RULES
92 ## 92 ##
101 ## 101 ##
102 102
103 .PHONY: all clean 103 .PHONY: all clean
104 104
105 all: $(TARGET).dll 105 all: $(TARGET).dll
106 $(MAKE) -C ./common -f Makefile.mingw
106 107
107 install: 108 install:
108 cp $(TARGET).dll $(DLL_INSTALL_DIR) 109 cp $(TARGET).dll $(DLL_INSTALL_DIR)
109 110 $(MAKE) -C ./common -f Makefile.mingw install
110 111
111 ## 112 ##
112 ## BUILD Dependencies 113 ## BUILD Dependencies
113 ## 114 ##
114 115
118 ## 119 ##
119 ## BUILD DLL 120 ## BUILD DLL
120 ## 121 ##
121 122
122 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib 123 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib
123 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll 124 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--export-all-symbols -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll
124 125
125 126
126 ## 127 ##
127 ## CLEAN RULES 128 ## CLEAN RULES
128 ## 129 ##
129 130
130 clean: 131 clean:
131 rm -rf *.o 132 rm -rf *.o
132 rm -rf $(TARGET).dll 133 rm -rf $(TARGET).dll $(TARGET).lib
134 $(MAKE) -C ./common -f Makefile.mingw clean