2003-03-24 12:49:40 +00:00
|
|
|
all: nix nix-instantiate
|
|
|
|
|
|
|
|
SYSTEM = $(shell ./config.guess)
|
|
|
|
|
2003-03-24 17:49:56 +00:00
|
|
|
nix: nix.o md5.o
|
2003-04-01 14:00:47 +00:00
|
|
|
g++ -g -o $@ $^ -ldb_cxx-4 -lATerm
|
2003-03-24 17:49:56 +00:00
|
|
|
|
|
|
|
%.o: %.cc
|
|
|
|
g++ -g -Wall -o $@ -c $< -DSYSTEM=\"$(SYSTEM)\"
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
gcc -g -Wall -o $@ -c $< -DSYSTEM=\"$(SYSTEM)\"
|
|
|
|
|
|
|
|
md5.o: md5.c md5.h
|
2003-03-24 12:49:40 +00:00
|
|
|
|
|
|
|
nix-instantiate: nix-instantiate.in
|
|
|
|
sed "s/@SYSTEM@/$(SYSTEM)/" < $^ > $@
|
|
|
|
chmod +x $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o nix nix-instantiate
|