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