mirror of https://github.com/BOINC/boinc.git
56 lines
874 B
Makefile
56 lines
874 B
Makefile
DEPTH = ..
|
|
topsrcdir = @top_srcdir@
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
INSTALL_DIR = /usr/local/boinc
|
|
|
|
VERSION = 1
|
|
|
|
CFLAGS = -g -Wall @DEFS@ \
|
|
-I@top_srcdir@/lib/ \
|
|
-I@top_srcdir@/client/
|
|
|
|
CC = @CC@ $(CFLAGS)
|
|
|
|
PROGS = api_app api_test
|
|
|
|
all: $(PROGS)
|
|
|
|
APP_OBJS = \
|
|
api_app.o \
|
|
api.o \
|
|
../lib/parse.o
|
|
|
|
TEST_OBJS = \
|
|
api.o \
|
|
api_test.o \
|
|
../lib/parse.o
|
|
|
|
.C.o:
|
|
$(CC) -c -o $*.o $<
|
|
.c.o:
|
|
$(CC) -c -o $*.o $<
|
|
|
|
api_app: $(APP_OBJS)
|
|
$(CC) $(APP_OBJS) -o api_app
|
|
|
|
api_test: $(TEST_OBJS)
|
|
$(CC) $(TEST_OBJS) -o api_test
|
|
|
|
install: all
|
|
-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;
|
|
|
|
clean:
|
|
rm -f *.o $(PROGS) core dependencies
|
|
|
|
dependencies: @srcdir@/*.C
|
|
$(CC) -M @srcdir@/*.C > dependencies
|
|
|
|
include dependencies
|