Makefile.incl 2.01 KB
Newer Older
1 2 3
## -*-Makefile -*-
## $Id$

4 5 6
# For debugging purposes
#AM_DEFAULT_VERBOSITY=1

Karl Chen's avatar
Karl Chen committed
7 8
# Note: MYSQL_CFLAGS and MYSQL_LIBS set by configure from mysql_config

Eric J. Korpela's avatar
 
Eric J. Korpela committed
9 10 11 12 13
# ignore any LIBS set by configure
LIBS=

LIBBOINC_VERSION = @LIBBOINC_VERSION@

Karl Chen's avatar
Karl Chen committed
14 15
MYSQL_LIBS = @MYSQL_LIBS@
MYSQL_CFLAGS = @MYSQL_CFLAGS@
Eric J. Korpela's avatar
Eric J. Korpela committed
16 17
PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
PTHREAD_LIBS = @PTHREAD_LIBS@
18

David Anderson's avatar
David Anderson committed
19
RSA_LIBS = -lcrypto
20

Eric J. Korpela's avatar
 
Eric J. Korpela committed
21 22
AM_LIBTOOLFLAGS =

Karl Chen's avatar
Karl Chen committed
23
AM_CPPFLAGS =					\
24
        -I$(top_srcdir)				\
25 26
        -I$(top_srcdir)/api			\
        -I$(top_srcdir)/db			\
27
        -I$(top_srcdir)/lib			\
Eric J. Korpela's avatar
 
Eric J. Korpela committed
28
        -I$(top_srcdir)/lib/mac			\
29 30 31
        -I$(top_srcdir)/sched			\
        -I$(top_srcdir)/tools			\
        -I$(top_srcdir)/vda			\
Eric J. Korpela's avatar
 
Eric J. Korpela committed
32 33
	$(PTHREAD_CFLAGS)

34
AM_CFLAGS = -Wall -Wextra -Wshadow -Wredundant-decls -Wdisabled-optimization -Wpointer-arith -Wstrict-aliasing -Wcast-align 
Eric J. Korpela's avatar
 
Eric J. Korpela committed
35

36
AM_CXXFLAGS = $(AM_CFLAGS)
Eric J. Korpela's avatar
 
Eric J. Korpela committed
37 38 39

AM_LDFLAGS =

40

David Anderson's avatar
David Anderson committed
41 42
# dependencies to make sure libs gets compiled before
# programs linking to them:
43

Eric J. Korpela's avatar
 
Eric J. Korpela committed
44
LIBSCHED = $(top_builddir)/sched/libsched.la
David Anderson's avatar
David Anderson committed
45
$(LIBSCHED):
Eric J. Korpela's avatar
 
Eric J. Korpela committed
46 47 48 49 50
	cd $(top_builddir)/sched; ${MAKE} libsched.la
LIBSCHED_FCGI = $(top_builddir)/sched/libsched_fcgi.la
$(LIBSCHED_FCGI):
	cd $(top_builddir)/sched; ${MAKE} libsched_fcgi.la
LIBBOINC = $(top_builddir)/lib/libboinc.la
David Anderson's avatar
David Anderson committed
51
$(LIBBOINC):
Eric J. Korpela's avatar
 
Eric J. Korpela committed
52
	cd $(top_builddir)/lib; ${MAKE} libboinc.la
53 54
LIBBOINC_CRYPT = $(top_builddir)/lib/libboinc_crypt.la
$(LIBBOINC_CRYPT):
55
	cd $(top_builddir)/lib; ${MAKE} libboinc_crypt.la
Eric J. Korpela's avatar
 
Eric J. Korpela committed
56 57 58 59
LIBBOINC_FCGI = $(top_builddir)/lib/libboinc_fcgi.la
$(LIBBOINC_FCGI):
	cd $(top_builddir)/lib; ${MAKE} libboinc_fcgi.la
LIBAPI = $(top_builddir)/api/libboinc_api.la
60
$(LIBAPI):
Eric J. Korpela's avatar
 
Eric J. Korpela committed
61 62
	cd $(top_builddir)/api; ${MAKE} libboinc_api.la

63
SERVERLIBS = $(LIBSCHED) $(LIBBOINC_CRYPT) $(LIBBOINC) $(MYSQL_LIBS) $(PTHREAD_LIBS) $(RSA_LIBS) $(SSL_LIBS)
64
SERVERLIBS_MIN = $(LIBSCHED) $(LIBBOINC_CRYPT) $(LIBBOINC) $(PTHREAD_LIBS) $(RSA_LIBS) $(SSL_LIBS)
65
SERVERLIBS_FCGI = $(LIBSCHED_FCGI) $(LIBBOINC_CRYPT) $(LIBBOINC_FCGI) -lfcgi $(MYSQL_LIBS) $(PTHREAD_LIBS) $(RSA_LIBS) $(SSL_LIBS)
Eric J. Korpela's avatar
 
Eric J. Korpela committed
66
APPLIBS = $(LIBAPI) $(LIBBOINC)
67
FUHLIBS = $(LIBBOINC_CRYPT) $(LIBBOINC) $(RSA_LIBS) $(SSL_LIBS)
Eric J. Korpela's avatar
 
Eric J. Korpela committed
68