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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
|
###############################################################################
# $Id:$
###############################################################################
##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@stdvars@
##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
## do not change this value
subdir=examples/cpp/ASTsupport
srcdir = @abs_top_srcdir@/examples/cpp/ASTsupport
objdir = @abs_this_builddir@/examples/cpp/ASTsupport
this : test
test : test1
all: ASTSupport test
g_FILES = \
$(srcdir)/test.g \
$(eol)
g_cxx_FILES = \
$(objdir)/SupportTest.cpp \
$(eol)
g_hpp_FILES = \
$(objdir)/SupportTest.hpp \
$(objdir)/SupportTestTokenTypes.hpp \
$(eol)
g_txt_FILES = \
$(objdir)/SupportTestTokenTypes.txt \
$(eol)
g_gen_FILES = \
$(g_cxx_FILES) \
$(g_hpp_FILES) \
$(g_txt_FILES) \
$(eol)
g_obj_FILES = \
$(objdir)/SupportTest@OBJEXT@ \
$(eol)
## Source files
ASTSupport_cxx_FILES = \
$(g_cxx_FILES) \
$(srcdir)/Main.cpp \
$(eol)
## Object files
ASTSupport_obj_FILES = \
$(g_obj_FILES) \
$(objdir)/Main@OBJEXT@ \
$(eol)
## Test commands ..
test1_cmd = $(objdir)/ASTSupport
## Tests to be executed
test1 : ASTSupport
@ v="$(verbose)"; \
if test $$v -gt 0 ; then \
@ECHO@ "$(test1_cmd)" ; \
else \
@ECHO@ "exec test1 .."; \
fi
@ $(test1_cmd)
## How to make binaries
ASTSupport : $(ASTSupport_obj_FILES) @ANTLR_LIB@
@ @CXX_LINK_CMD@ $@ $(ASTSupport_obj_FILES)
## How to compile ANTLR grammar files
$(g_gen_FILES) : $(g_FILES) @ANTLR_JAR@
@ANTLR_COMPILE_CMD@ $(g_FILES)
## GNU make - how to make object file
$(objdir)/%@OBJEXT@ : $(srcdir)/%.cpp
@ @CXX_COMPILE_CMD@ $<
## GNU make - how to make object file
$(objdir)/%@OBJEXT@ : $(objdir)/%.cpp
@ @CXX_COMPILE_CMD@ $<
## GNU make - how to make object file
%@OBJEXT@ : $(srcdir)/%.cpp
@ @CXX_COMPILE_CMD@ $<
## GNU make - how to make object file
%@OBJEXT@ : $(objdir)/%.cpp
@ @CXX_COMPILE_CMD@ $<
## Housecleaning
clean:
@RMF@ *.o *.obj *.exe ASTSupport $(g_gen_FILES) test1
distclean: clean
@RMF@ Makefile
# Dependencies
$(objdir)/SupportTest@OBJEXT@ : \
$(objdir)/SupportTest.hpp \
$(objdir)/SupportTestTokenTypes.hpp
$(objdir)/Main@OBJEXT@ : \
$(objdir)/SupportTest.hpp \
$(objdir)/SupportTestTokenTypes.hpp
## If cxx.sh script changed ..
$(ASTSupport_obj_FILES) : @abs_this_builddir@/scripts/cxx.sh
## If link.sh script changed ..
$(ASTSupport_obj_FILES) : @abs_this_builddir@/scripts/link.sh
##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@stddeps@
##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|