File: bug439.mk

package info (click to toggle)
bear 3.1.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,904 kB
  • sloc: cpp: 9,184; sh: 706; ansic: 497; python: 175; makefile: 29
file content (24 lines) | stat: -rw-r--r-- 699 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env make

# REQUIRES: make, shell
# RUN: mkdir -p %T/make
# RUN: %{make} -C %T -f %s clean
# RUN: %{shell} -c "PATH=%T:$PATH %{bear} --verbose --output %t.json -- %{make} -C %T -f %s"
# RUN: assert_compilation %t.json count -eq 2
# RUN: assert_compilation %t.json contains -file %T/bug439.c -directory %T -arguments %{c_compiler} -S -o bug439.s bug439.c
# RUN: assert_compilation %t.json contains -file %T/bug439.s -directory %T -arguments %{c_compiler} -c -o bug439.o bug439.s

bug439: bug439.o
	$(CC) $< -o $@

bug439.s: bug439.c
	$(CC) -S $< -o $@

bug439.o: bug439.s
	$(CC) -c $< -o $@

bug439.c:
	echo "int main() { return 0; }" > $@

clean:
	rm -f bug439 bug439.o bug439.s bug439.c