Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (23 sloc) 711 Bytes
.PHONY: all
FLAGS=$(shell pkg-config --libs --cflags gio-2.0 gio-unix-2.0 glib-2.0)
all: server client
server: server.o minminbus.o
gcc -o $@ $^ $(FLAGS)
client: client.o minminbus.o
gcc -o $@ $^ $(FLAGS)
server.o: server.c
gcc -o $@ $^ -c $(FLAGS)
client.o: client.c
gcc -o $@ $^ -c $(FLAGS)
minminbus.o: minminbus.c
gcc -o $@ $^ -c $(FLAGS)
clean:
rm -f *.o server client
# gen stub
gen:
gdbus-codegen --generate-c-code minminbus --c-namespace MinMinBus --interface-prefix com.fatminmin. com.fatminmin.GDBUS.xml
# dbus
introspect:
gdbus introspect -e -d com.fatminmin -o /com/fatminmin/GDBUS
call:
gdbus call -e -d com.fatminmin -o /com/fatminmin/GDBUS -m com.fatminmin.GDBUS.HelloWorld fatminmin