2002-04-30 22:22:54 +00:00
|
|
|
all: cgi
|
|
|
|
|
|
|
|
CFLAGS = -g -Wall -I ../db -I ../lib -I ../tools
|
|
|
|
CC = g++ $(CFLAGS)
|
|
|
|
|
|
|
|
CLIBS = @LIBS@
|
|
|
|
|
2002-05-24 04:29:10 +00:00
|
|
|
PROGS = cgi feeder
|
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
CGI_OBJS = \
|
|
|
|
handle_request.o \
|
|
|
|
main.o \
|
|
|
|
parse.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-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-04-30 22:22:54 +00:00
|
|
|
MYSQL_DIR = /usr/local/mysql/lib
|
|
|
|
MYSQL_LIBS = \
|
|
|
|
-L$(MYSQL_DIR) \
|
|
|
|
-lmysqlclient -lz \
|
|
|
|
-lm $(NETLIBS)
|
|
|
|
|
|
|
|
.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-04-30 22:22:54 +00:00
|
|
|
dependencies: *.C
|
|
|
|
$(CC) -M *.C > dependencies
|
|
|
|
|
|
|
|
include dependencies
|
|
|
|
|
|
|
|
clean:
|
2002-05-24 04:29:10 +00:00
|
|
|
rm -f $(PROGS) *.o core dependencies config.cache
|