Synopsis - Cross-Reference

File: /Synopsis/Parsers/IDL/Makefile.in
 1#
 2# Copyright (C) 2006 Stefan Seefeld
 3# All rights reserved.
 4# Licensed to the public under the terms of the GNU LGPL (>= 2),
 5# see the file COPYING for details.
 6#
 7
 8SHELL	:= /bin/sh
 9
10srcdir	:= @srcdir@
11builddir:= @builddir@
12
13PYTHON	:= @PYTHON@
14SYNOPSIS:= $(PYTHON) synopsis.py
15
16CXX	:= @CXX@
17LDSHARED:= @LDSHARED@
18LEX 	:= @LEX@
19YACC 	:= @YACC@ -d
20MAKEDEP	:= $(CXX) -M
21IDLMODULE_VERSION := 0x2630# => CORBA 2.6, front-end 3.0
22CPPFLAGS:= @CPPFLAGS@ -I . 
23CPPFLAGS+= -I $(srcdir)
24CPPFLAGS+= -I @PYTHON_INCLUDE@ -DPYTHON_INCLUDE="<Python.h>"
25CPPFLAGS+= -DIDLMODULE_VERSION="\"$(IDLMODULE_VERSION)\""
26CXXFLAGS:= @CXXFLAGS@
27LDFLAGS	:= @LDFLAGS@
28LIBS	:= @LIBS@
29LIBRARY_EXT := @LIBEXT@
30
31YYSRC	:= idl.yy
32LLSRC	:= idl.ll
33
34SRC 	:= y.tab.cc lex.yy.cc idlerr.cc idlutil.cc idltype.cc \
35           idlrepoId.cc idlscope.cc idlexpr.cc idlast.cc idlvalidate.cc \
36           idldump.cc idlconfig.cc idlfixed.cc idlpython.cc #idlc.cc
37OBJ	:= $(patsubst %.cc, %.o, $(SRC))
38DEP	:= $(patsubst %.cc, %.d, $(SRC))
39
40TARGET	:= _omniidl$(LIBRARY_EXT)
41
42vpath %.yy  $(srcdir)
43vpath %.ll  $(srcdir)
44vpath %.hh  $(srcdir)
45vpath %.cc  $(srcdir)
46
47all: $(TARGET)
48
49$(TARGET): $(OBJ)
50	$(LDSHARED) $(LDFLAGS) -o $@ $^ $(LIBS)
51
52clean:
53	rm -f $(CTOOL_SO)
54	rm -rf $(OBJ) $(DEP)
55
56y.tab.h y.tab.cc: $(YYSRC)
57	@rm -f $@
58	$(YACC) $<
59	mv -f y.tab.c y.tab.cc
60
61lex.yy.cc: $(LLSRC) y.tab.h
62	$(LEX) -o$@ $<
63	echo '#ifdef __VMS' >> $@
64	echo '// Some versions of DEC C++ for OpenVMS set the module name used by the' >> $@
65	echo '// librarian based on the last #line encountered.' >> $@
66	echo '#line' `cat $@ | wc -l` '"lex_yy.cc"' >> $@
67	echo '#endif' >> $@
68
69%.o:	%.cc
70	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
71
72%.d:	%.cc
73	$(SHELL) -ec '$(MAKEDEP) $(CPPFLAGS) $< | sed "s/$*\\.o[ :]*/$*\\.d $*\\.o : /g" > $@'
74
75Makefile: $(srcdir)/Makefile.in
76	./config.status --file Makefile
77
78ifeq (,$(filter $(MAKECMDGOALS), clean))
79-include $(DEP)
80endif