summaryrefslogtreecommitdiffstats
path: root/knetworkmanager-0.8/src/dbus/Makefile.am
blob: 6383078d4d19e1a46869f02bb0eca7eaf5abdc2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
INCLUDES =  $(DBUS_TQT_CFLAGS) $(QT_INCLUDES)

INTROSPECTIONPATH = $(srcdir)/../../introspection/

MOCHEADERS = accesspointproxy.h deviceproxy.h networkmanagerproxy.h networkmanagervpnproxy.h \
    wiredproxy.h wirelessproxy.h activeconnectionproxy.h vpnconnectionproxy.h vpnpluginproxy.h gsmproxy.h cdmaproxy.h
#ip4configproxy.h 

MOCSUBS = accesspointproxy.moc deviceproxy.moc networkmanagerproxy.moc networkmanagervpnproxy.moc \
    wiredproxy.moc wirelessproxy.moc activeconnectionproxy.moc vpnconnectionproxy.moc vpnpluginproxy.moc gsmproxy.moc cdmaproxy.moc
#ip4configproxy.moc 

DBUSPROXY = networkmanagerproxy.cpp \
            networkmanagervpnproxy.cpp \
            deviceproxy.cpp \
            wiredproxy.cpp \
            wirelessproxy.cpp \
            accesspointproxy.cpp \
            networkmanagersettings.cpp \
            connection.cpp \
            connectionnode.cpp \
            introspectableinterface.cpp \
            mocfiles.cpp \
            activeconnectionproxy.cpp \
            vpnconnectionproxy.cpp \
            vpnpluginproxy.cpp \
            gsmproxy.cpp \
            cdmaproxy.cpp
#            ip4configproxy.cpp 

DBUSPROXYHEADERS = networkmanagerproxy.h \
                   networkmanagervpnproxy.h \
                   deviceproxy.h \
                   wiredproxy.h \
                   wirelessproxy.h \
                   accesspointproxy.h \
                   networkmanagersettings.h \
                   connection.h \
                   connectionnode.h \
                   introspectableinterface.h \
                   activeconnectionproxy.h \
                   vpnconnectionproxy.h \
                   vpnpluginproxy.h \
                   gsmproxy.h \
                   cdmaproxy.h
#                   ip4configproxy.h 

noinst_HEADERS = accesspointproxy.h \
connection.h \
connectionnode.h \
deviceproxy.h \
introspectableinterface.h \
networkmanagerproxy.h \
networkmanagervpnproxy.h \
networkmanagersettings.h \
wiredproxy.h \
wirelessproxy.h \
activeconnectionproxy.h \
vpnconnectionproxy.h \
vpnpluginproxy.h \
gsmproxy.h \
cdmaproxy.h
#ip4configproxy.h 

noinst_LTLIBRARIES = libknm_dbus.la
libknm_dbus_la_SOURCES = $(DBUSPROXY)

CLEANFILES = $(DBUSPROXY) $(DBUSPROXYHEADERS) $(MOCSUBS)

.h.moc:
	$(TQTMOC) $< -o $@

mocfiles.cpp: $(MOCSUBS)
	cat $(MOCSUBS) > mocfiles.cpp

networkmanagerproxy.cpp networkmanagerproxy.h:
	$(DBUSXML2QT3) -p networkmanagerproxy -c NetworkManagerProxy -N DBus $(INTROSPECTIONPATH)nm-manager.xml

networkmanagervpnproxy.cpp networkmanagervpnproxy.h:
	$(DBUSXML2QT3) -p networkmanagervpnproxy -c NetworkManagerVPNProxy -N DBus $(INTROSPECTIONPATH)nm-vpn-manager.xml

deviceproxy.cpp deviceproxy.h:
	$(DBUSXML2QT3) -p deviceproxy -c DeviceProxy -N DBus $(INTROSPECTIONPATH)nm-device.xml

wirelessproxy.cpp wirelessproxy.h:
	$(DBUSXML2QT3) -p wirelessproxy -c WirelessDeviceProxy -N DBus $(INTROSPECTIONPATH)nm-device-802-11-wireless.xml

wiredproxy.cpp wiredproxy.h:
	$(DBUSXML2QT3) -p wiredproxy -c WiredDeviceProxy -N DBus $(INTROSPECTIONPATH)nm-device-802-3-ethernet.xml

gsmproxy.cpp gsmproxy.h:
	$(DBUSXML2QT3) -p gsmproxy -c GSMDeviceProxy -N DBus $(INTROSPECTIONPATH)nm-device-gsm.xml

cdmaproxy.cpp cdmaproxy.h:
	$(DBUSXML2QT3) -p cdmaproxy -c CDMADeviceProxy -N DBus $(INTROSPECTIONPATH)nm-device-cdma.xml

#ip4configproxy.cpp ip4configproxy.h:
#	$(DBUSXML2QT3) -p ip4configproxy -c IP4ConfigProxy -N DBus $(INTROSPECTIONPATH)nm-ip4-config.xml

accesspointproxy.cpp accesspointproxy.h:
	$(DBUSXML2QT3) -p accesspointproxy -c AccessPointProxy -N DBus $(INTROSPECTIONPATH)nm-access-point.xml

activeconnectionproxy.cpp activeconnectionproxy.h:
	$(DBUSXML2QT3) -p activeconnectionproxy -c ActiveConnectionProxy -N DBus $(INTROSPECTIONPATH)nm-active-connection.xml

#vpnconnectionproxy.cpp vpnconnectionproxy.h:
#	$(DBUSXML2QT3) -p vpnconnectionproxy -c VPNConnectionProxy -N DBus $(INTROSPECTIONPATH)nm-vpn-connection.xml

#vpnconnectionproxy.cpp vpnconnectionproxy.h:
#	$(DBUSXML2QT3) -p vpnconnectionproxy -N DBus $(INTROSPECTIONPATH)nm-vpn-connection.xml

vpnconnectionproxy.cpp vpnconnectionproxy.h:
	$(DBUSXML2QT3) -p vpnconnectionproxy -c VPNConnectionProxy -N DBus $(INTROSPECTIONPATH)nm-vpn-connection-only.xml

vpnpluginproxy.cpp vpnpluginproxy.h:
	$(DBUSXML2QT3) -p vpnpluginproxy -c VPNPluginProxy -N DBus $(INTROSPECTIONPATH)nm-vpn-plugin.xml

networkmanagersettings.cpp networkmanagersettings.h:
	$(DBUSXML2QT3) -i networkmanagersettings -c SettingsInterface -N DBus $(INTROSPECTIONPATH)nm-settings.xml

connection.cpp connection.h:
	$(DBUSXML2QT3) -i connection -N DBus $(INTROSPECTIONPATH)nm-exported-connection.xml

connectionnode.cpp connectionnode.h introspectableinterface.cpp introspectableinterface.h:
	$(DBUSXML2QT3) -n connectionnode -c ConnectionNode -N DBus $(INTROSPECTIONPATH)nm-exported-connection.xml
	sed s/#include\ \"secrets.h\"// connectionnode.cpp > connectionnode.cpp_tmp
	sed s/#include\ \"introspectable.h\"/#include\ \"introspectableinterface.h\"/ connectionnode.cpp_tmp > connectionnode.cpp
	rm -f connectionnode.cpp_tmp