gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: smsd Makefile from CVS snapshot


From: Jeffrey G. Ubalde
Subject: Re: smsd Makefile from CVS snapshot
Date: Tue, 19 Oct 2004 16:10:54 +0800

but if you insist using this version.... you should comment out modules
that you are not gonna use. for example, you decided to use mysql as
your database. your makefile should look like this: (note the pound
signs(#))

### DB Modules
# Change this according to your system
# FIXME: detect it in configure

# PostgreSQL support
#pq.lo: smsd.h pq.c
#        $(LIBTOOL) --mode=compile $(CC) -o pq.lo $(CFLAGS) $(CPPFLAGS)\
#        -I../include -I$(shell pg_config --includedir) -c pq.c

#libpq.la: pq.lo
#        $(LIBTOOL) --mode=link $(CC) -o libpq.la pq.lo \
#        $(shell $(GLIBLDLIBS)) -L$(shell pg_config --libdir) -lpq \
#        -export-dynamic -avoid-version -rpath ${libdir}/smsd



# MySQL support
mysql.lo: smsd.h mysql.c
        $(LIBTOOL) --mode=compile $(CC) -o mysql.lo $(CFLAGS)
$(CPPFLAGS) \
        -I../include $(shell mysql_config --cflags) -c mysql.c

libmysql.la: mysql.lo
        $(LIBTOOL) --mode=link $(CC) -o libmysql.la mysql.lo \
        $(shell $(GLIBLDLIBS)) $(shell mysql_config --libs) \
        -export-dynamic -avoid-version -rpath ${libdir}/smsd

# File support
#file.lo: smsd.h file.c
#        $(LIBTOOL) --mode=compile $(CC) -o file.lo $(CFLAGS)
#$(CPPFLAGS) \
        -I../include -c file.c

#libfile.la: file.lo
#        $(LIBTOOL) --mode=link $(CC) -o libfile.la file.lo \
#        $(shell $(GLIBLDLIBS)) \
#        -export-dynamic -avoid-version -rpath ${libdir}/smsd

### End of DB Modules



> On Wed, Oct 13, 2004 at 10:08:00AM +0100, Joao Carneiro - DLS wrote:
> 
> Hello.
> 
> > This is a code snip from the smsd Makefile, on the README that lies on the
> > ./smsd/ you can find "vi Makefile (edit paths in "DB Modules" section)".
> 
> This information is outdated now. pg_config and mysql_config should do the
> job for you.
> 
> > I appologise for my ignorance, but i know nothing on makefiles and cannot
> > see where the path's must be ajusted.
> > 
> > Could someone give me a hint?
> 
>                               jan







>  
-- 
Jeffrey G. Ubalde <address@hidden>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]