2002-07-22 Tim Coleman <tim@timcoleman.com>
[mono.git] / mcs / class / library.make
1 MCS = mono $(topdir)/mcs/mcs.exe
2 MCS_FLAGS = --target library --noconfig
3
4 all: $(LIBRARY)
5
6 clean:
7         -rm -rf $(LIBRARY) .response .makefrag
8
9 .response: $(LIB_LIST)
10         cat $^ |egrep '\.cs$$' >$@
11
12 .makefrag: $(LIB_LIST)
13         echo -n "library-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
19
20 $(LIBRARY): .response .makefrag #library-deps
21         MONO_PATH=$(MONO_PATH_PREFIX)$(MONO_PATH) $(MCS) $(MCS_FLAGS) -o $(LIBRARY) $(LIB_FLAGS) @.response