2002-05-25 07:30:55 +00:00
|
|
|
DEPTH = ..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2002-07-18 21:29:50 +00:00
|
|
|
INSTALL_DIR = /usr/local/boinc
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
VERSION = 1
|
|
|
|
|
2002-07-11 01:09:53 +00:00
|
|
|
CFLAGS = -g -Wall @DEFS@ \
|
2002-07-22 23:37:56 +00:00
|
|
|
-I@top_srcdir@/lib/ \
|
|
|
|
-I@top_srcdir@/client/
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
CC = @CC@ $(CFLAGS)
|
|
|
|
|
2002-07-03 20:48:01 +00:00
|
|
|
PROGS = api_app api_test
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
2002-07-03 20:48:01 +00:00
|
|
|
APP_OBJS = \
|
|
|
|
api_app.o \
|
|
|
|
api.o \
|
|
|
|
../lib/parse.o
|
|
|
|
|
|
|
|
TEST_OBJS = \
|
2002-06-10 22:59:15 +00:00
|
|
|
api.o \
|
2002-07-03 20:48:01 +00:00
|
|
|
api_test.o \
|
2002-06-10 22:59:15 +00:00
|
|
|
../lib/parse.o
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
.C.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
|
2002-07-03 20:48:01 +00:00
|
|
|
api_app: $(APP_OBJS)
|
|
|
|
$(CC) $(APP_OBJS) -o api_app
|
|
|
|
|
|
|
|
api_test: $(TEST_OBJS)
|
|
|
|
$(CC) $(TEST_OBJS) -o api_test
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-06-21 18:31:32 +00:00
|
|
|
install: all
|
2002-07-18 21:29:50 +00:00
|
|
|
-mkdir -p $(INSTALL_DIR)/api
|
|
|
|
cp api_test $(INSTALL_DIR)/api/api_test
|
|
|
|
cp api_app $(INSTALL_DIR)/api/api_app
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
$(RM) -r $(INSTALL_DIR)/api;
|
2002-06-21 18:31:32 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
clean:
|
|
|
|
rm -f *.o $(PROGS) core dependencies
|
|
|
|
|
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
|