diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index 4fd29305978a..6b4c792bbbad 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,2 +1,13 @@ +all: nix nix-instantiate + +SYSTEM = $(shell ./config.guess) + nix: nix.cc - g++ -g -Wall -o nix nix.cc -ldb_cxx-4 + g++ -g -Wall -o nix nix.cc -ldb_cxx-4 -DSYSTEM=\"$(SYSTEM)\" + +nix-instantiate: nix-instantiate.in + sed "s/@SYSTEM@/$(SYSTEM)/" < $^ > $@ + chmod +x $@ + +clean: + rm -f *.o nix nix-instantiate |