-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile.in
38 lines (28 loc) · 937 Bytes
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
CFLAGS=@CFLAGS@ -Wall -D_GNU_SOURCE
all: drmaa examples
examples: example-large sleepFive
ifeq (@SQLITE3_EXISTS@,1)
drmaa: libdrmaa2.so drmaa2-reset-db
else
drmaa: libdrmaa2.so drmaaa2-reset-db sqlite3.o
endif
testsuite: sleepFive libdrmaa2.so tests/*.c
@CC@ $(CFLAGS) -o $@ tests/*.c -lcunit -Wl,-rpath,. -L. -ldrmaa2
libdrmaa2.so: drmaa2.o drmaa2-specific.o drmaa2-persistence.o drmaa2-list.o drmaa2-dict.o
@CC@ $(CFLAGS) -shared -o $@ $^ @LIBS@
drmaa2-reset-db: drmaa2-reset-db.o libdrmaa2.so
@CC@ $(CFLAGS) -Wl,-rpath,. @LIBS@ -o $@ $^
sleepFive: sleepFive.c
@CC@ -o $@ $^
example-large: examples/large.c libdrmaa2.so
@CC@ $(CFLAGS) -o $@ examples/large.c -Wl,-rpath,. -L. -ldrmaa2
%.o: %.c
@CC@ $(CFLAGS) -fPIC -c $<
tests/%.o: tests/%.c
@CC@ $(CFLAGS) -c $<
sqlite3.o: lib/sqlite3.c lib/sqlite3.h
@CC@ $(CFLAGS) -fPIC -c $<
clean:
rm -f *.o
rm -f *.so
rm -f example-large testsuite sleepFive drmaa2-reset-db