2002-05-25 07:30:55 +00:00
|
|
|
DEPTH = ..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
all: cgi
|
|
|
|
|
2002-06-07 22:59:24 +00:00
|
|
|
CFLAGS = -g -Wall @DEFS@ -I@top_srcdir@/db -I@top_srcdir@/lib -I@top_srcdir@/tools
|
2002-04-30 22:22:54 +00:00
|
|
|
CC = g++ $(CFLAGS)
|
|
|
|
|
2002-06-07 22:59:24 +00:00
|
|
|
CLIBS = @LIBS@
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-06-01 20:26:21 +00:00
|
|
|
PROGS = cgi feeder show_shmem
|
2002-05-24 04:29:10 +00:00
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
CGI_OBJS = \
|
|
|
|
handle_request.o \
|
|
|
|
main.o \
|
2002-05-24 04:29:10 +00:00
|
|
|
sched_shmem.o \
|
2002-04-30 22:22:54 +00:00
|
|
|
server_types.o \
|
|
|
|
../db/db_mysql.o \
|
|
|
|
../db/mysql_util.o \
|
2002-05-24 04:29:10 +00:00
|
|
|
../lib/shmem.o \
|
2002-06-03 19:15:19 +00:00
|
|
|
../lib/parse.o \
|
2002-04-30 22:22:54 +00:00
|
|
|
../tools/process_result_template.o
|
|
|
|
|
2002-05-24 04:29:10 +00:00
|
|
|
FEEDER_OBJS = \
|
|
|
|
feeder.o \
|
|
|
|
sched_shmem.o \
|
|
|
|
../db/db_mysql.o \
|
|
|
|
../db/mysql_util.o \
|
|
|
|
../lib/shmem.o
|
|
|
|
|
2002-06-01 20:26:21 +00:00
|
|
|
SHOW_SHMEM_OBJS = \
|
|
|
|
show_shmem.o \
|
|
|
|
sched_shmem.o \
|
|
|
|
../db/db_mysql.o \
|
|
|
|
../db/mysql_util.o \
|
|
|
|
../lib/shmem.o
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
MYSQL_DIR = /usr/local/mysql/lib
|
|
|
|
MYSQL_LIBS = \
|
2002-05-30 08:33:30 +00:00
|
|
|
-L$(MYSQL_DIR) -L/sw/lib/mysql -L/usr/local/lib/mysql \
|
2002-05-25 15:30:00 +00:00
|
|
|
-lmysqlclient -L/usr/local/lib -lz \
|
2002-06-07 21:42:19 +00:00
|
|
|
-lm $(NETLIBS)
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
.C.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
|
|
|
|
cgi: $(CGI_OBJS)
|
|
|
|
$(CC) $(CGI_OBJS) $(MYSQL_LIBS) $(CLIBS) -o cgi
|
|
|
|
|
2002-05-24 04:29:10 +00:00
|
|
|
feeder: $(FEEDER_OBJS)
|
|
|
|
$(CC) $(FEEDER_OBJS) $(MYSQL_LIBS) $(CLIBS) -o feeder
|
|
|
|
|
2002-06-01 20:26:21 +00:00
|
|
|
show_shmem: $(SHOW_SHMEM_OBJS)
|
|
|
|
$(CC) $(SHOW_SHMEM_OBJS) $(MYSQL_LIBS) $(CLIBS) -o show_shmem
|
|
|
|
|
2002-05-25 07:30:55 +00:00
|
|
|
dependencies: @srcdir@/*.C
|
2002-05-25 07:34:27 +00:00
|
|
|
$(CC) -M @srcdir@/*.C > dependencies
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
include dependencies
|
|
|
|
|
|
|
|
clean:
|
2002-05-24 04:29:10 +00:00
|
|
|
rm -f $(PROGS) *.o core dependencies config.cache
|