Skip to content

Commit

Permalink
Add files to the repository
Browse files Browse the repository at this point in the history
  • Loading branch information
aebrahim committed Jan 17, 2012
0 parents commit 33d0bdd
Show file tree
Hide file tree
Showing 3 changed files with 608 additions and 0 deletions.
65 changes: 65 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#
# Makefile.mingw
#
# Description: Makefile for win32 (mingw) version of libpurple Plugins
#

TARGET = pidgin-wincred.dll

PIDGIN_TREE_TOP := ../..
include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
.SUFFIXES: .c .dll

##
## INCLUDE PATHS
##
INCLUDE_PATHS += \
-I$(GTK_TOP)/include \
-I$(GTK_TOP)/include/glib-2.0 \
-I$(GTK_TOP)/lib/glib-2.0/include \
-I$(PIDGIN_TREE_TOP) \
-I$(PURPLE_TOP) \
-I$(PURPLE_TOP)/win32 \
-I`pwd`

LIB_PATHS += \
-L$(GTK_TOP)/lib \
-L$(PURPLE_TOP)

##
## LIBRARIES
##
LIBS = \
-lglib-2.0 \
-lgobject-2.0 \
-lgmodule-2.0 \
-lintl \
-lws2_32 \
-lpurple \

CFLAGS = -O2 -Wall -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -pipe -mms-bitfields -g

##
## TARGET DEFINITIONS
##
.PHONY: all clean

all: $(TARGET)

.c.dll:
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -mwindows -o $@.o -c $<
$(CC) -shared $@.o $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $@
rm $@.o

install: $(TARGET)
cp $(TARGET) /cygdrive/c/Users/$(USERNAME)/AppData/Roaming/.purple/plugins/



##
## CLEAN RULES
##
clean:
rm -f *.o *.dll

include $(PIDGIN_COMMON_TARGETS)
Loading

0 comments on commit 33d0bdd

Please sign in to comment.