diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | src/misc/ext/module.make | 0 | ||||
-rw-r--r-- | src/misc/util/module.make | 2 | ||||
-rw-r--r-- | src/misc/util/utilFile.c | 2 |
4 files changed, 5 insertions, 5 deletions
@@ -7,8 +7,9 @@ CP := cp PROG := abc MODULES := \ + $(wildcard src/ext) src/misc/ext \ src/base/abc src/base/abci src/base/cmd \ - src/base/io src/base/main src/base/ver src/base/dummy src/base/dummy2 \ + src/base/io src/base/main src/base/ver \ src/bdd/cudd src/bdd/dsd src/bdd/epd src/bdd/mtr \ src/bdd/parse src/bdd/reo src/bdd/cas \ src/map/fpga src/map/mapper src/map/mio src/map/super \ @@ -28,8 +29,7 @@ MODULES := \ src/aig/int src/aig/dch src/aig/ssw src/aig/cgt \ src/aig/cec src/aig/gia src/aig/bbl src/aig/live \ src/aig/llb \ - src/python \ - src/ext/_sky src/ext/_rti src/ext/_nal src/ext/_bat src/ext/_lxp + src/python all: $(PROG) default: $(PROG) diff --git a/src/misc/ext/module.make b/src/misc/ext/module.make new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/src/misc/ext/module.make diff --git a/src/misc/util/module.make b/src/misc/util/module.make index 11d59f51..54fb8291 100644 --- a/src/misc/util/module.make +++ b/src/misc/util/module.make @@ -1 +1 @@ -SRC += utilFile.c +SRC += src/misc/util/utilFile.c diff --git a/src/misc/util/utilFile.c b/src/misc/util/utilFile.c index abdcd635..09af7b0a 100644 --- a/src/misc/util/utilFile.c +++ b/src/misc/util/utilFile.c @@ -102,7 +102,7 @@ int tmpFile(const char* prefix, const char* suffix, char** out_name) close(fd); unlink(*out_name); strcat(*out_name, suffix); - fd = open(fd); + fd = open(*out_name, O_CREAT | O_EXCL | O_RDWR, S_IREAD | S_IWRITE); if (fd == -1){ free(*out_name); *out_name = NULL; |