<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.hlt.inesc-id.pt/~david/wiki/pt/index.php?action=history&amp;feed=atom&amp;title=Makefile_examples%3A_CDK3</id>
	<title>Makefile examples: CDK3 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.hlt.inesc-id.pt/~david/wiki/pt/index.php?action=history&amp;feed=atom&amp;title=Makefile_examples%3A_CDK3"/>
	<link rel="alternate" type="text/html" href="https://www.hlt.inesc-id.pt/~david/wiki/pt/index.php?title=Makefile_examples:_CDK3&amp;action=history"/>
	<updated>2026-05-04T12:39:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://www.hlt.inesc-id.pt/~david/wiki/pt/index.php?title=Makefile_examples:_CDK3&amp;diff=2210&amp;oldid=prev</id>
		<title>Root: New page: &lt;text&gt; LIBNAME=cdk #CXXFLAGS=-O6 -Isemantics -I. -g -Wall -ansi -pedantic CXXFLAGS=-Isemantics -I. -ggdb -Wall -ansi -pedantic  ROOT = ${HOME}/compiladores/root  # * * *   DO NOT CHANGE AN...</title>
		<link rel="alternate" type="text/html" href="https://www.hlt.inesc-id.pt/~david/wiki/pt/index.php?title=Makefile_examples:_CDK3&amp;diff=2210&amp;oldid=prev"/>
		<updated>2008-03-09T14:28:58Z</updated>

		<summary type="html">&lt;p&gt;New page: &amp;lt;text&amp;gt; LIBNAME=cdk #CXXFLAGS=-O6 -Isemantics -I. -g -Wall -ansi -pedantic CXXFLAGS=-Isemantics -I. -ggdb -Wall -ansi -pedantic  ROOT = ${HOME}/compiladores/root  # * * *   DO NOT CHANGE AN...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;text&amp;gt;&lt;br /&gt;
LIBNAME=cdk&lt;br /&gt;
#CXXFLAGS=-O6 -Isemantics -I. -g -Wall -ansi -pedantic&lt;br /&gt;
CXXFLAGS=-Isemantics -I. -ggdb -Wall -ansi -pedantic&lt;br /&gt;
&lt;br /&gt;
ROOT = ${HOME}/compiladores/root&lt;br /&gt;
&lt;br /&gt;
# * * *   DO NOT CHANGE ANYTHING AFTER THIS LINE   * * *&lt;br /&gt;
#&lt;br /&gt;
INST_INC_DIR = $(ROOT)/usr/include/$(LIBNAME)&lt;br /&gt;
INST_LIB_DIR = $(ROOT)/usr/lib&lt;br /&gt;
INST_DOC_DIR = $(ROOT)/usr/share/doc/packages/$(LIBNAME)&lt;br /&gt;
&lt;br /&gt;
SRC_CPP = \&lt;br /&gt;
        $(wildcard generators/*.cpp) \&lt;br /&gt;
        $(wildcard nodes/*.cpp) $(wildcard nodes/expressions/*.cpp) \&lt;br /&gt;
        $(wildcard semantics/*.cpp) \&lt;br /&gt;
        Compiler.cpp CompilerFactory.cpp Symbol.cpp SymbolTable.cpp main.cpp&lt;br /&gt;
OFILES = $(SRC_CPP:%.cpp=%.o)&lt;br /&gt;
&lt;br /&gt;
YACC=byacc&lt;br /&gt;
LEX=flex&lt;br /&gt;
&lt;br /&gt;
%.o:: %.cpp&lt;br /&gt;
        $(CXX) $(CXXFLAGS) -c $&amp;lt; -o $@&lt;br /&gt;
&lt;br /&gt;
all: link lib$(LIBNAME).a docs&lt;br /&gt;
&lt;br /&gt;
# dirty hack&lt;br /&gt;
link:&lt;br /&gt;
        -ln -s . cdk&lt;br /&gt;
&lt;br /&gt;
docs: doc/.docsdone&lt;br /&gt;
&lt;br /&gt;
doc/.docsdone: $(LIBNAME).doxyfile&lt;br /&gt;
        $(RM) cdk&lt;br /&gt;
        doxygen $&amp;lt;&lt;br /&gt;
        touch $@&lt;br /&gt;
        -ln -s . cdk&lt;br /&gt;
&lt;br /&gt;
$(LIBNAME).doxyfile: $(SRC_CPP)&lt;br /&gt;
&lt;br /&gt;
lib$(LIBNAME).a: $(OFILES)&lt;br /&gt;
        ar crl $@ $^&lt;br /&gt;
&lt;br /&gt;
clean:&lt;br /&gt;
        rm -f lib$(LIBNAME).a $(OFILES) a.out core y.tab.[ch] lex.yy.c&lt;br /&gt;
&lt;br /&gt;
install: all&lt;br /&gt;
        mkdir -p $(INST_LIB_DIR) $(INST_DOC_DIR)&lt;br /&gt;
        mkdir -p $(INST_INC_DIR) $(INST_INC_DIR)/nodes&lt;br /&gt;
        mkdir -p $(INST_INC_DIR) $(INST_INC_DIR)/nodes/expressions&lt;br /&gt;
        mkdir -p $(INST_INC_DIR) $(INST_INC_DIR)/semantics&lt;br /&gt;
        #mkdir -p $(INST_INC_DIR)/semantics&lt;br /&gt;
        mkdir -p $(INST_INC_DIR)/generators&lt;br /&gt;
        cp -a Compiler.h CompilerFactory.h Symbol.h SymbolTable.h $(INST_INC_DIR)&lt;br /&gt;
        cp -a generators/*.h $(INST_INC_DIR)/generators&lt;br /&gt;
        cp -a nodes/*.h $(INST_INC_DIR)/nodes&lt;br /&gt;
        cp -a nodes/expressions/*.h $(INST_INC_DIR)/nodes/expressions&lt;br /&gt;
        cp -a semantics/Evaluator.h $(INST_INC_DIR)/semantics&lt;br /&gt;
        cp -a lib$(LIBNAME).a $(INST_LIB_DIR)&lt;br /&gt;
        #DOC cp -a doc/. $(INST_DOC_DIR)/&lt;br /&gt;
&lt;br /&gt;
depend:&lt;br /&gt;
        $(CXX) $(CXXFLAGS) -MM $(SRC_CPP) &amp;gt; .makedeps&lt;br /&gt;
&lt;br /&gt;
-include .makedeps&lt;br /&gt;
&amp;lt;/text&amp;gt;&lt;/div&gt;</summary>
		<author><name>Root</name></author>
	</entry>
</feed>