2002-06-07 22:59:24 +00:00
|
|
|
DEPTH = ..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
all: cgi
|
|
|
|
|
2002-06-07 23:27:25 +00:00
|
|
|
CFLAGS = -g -Wall -include /usr/local/include/fcgi_stdio.h -d_USING_FCGI_ @DEFS@ -I@top_srcdir@/db -I@top_srcdir@/lib -I@top_srcdir@/tools
|
2002-06-07 22:59:24 +00:00
|
|
|
CC = g++ $(CFLAGS)
|
|
|
|
|
|
|
|
CLIBS = @LIBS@ -lfcgi -lfcgi++
|
|
|
|
|
|
|
|
PROGS = cgi feeder show_shmem
|
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
|
|
|
CGI_OBJS = \
|
|
|
|
handle_request.o \
|
|
|
|
main.o \
|
|
|
|
sched_shmem.o \
|
|
|
|
server_types.o \
|
|
|
|
../db/db_mysql.o \
|
|
|
|
../db/mysql_util.o \
|
|
|
|
../lib/shmem.o \
|
|
|
|
parse.o \
|
|
|
|
../tools/process_result_template.o
|
|
|
|
|
|
|
|
FEEDER_OBJS = \
|
|
|
|
feeder.o \
|
|
|
|
sched_shmem.o \
|
|
|
|
../db/db_mysql.o \
|
|
|
|
../db/mysql_util.o \
|
|
|
|
../lib/shmem.o
|
|
|
|
|
|
|
|
SHOW_SHMEM_OBJS = \
|
|
|
|
show_shmem.o \
|
|
|
|
sched_shmem.o \
|
|
|
|
../db/db_mysql.o \
|
|
|
|
../db/mysql_util.o \
|
|
|
|
../lib/shmem.o
|
|
|
|
|
|
|
|
MYSQL_DIR = /usr/local/mysql/lib
|
|
|
|
MYSQL_LIBS = \
|
|
|
|
-L$(MYSQL_DIR) -L/sw/lib/mysql -L/usr/local/lib/mysql \
|
|
|
|
-lmysqlclient -L/usr/local/lib -lz \
|
|
|
|
-lm $(NETLIBS)
|
|
|
|
|
|
|
|
.C.o:
|
2002-06-08 00:05:48 +00:00
|
|
|
rm -f ../lib/parse.o
|
2002-06-07 22:59:24 +00:00
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
|
|
|
|
cgi: $(CGI_OBJS)
|
|
|
|
$(CC) $(CGI_OBJS) $(MYSQL_LIBS) $(CLIBS) -o cgi
|
2002-06-07 23:27:25 +00:00
|
|
|
rm -f ../lib/parse.o
|
2002-06-07 22:59:24 +00:00
|
|
|
|
|
|
|
feeder: $(FEEDER_OBJS)
|
|
|
|
$(CC) $(FEEDER_OBJS) $(MYSQL_LIBS) $(CLIBS) -o feeder
|
|
|
|
|
|
|
|
show_shmem: $(SHOW_SHMEM_OBJS)
|
|
|
|
$(CC) $(SHOW_SHMEM_OBJS) $(MYSQL_LIBS) $(CLIBS) -o show_shmem
|
|
|
|
|
|
|
|
dependencies: @srcdir@/*.C
|
|
|
|
$(CC) -M @srcdir@/*.C > dependencies
|
|
|
|
|
|
|
|
include dependencies
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(PROGS) *.o core dependencies config.cache
|