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-11-12 20:59:00 +00:00
|
|
|
APIOBJS = ../api/boinc_api.o ../api/graphics_api.o
|
|
|
|
X11APIOBJS = ../api/boinc_api.x11.o ../api/graphics_api.x11.o ../api/x_opengl.x11.o
|
|
|
|
|
2003-03-17 19:24:38 +00:00
|
|
|
LIBS = ../api/mfile.o ../lib/parse.o ../lib/filesys.o ../lib/shmem.o ../lib/util.o
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
CLIBS = @LIBS@
|
|
|
|
|
2002-11-12 20:59:00 +00:00
|
|
|
XLIBS = -lGL -lGLU -lpthread
|
|
|
|
|
2002-09-04 18:42:14 +00:00
|
|
|
APPS = upper_case concat 1sec
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
.C.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
2002-11-13 18:13:46 +00:00
|
|
|
#upper_case.x11.o:
|
|
|
|
# $(CC) -DBOINC_APP_GRAPHICS -c -o $*.o upper_case.C
|
|
|
|
#../api/x_opengl.x11.o:
|
|
|
|
# $(CC) -DBOINC_APP_GRAPHICS -c -o $*.o ../api/x_opengl.C
|
|
|
|
#../api/boinc_api.x11.o:
|
|
|
|
# $(CC) -DBOINC_APP_GRAPHICS -c -o $*.o ../api/boinc_api.C
|
|
|
|
#../api/graphics_api.x11.o:
|
|
|
|
# $(CC) -DBOINC_APP_GRAPHICS -c -o $*.o ../api/graphics_api.C
|
2002-11-12 20:59:00 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
all: $(APPS)
|
|
|
|
|
2002-11-12 20:59:00 +00:00
|
|
|
upper_case_x11: upper_case.x11.o $(X11APIOBJS)
|
|
|
|
$(CC) upper_case.x11.o $(X11APIOBJS) $(LIBS) $(CLIBS) $(XLIBS) -lm -o upper_case_x11
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
upper_case: upper_case.o
|
2002-11-12 20:59:00 +00:00
|
|
|
$(CC) upper_case.o $(APIOBJS) $(LIBS) $(CLIBS) -lm -o upper_case
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
concat: concat.o
|
2002-11-12 20:59:00 +00:00
|
|
|
$(CC) concat.o $(APIOBJS) $(LIBS) $(CLIBS) -lm -o concat
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
1sec: 1sec.o
|
2002-11-12 20:59:00 +00:00
|
|
|
$(CC) 1sec.o $(APIOBJS) $(LIBS) $(CLIBS) -lm -o 1sec
|
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)/apps
|
|
|
|
cp upper_case $(INSTALL_DIR)/apps/upper_case
|
|
|
|
cp concat $(INSTALL_DIR)/apps/concat
|
|
|
|
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-11-12 20:59:00 +00:00
|
|
|
rm -f *.o $(APPS) $(X11APIOBJS) 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
|
|
|
|
|