blob: ebebb69dd7d987fe2abc0030fd3649dc991b4376 [file] [log] [blame]
Chris Lattner35db8d62001-12-14 16:13:40 +00001# 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 Lattner35db8d62001-12-14 16:13:40 +000013# 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 Lattner9e379362002-01-22 15:31:59 +000018PROGRAMS_TO_TEST = $(Source:.c=)
Chris Lattner35db8d62001-12-14 16:13:40 +000019
Chris Lattner9e379362002-01-22 15:31:59 +000020include $(LEVEL)/test/Programs/Makefile.programs
Chris Lattner35db8d62001-12-14 16:13:40 +000021
Chris Lattner9e379362002-01-22 15:31:59 +000022# Since this is just a single source program, the linked version of the program
23# is the same as the unlinked version...
24#
25Output/%.linked.bc: Output/%.bc
26 $(CP) $< $@