Sat, 16 Dec 2006 04:59:55 +0000
This is a hand-crafted commit to migrate across subversion revisions
16854:16861, due to some vagaries of the way the original renames were
done. Witness that monotone can do in one revision what svn had to
spread across several.
| 8675 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for win32 (mingw) version of libnovell | |
| 5 | # | |
| 6 | ||
| 7 | # | |
| 8 | # PATHS | |
| 9 | # | |
| 10 | ||
| 11 | INCLUDE_DIR := . | |
| 12 | GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
| 13 | GAIM_TOP := ../../.. | |
| 14 | NOVELL_ROOT := . | |
| 15 | GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 16 | ||
| 17 | ## | |
| 18 | ## VARIABLE DEFINITIONS | |
| 19 | ## | |
| 20 | ||
| 21 | TARGET = libnovell | |
| 22 | ||
| 23 | # Compiler Options | |
| 24 | ||
| 25 | CFLAGS = | |
| 26 | ||
| 27 | DEFINES = | |
| 28 | ||
| 29 | # Static or Plugin... | |
| 30 | ifeq ($(TYPE),STATIC) | |
| 31 | DEFINES += -DSTATIC | |
| 32 | DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
| 33 | else | |
| 34 | ifeq ($(TYPE),PLUGIN) | |
| 35 | DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
| 36 | endif | |
| 37 | endif | |
| 38 | ||
| 39 | ||
| 40 | ## | |
| 41 | ## INCLUDE MAKEFILES | |
| 42 | ## | |
| 43 | ||
| 44 | include $(GAIM_TOP)/src/win32/global.mak | |
| 45 | ||
| 46 | ## | |
| 47 | ## INCLUDE PATHS | |
| 48 | ## | |
| 49 | ||
| 50 | INCLUDE_PATHS += -I$(NOVELL_ROOT) \ | |
| 51 | -I$(GTK_TOP)/include \ | |
| 52 | -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 53 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 54 | -I$(GTK_TOP)/include/pango-1.0 \ | |
| 55 | -I$(GTK_TOP)/include/atk-1.0 \ | |
| 56 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 57 | -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
| 58 | -I$(GAIM_TOP)/src \ | |
| 59 | -I$(GAIM_TOP)/src/win32 \ | |
| 60 | -I$(GAIM_TOP) | |
| 61 | ||
| 62 | ||
| 63 | LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 64 | -L$(GAIM_TOP)/src | |
| 65 | ||
| 66 | ||
| 67 | ## | |
| 68 | ## SOURCES, OBJECTS | |
| 69 | ## | |
| 70 | ||
| 71 | C_SRC = nmfield.c \ | |
| 72 | nmconn.c \ | |
| 73 | nmconference.c \ | |
| 74 | nmcontact.c \ | |
| 75 | nmevent.c \ | |
| 76 | nmmessage.c \ | |
| 77 | nmrequest.c \ | |
|
9268
196cbf2cae4c
[gaim-migrate @ 10069]
Mike Stoddard <mistoddard@novell.com>
parents:
8675
diff
changeset
|
78 | nmrtf.c \ |
| 8675 | 79 | nmuser.c \ |
| 80 | nmuserrecord.c \ | |
| 81 | novell.c | |
| 82 | ||
| 83 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 84 | ||
| 85 | ||
| 86 | ## | |
| 87 | ## LIBRARIES | |
| 88 | ## | |
| 89 | ||
| 90 | LIBS = -lgtk-win32-2.0 \ | |
| 91 | -lglib-2.0 \ | |
| 92 | -lgdk-win32-2.0 \ | |
| 93 | -lgmodule-2.0 \ | |
| 94 | -lgobject-2.0 \ | |
| 95 | -lws2_32 \ | |
| 96 | -lintl \ | |
| 97 | -lgaim | |
| 98 | ||
| 99 | ||
| 100 | ## | |
| 101 | ## RULES | |
| 102 | ## | |
| 103 | ||
| 104 | # How to make a C file | |
| 105 | ||
| 106 | %.o: %.c | |
| 107 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 108 | ||
| 109 | ## | |
| 110 | ## TARGET DEFINITIONS | |
| 111 | ## | |
| 112 | ||
| 113 | .PHONY: all clean | |
| 114 | ||
| 115 | all: $(TARGET).dll | |
| 116 | ||
| 117 | install: | |
| 118 | cp $(NOVELL_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
| 119 | ||
| 120 | ||
| 121 | ## | |
| 122 | ## BUILD Dependencies | |
| 123 | ## | |
| 124 | ||
| 125 | $(GAIM_TOP)/src/gaim.lib: | |
| 126 | $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
| 127 | ||
| 128 | ## | |
| 129 | ## BUILD DLL | |
| 130 | ## | |
| 131 | ||
| 132 | $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
| 133 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll | |
| 134 | ||
| 135 | ||
| 136 | ## | |
| 137 | ## CLEAN RULES | |
| 138 | ## | |
| 139 | ||
| 140 | clean: | |
| 141 | rm -rf *.o | |
| 142 | rm -rf $(TARGET).dll | |
| 143 | rm -rf $(TARGET).lib |