mirror of https://github.com/BOINC/boinc.git
49 lines
753 B
Makefile
49 lines
753 B
Makefile
DEPTH = ..
|
|
topsrcdir = @top_srcdir@
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
VERSION = 1
|
|
|
|
CFLAGS = -g -Wall -I../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
|