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
|
|
|
|
|
|
|
|
CFLAGS = -g -Wall @DEFS@ \
|
|
|
|
-DHOSTTYPE=\"@host@\" \
|
|
|
|
-DVERSION=$(VERSION)
|
|
|
|
|
2002-08-26 23:17:16 +00:00
|
|
|
CC = @CC@ $(CFLAGS) -I @top_srcdir@/api -I@top_srcdir@/lib
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-08-26 23:17:16 +00:00
|
|
|
LIBS = ../api/boinc_api.o ../api/mfile.o ../lib/parse.o ../lib/filesys.o ../lib/util.o
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
CLIBS = @LIBS@
|
|
|
|
|
2002-07-25 00:09:43 +00:00
|
|
|
APPS = upper_case concat uc_slow concat_slow 1sec uc_cpu
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
.C.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
|
|
|
|
all: $(APPS)
|
|
|
|
|
|
|
|
upper_case: upper_case.o
|
|
|
|
$(CC) upper_case.o $(LIBS) -o upper_case
|
|
|
|
|
|
|
|
concat: concat.o
|
|
|
|
$(CC) concat.o $(LIBS) -o concat
|
|
|
|
|
2002-07-01 19:35:19 +00:00
|
|
|
concat_slow: concat_slow.o
|
|
|
|
$(CC) concat_slow.o $(LIBS) -o concat_slow
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
uc_slow: uc_slow.o
|
|
|
|
$(CC) uc_slow.o $(LIBS) -o uc_slow
|
|
|
|
|
2002-07-25 00:09:43 +00:00
|
|
|
uc_cpu: uc_cpu.o
|
|
|
|
$(CC) uc_cpu.o $(LIBS) -o uc_cpu
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
1sec: 1sec.o
|
|
|
|
$(CC) 1sec.o $(LIBS) -o 1sec
|
|
|
|
|
2002-06-21 18:31:32 +00:00
|
|
|
install: all
|
2002-07-18 21:29:50 +00:00
|
|
|
-mkdir -p $(INSTALL_DIR)/apps
|
|
|
|
cp upper_case $(INSTALL_DIR)/apps/upper_case
|
|
|
|
cp concat $(INSTALL_DIR)/apps/concat
|
|
|
|
cp uc_slow $(INSTALL_DIR)/apps/uc_slow
|
|
|
|
cp concat_slow $(INSTALL_DIR)/apps/concat_slow
|
|
|
|
cp 1sec $(INSTALL_DIR)/apps/1sec
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
$(RM) -r $(INSTALL_DIR)/apps
|
2002-06-21 18:31:32 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
clean:
|
2002-05-24 04:29:10 +00:00
|
|
|
rm -f *.o $(APPS) dependencies
|
2002-04-30 22:22:54 +00:00
|
|
|
|
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
|
|
|
|
|