1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@stdvars@
##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
## do not change this value
subdir=lib/csharp/antlr.astframe
all :: lib
lib: @astframe_net@
## Get all files in directory.
antlr_cs_FILES = $(shell @FIND@ $(_srcdir) -name \*.cs)
## Next rule is about to compile antlr.astframe.dll. The whole
## rule looks bit complicated.
## - First we remove the target. Later we check then wether the
## target has really been created. Due to experience we don't
## trust our tool's exit code.
## - Our target depends on antlr.runtime.dll and so we need to
## add (+) it via appropriate environment variable CSHARPCFLAGS.
## - Then we check whether target really has been made.
## - Finally we make sure to update ASTFRAME_NET. ASTFRAME_NET
## may point anywhere in the filesystem, especially also in this
## directory. We can't therefore remove ASTFRAME_NET as astframe_
## net and ASTFRAME_NET can be identical. To avoid this we make
## a copy of astframe_net which dies not clash with ASTFRAME_NET
## by adding the process id to the filename. Finally we copy
## and remove temporaries.
@astframe_net@ : $(antlr_cs_FILES) @ANTLR_NET@
@-@RMF@ $@
@ @CSHARP_COMPILE_CMD@ $@ $(antlr_cs_FILES)
@test -f $@ || exit 1
@ @CP@ $@ $@.$$$$ && @RMF@ @ASTFRAME_NET@ ; \
@CP@ $@.$$$$ @ASTFRAME_NET@ ; \
@CP@ @ASTFRAME_NET@ $@ ; \
@RMF@ $@.$$$$
clean ::
@RMF@ *.obj *.o *.a *.lib *.so *.dll *~ @astframe_net@ @ASTFRAME_NET@
distclean :: clean
@RMF@ Makefile
## install our target ..
install :: @ASTFRAME_NET@
@$(MKDIR) -p "$(libdir)"
@@ECHO@ "install C# core files .. "
@for f in @ASTFRAME_NET@ ; do \
@ECHO@ "install $${f}" ; \
if test -f "$${f}" ; then \
$(INSTALL) -m 444 "$${f}" "$(libdir)" ; \
$(INSTALL) -m 444 "$${f}" "$(datadir)/$(versioneddir)" ; \
fi ;\
done
## dependencies
@astframe_net@ : Makefile
@astframe_net@ : @abs_this_builddir@/scripts/csc.sh
## other dependencies to be listed below
@stddeps@
|