2 MCS = mono $(topdir)/mcs/mcs.exe
3 MCS_FLAGS = --target library --noconfig
4 INSTALL = /usr/bin/install
9 ! \( $(SOURCES_INCLUDE:%=! -path '%' ) \) -a \
10 \( $(SOURCES_EXCLUDE:%=! -path '%' ) \) -a \
14 all: .makefrag $(LIBRARY)
17 -rm -rf $(LIBRARY) .response .makefrag library-deps.stamp
20 ifdef USE_SOURCE_RULES
24 @echo -n "SOURCES=" >$@
25 @$(SOURCES_CMD) | tee .response | sed -e 's/$$/ \\/' >>$@
29 .response: $(LIB_LIST)
30 cat $^ |egrep '\.cs$$' >$@
32 .makefrag: $(LIB_LIST) $(topdir)/class/library.make
33 echo -n "library-deps.stamp: " >$@.new
34 cat $< |egrep '\.cs$$' | sed -e 's,\.cs,.cs \\,' >>$@.new
35 cat $@.new |sed -e '$$s, \\$$,,' >$@
36 echo -e "\ttouch library-deps.stamp" >>$@
43 ifdef USE_SOURCE_RULES
44 $(LIBRARY): $(SOURCES) $(topdir)/class/library.make
46 $(LIBRARY): .response library-deps.stamp
48 MONO_PATH=$(MONO_PATH_PREFIX)$(MONO_PATH) $(MCS) $(MCS_FLAGS) -o $(LIBRARY) $(LIB_FLAGS) @.response
51 mkdir -p $(prefix)/lib/
52 $(INSTALL) -m 644 $(LIBRARY) $(prefix)/lib/