2 CFLAGS_LOCAL
=$(CFLAGS
) $(DEFINES
)
4 INC
=-I
/usr
/include/loudmouth-1.0
-I
/usr
/include/glib-2.0
-I
/usr
/lib
/glib-2.0
/include
5 LIB
=/usr
/lib
/libconfig.a
-L
/usr
/lib
-lloudmouth-1
-lglib-2.0
6 SOURCE
=main.c config.c mysql.c connection.c services.c
7 OBJECTS
=main.o config.o mysql.o connection.o services.o
9 # Use these settings if you have mysql_config. Note that if you have
10 # multiple installations of MySQL, you can compile with the client
11 # library from any of them by changing the value of MYSQL_CONFIG to
12 # the full pathname of the version of mysql_config that you want to
14 MYSQL_CONFIG
= mysql_config
15 INCLUDES
= ${shell $(MYSQL_CONFIG
) --cflags}
16 LIBS
= ${shell $(MYSQL_CONFIG
) --libs
}
17 EMBLIBS
= ${shell $(MYSQL_CONFIG
) --libmysqld-libs
}
19 # Use these settings if you don't have mysql_config; modify as necessary
20 #INCLUDES = -I/usr/local/mysql/include/mysql
21 #LIBS = -L/usr/local/mysql/lib/mysql -lmysqlclient #-lm -lsocket -lnsl
22 #EMBLIBS = -L/usr/local/mysql/lib/mysql -lmysqld #-lm -lsocket -lnsl
26 gcc
$(CFLAGS_LOCAL
) $(OBJECTS
) $(LIB
) $(LIBS
) -o ..
/jimci-alpha
29 gcc
-c
$(CFLAGS_LOCAL
) $(INC
) $(INCLUDES
) $(SOURCE
)