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-09-26 23:12:13 +00:00
|
|
|
CLIBS = @LIBS@
|
|
|
|
|
2002-07-03 20:48:01 +00:00
|
|
|
PROGS = api_app api_test
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-08-05 00:29:34 +00:00
|
|
|
#all: $(PROGS)
|
2002-09-26 23:12:13 +00:00
|
|
|
all: mfile.o boinc_api.o graphics_api.o
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-07-03 20:48:01 +00:00
|
|
|
APP_OBJS = \
|
|
|
|
api_app.o \
|
2002-08-05 00:29:34 +00:00
|
|
|
mfile.o \
|
|
|
|
boinc_api.o \
|
2002-07-03 20:48:01 +00:00
|
|
|
../lib/parse.o
|
|
|
|
|
|
|
|
TEST_OBJS = \
|
2002-08-05 00:29:34 +00:00
|
|
|
boinc_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)
|
2002-09-26 23:12:13 +00:00
|
|
|
$(CC) $(APP_OBJS) $(CLIBS) -o api_app
|
2002-07-03 20:48:01 +00:00
|
|
|
|
|
|
|
api_test: $(TEST_OBJS)
|
2002-09-26 23:12:13 +00:00
|
|
|
$(CC) $(TEST_OBJS) $(CLIBS) -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
|