Mercurial > pidgin.yaz
annotate plugins/win32/transparency/Makefile.mingw @ 10861:42c16b293867
[gaim-migrate @ 12544]
White McSpacen
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 24 Apr 2005 19:52:29 +0000 |
parents | bb7723f0b4b9 |
children |
rev | line source |
---|---|
3729 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32trans 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 | |
16 ## | |
17 ## VARIABLE DEFINITIONS | |
18 ## | |
19 | |
20 TARGET = win2ktrans | |
21 | |
22 # Compiler Options | |
23 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4096
diff
changeset
|
24 CFLAGS = |
3729 | 25 |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4096
diff
changeset
|
26 DEFINES = |
3729 | 27 |
28 ## | |
29 ## INCLUDE MAKEFILES | |
30 ## | |
31 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4096
diff
changeset
|
32 include $(GAIM_TOP)/src/win32/global.mak |
3729 | 33 |
34 ## | |
35 ## INCLUDE PATHS | |
36 ## | |
37 | |
4096
72d973958607
[gaim-migrate @ 4311]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3729
diff
changeset
|
38 INCLUDE_PATHS += -I. \ |
3729 | 39 -I$(GTK_TOP)/include \ |
40 -I$(GTK_TOP)/include/gtk-2.0 \ | |
41 -I$(GTK_TOP)/include/glib-2.0 \ | |
42 -I$(GTK_TOP)/include/pango-1.0 \ | |
43 -I$(GTK_TOP)/include/atk-1.0 \ | |
44 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
45 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
46 -I$(GAIM_TOP)/src \ | |
47 -I$(GAIM_TOP)/src/win32 \ | |
48 -I$(GAIM_TOP) | |
49 | |
50 | |
51 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
4096
72d973958607
[gaim-migrate @ 4311]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3729
diff
changeset
|
52 -L$(GAIM_TOP)/src |
3729 | 53 |
54 | |
55 ## | |
56 ## SOURCES, OBJECTS | |
57 ## | |
58 | |
4096
72d973958607
[gaim-migrate @ 4311]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3729
diff
changeset
|
59 C_SRC = win2ktrans.c |
3729 | 60 |
61 | |
62 OBJECTS = $(C_SRC:%.c=%.o) | |
63 | |
64 | |
65 ## | |
66 ## LIBRARIES | |
67 ## | |
68 | |
4096
72d973958607
[gaim-migrate @ 4311]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3729
diff
changeset
|
69 LIBS = -lgtk-win32-2.0 \ |
72d973958607
[gaim-migrate @ 4311]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3729
diff
changeset
|
70 -lglib-2.0 \ |
72d973958607
[gaim-migrate @ 4311]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3729
diff
changeset
|
71 -lgdk-win32-2.0 \ |
72d973958607
[gaim-migrate @ 4311]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3729
diff
changeset
|
72 -lgmodule-2.0 \ |
72d973958607
[gaim-migrate @ 4311]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3729
diff
changeset
|
73 -lgobject-2.0 \ |
72d973958607
[gaim-migrate @ 4311]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3729
diff
changeset
|
74 -lws2_32 \ |
72d973958607
[gaim-migrate @ 4311]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3729
diff
changeset
|
75 -lintl \ |
72d973958607
[gaim-migrate @ 4311]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3729
diff
changeset
|
76 -lgaim |
3729 | 77 |
78 | |
79 ## | |
80 ## RULES | |
81 ## | |
82 | |
83 # How to make a C file | |
84 | |
85 %.o: %.c | |
86 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
87 | |
88 ## | |
89 ## TARGET DEFINITIONS | |
90 ## | |
91 | |
92 .PHONY: all clean | |
93 | |
4096
72d973958607
[gaim-migrate @ 4311]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3729
diff
changeset
|
94 all: $(TARGET).dll |
3729 | 95 |
96 install: | |
4096
72d973958607
[gaim-migrate @ 4311]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3729
diff
changeset
|
97 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
3729 | 98 |
99 | |
100 ## | |
101 ## BUILD Dependencies | |
102 ## | |
103 | |
104 $(GAIM_TOP)/src/gaim.lib: | |
105 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
106 | |
107 ## | |
108 ## BUILD DLL | |
109 ## | |
110 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4096
diff
changeset
|
111 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4096
diff
changeset
|
112 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
3729 | 113 |
114 ## | |
115 ## CLEAN RULES | |
116 ## | |
117 | |
118 clean: | |
119 rm -rf *.o | |
120 rm -rf $(TARGET).dll |