view libpurple/win32/rules.mak @ 30716:8816f2c9ae43

propagate from branch 'im.pidgin.pidgin' (head 1a7a779bc2131e1ccb4153db0f799a791246c84b) to branch 'im.pidgin.pidgin.mxit' (head 8fe017f89f6289d2aa1a7d0437e389895095f933)
author andrew.victor@mxit.com
date Fri, 16 Jul 2010 12:15:28 +0000
parents 62f0988c666c
children
line wrap: on
line source

# Rules on how to make object files from various sources

%.o: %.c
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $<

%.c: %.xs
	$(PERL) -MExtUtils::ParseXS -e 'ExtUtils::ParseXS::process_file(filename => "$<", output => "$@", typemap => "$(PURPLE_PERL_TOP)/common/typemap");'

%.o: %.rc
	$(WINDRES) -I$(PURPLE_TOP) -i $< -o $@

%.desktop: %.desktop.in $(wildcard $(PIDGIN_TREE_TOP)/po/*.po)
	LC_ALL=C $(PERL) $(INTLTOOL_MERGE) -d -u -c $(PIDGIN_TREE_TOP)/po/.intltool-merge-cache $(PIDGIN_TREE_TOP)/po $< $@