about summary refs log tree commit diff
path: root/src/Makefile
blob: 6b4c792bbbade53df57a595f5d507fa068981384 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
all: nix nix-instantiate

SYSTEM = $(shell ./config.guess)

nix: nix.cc
	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