changeset 3:d098f8548b44

ueda/mclutils Linuxified
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 20 Jul 2015 00:45:40 +0000
parents c91e7a30fab3
children 7b4f78fcca08
files .hgignore ueda/mclutils/Makefile ueda/mclutils/getfps.c ueda/mclutils/mkbom.c ueda/mclutils/shortbom.c
diffstat 5 files changed, 15 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Mon Jul 20 00:38:43 2015 +0000
+++ b/.hgignore	Mon Jul 20 00:45:40 2015 +0000
@@ -2,5 +2,8 @@
 
 \.[oa]$
 
+^ueda/mclutils/getfps$
+^ueda/mclutils/mkbom$
+^ueda/mclutils/shortbom$
 ^ueda/utils/cutelements$
 ^ueda/utils/instfileelem$
--- a/ueda/mclutils/Makefile	Mon Jul 20 00:38:43 2015 +0000
+++ b/ueda/mclutils/Makefile	Mon Jul 20 00:45:40 2015 +0000
@@ -1,7 +1,8 @@
-CFLAGS=	-O
+CC=	gcc
+CFLAGS=	-O2
 PROGS=	getfps mkbom shortbom
 LIBUEDA=../libueda/libueda.a
-BINDIR=	/usr/local
+BINDIR=	/usr/local/bin
 
 all:	${PROGS}
 
--- a/ueda/mclutils/getfps.c	Mon Jul 20 00:38:43 2015 +0000
+++ b/ueda/mclutils/getfps.c	Mon Jul 20 00:45:40 2015 +0000
@@ -6,11 +6,12 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <strings.h>
+#include <unistd.h>
 #include "../libueda/mcl.h"
 
-extern char *optarg;
-
 extern char *MCLfile;
 extern struct component components[];
 extern int ncomponents;
--- a/ueda/mclutils/mkbom.c	Mon Jul 20 00:38:43 2015 +0000
+++ b/ueda/mclutils/mkbom.c	Mon Jul 20 00:45:40 2015 +0000
@@ -3,12 +3,12 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <strings.h>
+#include <unistd.h>
 #include "../libueda/mcl.h"
 
-extern char *optarg;
-extern char *malloc();
-
 extern char *MCLfile;
 extern struct component components[];
 extern int ncomponents;
--- a/ueda/mclutils/shortbom.c	Mon Jul 20 00:38:43 2015 +0000
+++ b/ueda/mclutils/shortbom.c	Mon Jul 20 00:45:40 2015 +0000
@@ -3,12 +3,12 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <strings.h>
+#include <unistd.h>
 #include "../libueda/mcl.h"
 
-extern char *optarg;
-extern char *malloc();
-
 extern char *MCLfile;
 extern struct component components[];
 extern int ncomponents;