2002-07-22 Tim Coleman <tim@timcoleman.com>
[mono.git] / mcs / class / executable.make
1 MCS = mcs
2 MCS_FLAGS = --target exe
3
4 all: $(PROGRAM)
5
6 clean-exe:
7         -rm -rf $(PROGRAM) .response-exe .makefrag-exe
8
9 .response-exe: $(PROGRAM_LIST)
10         cat $^ |egrep '\.cs$$' >$@
11
12 .makefrag-exe: $(PROGRAM_LIST)
13         echo -n "program-deps: " >$@.new
14         cat $^ |egrep '\.cs$$' | sed -e 's,\.cs,.cs \\,' >>$@.new
15         cat $@.new |sed -e '$$s, \\$$,,' >$@
16         rm -rf $@.new
17
18 -include .makefrag-exe
19
20 $(PROGRAM): .response-exe .makefrag-exe #program-deps
21         $(MCS) $(MCS_FLAGS) -o $(PROGRAM) $(PROGRAM_FLAGS) @.response-exe