File: Makefile

package info (click to toggle)
ccstools 1.7.2-20100401-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 984 kB
  • ctags: 1,080
  • sloc: ansic: 20,286; sh: 890; makefile: 80
file content (35 lines) | stat: -rw-r--r-- 1,135 bytes parent folder | download
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
ALL_FILES = ccs_bind_test ccs_filesystem_test ccs_capability_test ccs_file_test ccs_rewrite_test ccs_argv0_test ccs_env_test ccs_network_test ccs_signal_test newns ccs_accept_test ccs_bprm_test ccs_cond_test ccs_policy_io_test ccs_new_file_test ccs_new_capability_test ccs_new_network_test ccs_execute_handler_test ccs_new_test ccs_policy_memory_test

all: $(ALL_FILES)
	chmod 755 testall.sh

CC=gcc

CFLAGS=-Wall -O2 ${shell $(CC) -Wno-pointer-sign -S -o /dev/null -x c - < /dev/null > /dev/null 2>&1 && echo "-Wno-pointer-sign"}

#
# Tools for kernel testing.
#

ccs_capability_test: ccs_capability_test.c include.h
	$(CC) $(CFLAGS) -o ccs_capability_test ccs_capability_test.c -lutil
	chmod 700 ccs_capability_test

ccs_new_capability_test: ccs_new_capability_test.c include.h
	$(CC) $(CFLAGS) -o ccs_new_capability_test ccs_new_capability_test.c -lutil
	chmod 700 ccs_new_capability_test

ccs_new_test: ccs_new_test.c include.h
	$(CC) $(CFLAGS) -o ccs_new_test ccs_new_test.c -lutil
	chmod 700 ccs_new_test

.c:	include.h
	$(CC) $(CFLAGS) -o $@ $<
	chmod 700 $@

#
# Delete all tools in this package.
#

clean:
	rm -f $(ALL_FILES)