Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 702516
Collapse All | Expand All

(-)a/tests/Makefile (-14 / +4 lines)
Lines 7-18 include ../Make.Rules Link Here
7
7
8
DEPS=../libcap/libcap.a ../libcap/libpsx.a
8
DEPS=../libcap/libcap.a ../libcap/libpsx.a
9
9
10
all: psx_test psx_test_wrap libcap_psx_test
10
all: psx_test
11
11
12
$(DEPS):
12
$(DEPS):
13
	make -C ../libcap all
13
	make -C ../libcap all
14
14
15
test: run_psx_test run_libcap_psx_test
15
test: run_psx_test
16
16
17
sudotest: test
17
sudotest: test
18
18
Lines 20-40 CFLAGS += -fPIC Link Here
20
20
21
install: all
21
install: all
22
22
23
run_psx_test: psx_test psx_test_wrap
23
run_psx_test: psx_test
24
	./psx_test
24
	./psx_test
25
	./psx_test_wrap
26
25
27
psx_test: psx_test.c $(DEPS)
26
psx_test: psx_test.c $(DEPS)
28
	$(CC) $(CFLAGS) $(CPPFLAGS) -DNOWRAP $< -o $@ $(LIBPSXLIB)
27
	$(CC) $(CFLAGS) $(CPPFLAGS) -DNOWRAP $< -o $@ $(LIBPSXLIB)
29
28
30
psx_test_wrap: psx_test.c $(DEPS)
31
	$(CC) $(CFLAGS) $(CPPFLAGS) $< -o $@ $(LIBPSXLIB) -Wl,-wrap,pthread_create
32
33
run_libcap_psx_test: libcap_psx_test
34
	./libcap_psx_test
35
36
libcap_psx_test: libcap_psx_test.c $(DEPS)
37
	$(CC) $(CFLAGS) $(CPPFLAGS) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create --static
38
39
clean:
29
clean:
40
	rm -f psx_test psx_test_wrap libcap_psx_test
30
	rm -f psx_test

Return to bug 702516