libpurple/win32/rules.mak

Thu, 09 May 2013 22:54:57 +0200

author
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
date
Thu, 09 May 2013 22:54:57 +0200
changeset 33930
392528e9a372
parent 33867
68be92b95def
child 33937
f15e97d8758e
permissions
-rw-r--r--

Fix compilation for win32

14377
c0440e16bacd [gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
1 # Rules on how to make object files from various sources
c0440e16bacd [gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
2
c0440e16bacd [gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
3 %.o: %.c
c0440e16bacd [gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
4 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $<
c0440e16bacd [gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
5
c0440e16bacd [gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
6 %.c: %.xs
33867
68be92b95def win32: silence win32 build by displaying neat CC/CCLD/PERL tags instead of compilation command contents
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 30285
diff changeset
7 $(TAG) "PERL" $(PERL) -MExtUtils::ParseXS -e 'ExtUtils::ParseXS::process_file(filename => "$<", output => "$@", typemap => "$(PURPLE_PERL_TOP)/common/typemap");'
14377
c0440e16bacd [gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
8
c0440e16bacd [gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
9 %.o: %.rc
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15435
diff changeset
10 $(WINDRES) -I$(PURPLE_TOP) -i $< -o $@
30285
33c8197dc6b6 Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents: 29868
diff changeset
11
33c8197dc6b6 Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents: 29868
diff changeset
12 %.desktop: %.desktop.in $(wildcard $(PIDGIN_TREE_TOP)/po/*.po)
33c8197dc6b6 Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents: 29868
diff changeset
13 LC_ALL=C $(PERL) $(INTLTOOL_MERGE) -d -u -c $(PIDGIN_TREE_TOP)/po/.intltool-merge-cache $(PIDGIN_TREE_TOP)/po $< $@
33930
392528e9a372 Fix compilation for win32
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33867
diff changeset
14
392528e9a372 Fix compilation for win32
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33867
diff changeset
15 %.html.h: %.html
392528e9a372 Fix compilation for win32
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33867
diff changeset
16 @echo -e " GEN\t$@"
392528e9a372 Fix compilation for win32
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33867
diff changeset
17 @echo "static const char $*_html[] = {" > $@
392528e9a372 Fix compilation for win32
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33867
diff changeset
18 @sed -e 's/^[ ]\+//g' -e 's/[ ]\+/ /g' $< | xxd -i | sed -e 's/\(0x[0-9a-f][0-9a-f]\)$$/\1, 0x00/' >> $@
392528e9a372 Fix compilation for win32
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33867
diff changeset
19 @echo "};" >> $@

mercurial