Chris Lattner | 35db8d6 | 2001-12-14 16:13:40 +0000 | [diff] [blame] | 1 | # test/Programs/SingleSource/Makefile |
| 2 | # |
| 3 | # This makefile builds all of the C programs in this directory in three |
| 4 | # different configurations: |
| 5 | # 1. By the native GCC compiler |
| 6 | # 2. To LLVM bytecode |
| 7 | # 3. To Sparc machine code, from bytecode, using LLC |
| 8 | # |
| 9 | # After building all of these different forms, the programs are run and the |
| 10 | # output is diff'd |
| 11 | # |
| 12 | # FIXME: There should be a way to specify libraries to link programs against |
Chris Lattner | 35db8d6 | 2001-12-14 16:13:40 +0000 | [diff] [blame] | 13 | # FIXME: There should be a way to specify the command line for a program |
| 14 | # |
| 15 | # IDEA: This could be specified in the start of the .c file, in a comment block |
| 16 | # |
| 17 | |
Chris Lattner | 9e37936 | 2002-01-22 15:31:59 +0000 | [diff] [blame^] | 18 | PROGRAMS_TO_TEST = $(Source:.c=) |
Chris Lattner | 35db8d6 | 2001-12-14 16:13:40 +0000 | [diff] [blame] | 19 | |
Chris Lattner | 9e37936 | 2002-01-22 15:31:59 +0000 | [diff] [blame^] | 20 | include $(LEVEL)/test/Programs/Makefile.programs |
Chris Lattner | 35db8d6 | 2001-12-14 16:13:40 +0000 | [diff] [blame] | 21 | |
Chris Lattner | 9e37936 | 2002-01-22 15:31:59 +0000 | [diff] [blame^] | 22 | # Since this is just a single source program, the linked version of the program |
| 23 | # is the same as the unlinked version... |
| 24 | # |
| 25 | Output/%.linked.bc: Output/%.bc |
| 26 | $(CP) $< $@ |