#
-# Copyright 2001-2007 Adrian Thurston <thurston@cs.queensu.ca>
+# Copyright 2001-2007 Adrian Thurston <thurston@complang.org>
#
# This file is part of Ragel.
# along with Ragel; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-INCS += -I../common -I../aapl
+INCS += -I../common -I../aapl -I../redfsm
DEFS +=
-CFLAGS += -g -Wall
+CXXFLAGS += -g -Wall
LDFLAGS +=
CC_SRCS = \
GEN_SRC = rlscan.cpp rlparse.h rlparse.cpp
RAGEL_LIBS = ../common/common.a \
+ ../redfsm/redfsm.a \
../rlgen-cd/rlgen-cd.a \
../rlgen-java/rlgen-java.a \
../rlgen-ruby/rlgen-ruby.a \
../rlgen-csharp/rlgen-csharp.a \
- ../redfsm/redfsm.a
+ ../rlgen-dot/rlgen-dot.a
LIBS = $(RAGEL_LIBS)
MINGW_LIBS = -lpsapi
%.o: %.cpp
@$(CXX) -M $(DEFS) $(INCS) $< > .$*.d
- $(CXX) -c $(CFLAGS) $(DEFS) $(INCS) -o $@ $<
+ $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCS) -o $@ $<
distclean: clean
rm -f Makefile
rm -f tags .*.d *.o ragel $(EXTRA_CLEAN)
install: all
- install -d $(prefix)/bin
- install -s ragel $(prefix)/bin/ragel
+ install -d $(DESTDIR)$(prefix)/bin
+ install -s ragel $(DESTDIR)$(prefix)/bin/ragel
-include $(DEPS)