~ubuntu-branches/ubuntu/trusty/xiphos/trusty

« back to all changes in this revision

Viewing changes to src/examples/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Dmitrijs Ledkovs, Jonathan Marsden, Dmitrijs Ledkovs
  • Date: 2010-11-25 21:26:48 UTC
  • mfrom: (2.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20101125212648-mc64wvs0nw3xp7bx
Tags: 3.1.4-1
[ Jonathan Marsden ]
* New upstream release 3.1.4
* Removed debian/patch/* since the one patch was included upstream.
* Bumped Standards-Version to 3.9.1 (no changes required).
* debian/README.Debian: Corrected spelling and reworded for clarity.
* debian/control: Add Jonathan Marsden back into Uploaders.

[ Dmitrijs Ledkovs ]
* Added local options dpkg-source to unapply patches and fail on
  upstream source changes (ignoring false positives).
* Added bzr-builddeb hook to generate source-format before build. If you
  are not using bzr-builddeb, you must run "./debian/rules clean" before
  building.
* patches/xul-2.0.patch: bump UPPER_RANGE to allow running against xul20.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
interface_xml := ../gnome2/ipc-interface.xml
2
 
 
3
 
pkg_packages := dbus-1 dbus-glib-1
4
 
 
5
 
PKG_CFLAGS := $(shell pkg-config --cflags $(pkg_packages))
6
 
PKG_LDFLAGS := $(shell pkg-config --libs $(pkg_packages))
7
 
 
8
 
ADD_CFLAGS := -g -Wall -DG_DISABLE_DEPRECATED
9
 
 
10
 
CFLAGS := $(PKG_CFLAGS) $(ADD_CFLAGS) $(CFLAGS)
11
 
LDFLAGS := $(PKG_LDFLAGS) $(LDFLAGS)
12
 
 
13
 
cleanfiles := ipc-client-stub.h
14
 
 
15
 
targets = client
16
 
 
17
 
.PHONY: all clean
18
 
all: $(targets)
19
 
 
20
 
client: receive.o
21
 
        $(CC) $^ -o $@ $(LDFLAGS)
22
 
 
23
 
receive.o: ipc_client.c ipc-client-stub.h
24
 
           $(CC) $(CFLAGS) -DPROGRNAME=\"ipc_client\" -c $< -o $@
25
 
 
26
 
ipc-client-stub.h: $(interface_xml)
27
 
                   dbus-binding-tool --prefix=ipc_object --mode=glib-client \
28
 
                   $< > $@
29
 
 
30
 
clean:
31
 
        $(RM) $(targets) $(cleanfiles) *.o