Skip to content

Instantly share code, notes, and snippets.

@tamer-hassan
Created April 5, 2011 14:31
Show Gist options
  • Save tamer-hassan/903698 to your computer and use it in GitHub Desktop.
Save tamer-hassan/903698 to your computer and use it in GitHub Desktop.
Makefile for win32 (mingw) version of purple-bitly Plugin for libpurple
#
# Makefile.mingw
#
# Description: Makefile for win32 (mingw) version of purple-bitly Plugin for libpurple
#
PIDGIN_TREE_TOP := ../../..
include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
LIBCURL_TOP := ${WIN32_DEV_TOP}/curl-7.21.4-devel-mingw32
.SUFFIXES:
.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${LIBCURL_TOP}/include
LIB_PATHS += \
-L$(GTK_TOP)/lib \
-L$(PURPLE_TOP) \
-L${LIBCURL_TOP}/lib
##
## LIBRARIES
##
LIBS = \
-lglib-2.0 \
-lgobject-2.0 \
-lgmodule-2.0 \
-lintl \
-lws2_32 \
-lpurple \
-lcurldll
##
## TARGET DEFINITIONS
##
%.dll: %.c $(PURPLE_CONFIG_H) $(PURPLE_VERSION_H)
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o [email protected] -c $<
$(CC) -shared [email protected] $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $@
plugin: bitly.dll
##
## CLEAN RULES
##
clean:
rm -f *.o *.dll
include $(PIDGIN_COMMON_TARGETS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment