#
# On most systems glib comes with a helper program used to determine what 
# cflags and libraries to use when compiling a program that uses glib.  These
# definitions should work on most systems, but if they don't on yours you
# should have little trouble figuring out what they should be.
#

GLIBINC=$(shell glib-config --cflags)
GLIBLIB=$(shell glib-config --libs)
                                
                                
#                               
# These are the default paths the openobex package installs under.  Hack as
# necessary to reflect your setup.
#                               
                                
OBEXINC=-I/usr/local/include    
OBEXLIB=-L/usr/local/lib -lopenobex
                                
                                
all: helomoto                   
                                
                                
helomoto: helomoto.o            
	gcc helomoto.o ${GLIBLIB} ${OBEXLIB} -lbluetooth -o helomoto
                                
helomoto.o: helomoto.c          
	gcc ${OBEXINC} ${GLIBINC} -c helomoto.c -o helomoto.o
