File: Makefile

package info (click to toggle)
hardening-wrapper 1.29
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 128 kB
  • ctags: 35
  • sloc: sh: 243; makefile: 236; perl: 201; ansic: 17
file content (21 lines) | stat: -rwxr-xr-x 607 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
#!/usr/bin/make -f

BUILD_TREE:=../build-tree

check: $(BUILD_TREE)/cc-test
	$(MAKE) -f Makefile.wrapper $@
	$(MAKE) -f Makefile.includes $@

clean:
	rm -f $(BUILD_TREE)/cc-test
	$(MAKE) -f Makefile.wrapper $@
	$(MAKE) -f Makefile.includes $@

$(BUILD_TREE)/cc-test:
	# Check the stack protector and PIE options directly, just to have
	# a historical record in the build logs.
	$(CC) -Wall -fstack-protector hello.c -o $(BUILD_TREE)/cc-test || true
	$(BUILD_TREE)/cc-test || true
	$(CC) -Wall -fPIE -pie hello.c -o $(BUILD_TREE)/cc-test || true
	$(BUILD_TREE)/cc-test || true
	$(BUILD_TREE)/cc-test || true