changeset 1:e2130f1ef720

ueda/utils Linuxified
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 20 Jul 2015 00:30:24 +0000
parents cd92449fdb51
children c91e7a30fab3
files .hgignore ueda/utils/Makefile ueda/utils/cutelements.c ueda/utils/instfileelem.c
diffstat 4 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Mon Jul 20 00:30:24 2015 +0000
@@ -0,0 +1,6 @@
+syntax: regexp
+
+\.[oa]$
+
+^ueda/utils/cutelements$
+^ueda/utils/instfileelem$
--- a/ueda/utils/Makefile	Mon Jul 20 00:24:37 2015 +0000
+++ b/ueda/utils/Makefile	Mon Jul 20 00:30:24 2015 +0000
@@ -1,6 +1,7 @@
-CFLAGS=	-O
+CC=	gcc
+CFLAGS=	-O2
 PROGS=	cutelements instfileelem
-BINDIR=	/usr/local
+BINDIR=	/usr/local/bin
 
 all:	${PROGS}
 
--- a/ueda/utils/cutelements.c	Mon Jul 20 00:24:37 2015 +0000
+++ b/ueda/utils/cutelements.c	Mon Jul 20 00:30:24 2015 +0000
@@ -8,6 +8,8 @@
 
 #include <ctype.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <strings.h>
 
 char *inputname;
--- a/ueda/utils/instfileelem.c	Mon Jul 20 00:24:37 2015 +0000
+++ b/ueda/utils/instfileelem.c	Mon Jul 20 00:30:24 2015 +0000
@@ -7,6 +7,8 @@
 #include <sys/param.h>
 #include <ctype.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <strings.h>
 
 char dirlist_pathname[] = "/usr/local/eda/file-element-dirs";