All pastes #135966 Raw Edit

Something

public text v1 · immutable
#135966 ·published 2006-08-17 10:01 UTC
rendered paste body
# Don't forget to add Makefile to configure.in (in project root directory)

# global helper rules (for nasm, includedirs, ...)
include $(top_srcdir)/Makefile.am.extra

# Add any subdirectories, where another Makefile.am is located
# "." is a cheap trick to force building of . first
SUBDIRS =

# name of your binary or binaries
bin_PROGRAMS =                                  \
        ihpp \
        icpp \
        ihppimpl \
        icppimpl

# sources of binary or binaries
ihpp_SOURCES = \
        ihpp.cpp \
        all.l

icpp_SOURCES = \
        icpp.cpp \
        all.l

ihppimpl_SOURCES = \
        ihppimpl.cpp \
        all.l

icppimpl_SOURCES = \
        icppimpl.cpp \
        all.l

# all libraries you need
ihpp_LDADD =

icpp_LDADD =

ihppimpl_LDADD =

icppimpl_LDADD =

# all header files. These files will NOT been installed with "make install"
noinst_HEADERS = ycommon.hpp $(YACCEDHEADERS)

# all extra things you want to be included in the tar-ball of the distribution
# (standard files like *.cpp, *.hpp, README or Makefile.am will be included
# anyway)
EXTRA_DIST = $(LEXEDSOURCES) $(YACCS)

# all includes you need
INCLUDES =  $(all_includes)


YFLAGS = -d
AM_YFLAGS = $(if $(YACCDEBUG), --debug --verbose,)
AM_CPPFLAGS = $(if $(YACCDEBUG), -DDEBUG,)

YACCS = ihpp.ypp icpp.ypp ihppimpl.ypp icppimpl.ypp
YACCEDHEADERS = $(YACCS:.ypp=.h)
YACCEDOUTPUTS = $(YACCS:.ypp=.output)
LEXEDSOURCES = all.c

CLEANFILES += $(YACCEDOUTPUTS)
  
all.o: $(YACCEDHEADERS)

# Yacc2C++ support for automake 1.4
YLWRAP = $(top_srcdir)/ylwrap
YACCCOMPILE = $(YACC) $(YFLAGS) $(AM_YFLAGS)

yacc:
        $(SHELL) $(YLWRAP) ihpp.ypp     y.tab.c ihpp.cpp     y.tab.h ihpp.h     -- $(YACCCOMPILE)
        $(SHELL) $(YLWRAP) icpp.ypp     y.tab.c icpp.cpp     y.tab.h icpp.h     -- $(YACCCOMPILE)
        $(SHELL) $(YLWRAP) ihppimpl.ypp y.tab.c ihppimpl.cpp y.tab.h ihppimpl.h -- $(YACCCOMPILE)
        $(SHELL) $(YLWRAP) icppimpl.ypp y.tab.c icppimpl.cpp y.tab.h icppimpl.h -- $(YACCCOMPILE)

.PHONY: yacc

# if HAVE_CROSSCOMPILER
# ioverride CC = $(CC_FOR_BUILD)
# ioverride CXX = $(CXX_FOR_BUILD)
# endif