Torchat update
[mirrors/ArchLinux-Packages.git] / pidgin-qip-decoder / Makefile
CommitLineData
209feeb0
H
1# Makefile "stolen" from pidgin-qip: http://fialky.com/drupal-5.0/?q=node/13
2
3OS=linux
4CC=gcc
5
6#
7# Linux Build Specifics:
8#
9ifeq ($(OS), linux)
10#TARGET=pidgin-qip.so
11TARGET=qip-decoder.so
12CFLAGS+=`pkg-config pidgin --cflags` -fPIC
13LDFLAGS+=`pkg-config pidgin --libs` -shared
14PREFIX?=/usr/
15PIDGIN_PLUGIN_PATH ?= $(PREFIX)/lib/pidgin/
16endif
17
18
19#
20# Windows Build Specifics
21#
22ifeq ($(OS), win32)
23#TARGET = pidgin-qip.dll
24TARGET = qip-decoder.dll
25
26# Windows users, please check out this :
27
28# Please install the pidgin gtk package (check the readme)
29GTK=C:/cygwin/work/win32-dev/gtk_2_0
30# Please download pidgin corresponding sources, we need them
31PIDGINSRC=C:/cygwin/work/pidgin-2.3.1
32# You need to have pidgin installed, please tell us where
33PIDGIN=C:/Program\ Files/Pidgin
34# Pidgin plugins default directory, it should be OK
35PIDGIN_PLUGIN_PATH=$(PIDGIN)/plugins
36
37# Nothing to modify after this point:
38# Include dirs
39CFLAGS+=-I$(GTK)/include
40CFLAGS+=-I$(GTK)/include/glib-2.0
41CFLAGS+=-I$(GTK)/include/atk-1.0
42CFLAGS+=-I$(GTK)/include/gtk-2.0
43CFLAGS+=-I$(GTK)/include/pango-1.0
44CFLAGS+=-I$(GTK)/lib/gtk-2.0/include
45CFLAGS+=-I$(GTK)/lib/glib-2.0/include
46CFLAGS+=-I$(PIDGINSRC)/pidgin
47CFLAGS+=-I$(PIDGINSRC)/pidgin/win32
48CFLAGS+=-I$(PIDGINSRC)/libpurple
49
50LDFLAGS=-shared -L$(GTK)/lib -L$(PIDGIN)
51LDFLAGS+=-latk-1.0 -lgtk-win32-2.0.dll
52LDFLAGS+=-lpidgin -lpurple -lintl -lgmodule-2.0.dll
53LDFLAGS+=-lglib-2.0.dll -lgdk-win32-2.0.dll
54LDFLAGS+=-lgdk_pixbuf-2.0.dll
55LDFLAGS+=-lgobject-2.0.dll
56LDFLAGS+=-lpango-1.0.dll
57LDFLAGS+=-lpangowin32-1.0.dll
58CC=gcc
59INSTALL=cp
60RM=erase
61endif
62
63# Debug selection, use 'make NODEBUG=1'
64NODEBUG=0
65ifeq ($(NODEBUG), 0 )
66CFLAGS+=-g
67endif
68
69RM?=rm
70INSTALL?=install -D
71
72# Objects rules ...
73
74#OBJS=pidgin-qip.o
75OBJS=qip-decoder.o
76#OBJS+=urlhandler.o
77#OBJS+=plugin.o
78#OBJS+=ui.o
79
80CFLAGS+=-Wall -Werror
81
82$(TARGET): $(OBJS)
83 $(CC) -o $(TARGET) $(OBJS) $(LDFLAGS) $(CFLAGS)
84
85#pidgin-qip.o: pidgin-qip.c pidgin-qip.h
86#urlhandler.o: urlhandler.c pidgin-qip.h
87#plugin.o: plugin.c pidgin-qip.h
88#ui.o: ui.c pidgin-qip.h
89pidgin-qip.o: pidgin-qip.c
90qip-decoder.o: qip-decoder.c
91
92.PHONY: clean
93clean:
94 $(RM) $(TARGET) $(OBJS)
95
96.PHONY: install
97install: $(TARGET)
98 $(INSTALL) $(TARGET) $(PIDGIN_PLUGIN_PATH)/
This page took 0.32994 seconds and 4 git commands to generate.