Skip to content
Snippets Groups Projects
Commit fd7ac09f authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Refactoring (step 2).

parent ac68840e
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ AC_CONFIG_FILES([Makefile
src/nix-store/Makefile
src/nix-hash/Makefile
src/libexpr/Makefile
src/nix-instantiate/Makefile
scripts/Makefile
corepkgs/Makefile
corepkgs/fetchurl/Makefile
......
SUBDIRS = bin2c boost libutil libstore libmain nix-store nix-hash \
libexpr #nix-instantiate
libexpr nix-instantiate
bin_PROGRAMS = nix-instantiate
noinst_LIBRARIES = libexpr.a
nix_instantiate_SOURCES = nixexpr.cc parser.cc eval.cc primops.cc main.cc
nix_instantiate_LDADD = ../libmain/libmain.a ../libstore/libstore.a ../libutil/libutil.a \
../boost/format/libformat.a -L../../externals/inst/lib -ldb_cxx \
-lsglr -lATB -lconversion -lasfix2 -lmept -lATerm
libexpr_a_SOURCES = nixexpr.cc parser.cc eval.cc primops.cc
AM_CXXFLAGS = \
-I.. -I../../externals/inst/include -I../libutil -I../libstore -I../libmain
-I.. -I../../externals/inst/include -I../libutil -I../libstore
# Parse table generation.
......
......@@ -12,7 +12,6 @@ extern "C" {
#include "aterm.hh"
#include "parser.hh"
#include "shared.hh"
#include "parse-table.h"
......@@ -100,8 +99,7 @@ Expr parseExprFromFile(Path path)
ATprotect(&lang);
lang = ATmake("Nix");
if (!SGopenLanguageFromTerm(
(char *) programId.c_str(), lang, parseTable))
if (!SGopenLanguageFromTerm("nix-parse", lang, parseTable))
throw Error(format("cannot open language"));
SG_STARTSYMBOL_ON();
......
bin_PROGRAMS = nix-instantiate
nix_instantiate_SOURCES = main.cc
nix_instantiate_LDADD = ../libmain/libmain.a ../libexpr/libexpr.a \
../libstore/libstore.a ../libutil/libutil.a \
../boost/format/libformat.a -L../../externals/inst/lib -ldb_cxx \
-lsglr -lATB -lconversion -lasfix2 -lmept -lATerm
AM_CXXFLAGS = \
-I.. -I../../externals/inst/include -I../libutil -I../libstore \
-I../libexpr -I../libmain
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment