Mercurial > pidgin
annotate plugins/ssl/Makefile.mingw @ 7042:d3f8aa123372
[gaim-migrate @ 7605]
<SimGuy> did you forget about the makefile again? :P
I was just waiting for the right moment.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Mon, 29 Sep 2003 23:59:25 +0000 |
| parents | 8ecbba7d4118 |
| children | c92dbccd7448 |
| rev | line source |
|---|---|
| 7031 | 1 # |
| 2 # Makefile.mingw | |
| 3 # | |
| 4 # Description: Makefile for ssl plugin. | |
| 5 # | |
| 6 | |
| 7 # | |
| 8 # PATHS | |
| 9 # | |
| 10 | |
| 11 GTK_TOP := ../../../win32-dev/gtk_2_0 | |
| 12 GAIM_TOP := ../.. | |
| 13 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 14 DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins | |
| 15 NSS_DIR := ../../../win32-dev/nss-3.8 | |
| 16 NSPR_DIR := ../../../win32-dev/nspr-4.3 | |
| 17 | |
| 18 ## | |
| 19 ## VARIABLE DEFINITIONS | |
| 20 ## | |
| 21 | |
| 22 TARGET = ssl | |
| 23 TARGET_NSS = ssl-nss | |
| 24 | |
| 25 # Compiler Options | |
| 26 | |
| 27 CFLAGS = | |
| 28 | |
| 29 DEFINES = | |
| 30 | |
| 31 ## | |
| 32 ## INCLUDE MAKEFILES | |
| 33 ## | |
| 34 | |
| 35 include $(GAIM_TOP)/src/win32/global.mak | |
| 36 | |
| 37 ## | |
| 38 ## INCLUDE PATHS | |
| 39 ## | |
| 40 | |
| 41 INCLUDE_PATHS += -I. \ | |
| 42 -I$(GTK_TOP)/include \ | |
| 43 -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 44 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 45 -I$(GTK_TOP)/include/pango-1.0 \ | |
| 46 -I$(GTK_TOP)/include/atk-1.0 \ | |
| 47 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 48 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
| 49 -I$(GAIM_TOP)/src \ | |
| 50 -I$(GAIM_TOP)/src/win32 \ | |
| 51 -I$(GAIM_TOP) \ | |
| 52 -I$(NSS_DIR)/include \ | |
| 53 -I$(NSPR_DIR)/include | |
| 54 | |
| 55 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 56 -L$(GAIM_TOP)/src \ | |
| 57 -L$(NSS_DIR)/lib \ | |
| 58 -L$(NSPR_DIR)/lib | |
| 59 | |
| 60 ## | |
| 61 ## SOURCES, OBJECTS | |
| 62 ## | |
| 63 | |
| 64 C_SRC = ssl.c | |
| 65 | |
| 66 C_SRC_NSS = ssl-nss.c | |
| 67 | |
| 68 | |
| 69 OBJECTS = $(C_SRC:%.c=%.o) | |
| 70 | |
| 71 OBJECTS_NSS = $(C_SRC_NSS:%.c=%.o) | |
| 72 | |
| 73 | |
| 74 ## | |
| 75 ## LIBRARIES | |
| 76 ## | |
| 77 | |
| 78 LIBS = -lgtk-win32-2.0 \ | |
| 79 -lglib-2.0 \ | |
| 80 -lgdk-win32-2.0 \ | |
| 81 -lgmodule-2.0 \ | |
| 82 -lgobject-2.0 \ | |
| 83 -lws2_32 \ | |
| 84 -lintl \ | |
| 85 -lgaim \ | |
| 86 -lnss3 \ | |
| 87 -lnspr4 \ | |
| 88 -lssl3 | |
| 89 | |
| 90 | |
| 91 ## | |
| 92 ## RULES | |
| 93 ## | |
| 94 | |
| 95 # How to make a C file | |
| 96 | |
| 97 %.o: %.c | |
| 98 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 99 | |
| 100 ## | |
| 101 ## TARGET DEFINITIONS | |
| 102 ## | |
| 103 | |
| 104 .PHONY: all clean | |
| 105 | |
|
7042
d3f8aa123372
[gaim-migrate @ 7605]
Christian Hammond <chipx86@chipx86.com>
parents:
7031
diff
changeset
|
106 all: $(TARGET).dll $(TARGET_NSS).dll |
| 7031 | 107 |
| 108 install: | |
| 109 cp $(TARGET).dll $(DLL_INSTALL_DIR) | |
| 110 cp $(TARGET_NSS).dll $(DLL_INSTALL_DIR) | |
| 111 | |
| 112 | |
| 113 ## | |
| 114 ## BUILD Dependencies | |
| 115 ## | |
| 116 | |
| 117 $(GAIM_TOP)/src/gaim.lib: | |
| 118 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
| 119 | |
| 120 ## | |
| 121 ## BUILD DLL | |
| 122 ## | |
| 123 | |
| 124 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
| 125 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll | |
| 126 $(TARGET_NSS).dll: $(OBJECTS_NSS) $(GAIM_TOP)/src/gaim.lib | |
| 127 $(CC) -shared $(OBJECTS_NSS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET_NSS).dll | |
| 128 | |
| 129 ## | |
| 130 ## CLEAN RULES | |
| 131 ## | |
| 132 | |
| 133 clean: | |
| 134 rm -rf *.o | |
| 135 rm -rf $(TARGET).dll | |
| 136 rm -rf $(TARGET_NSS).dll |
