# HG changeset patch
# User Space Falcon <falcon@ivan.Harhan.ORG>
# Date 1437353140 0
# Node ID d098f8548b44f1d7428c4f37ba415c9dbb54b8e3
# Parent  c91e7a30fab3dd0346271a21c77c583609473e78
ueda/mclutils Linuxified

diff -r c91e7a30fab3 -r d098f8548b44 .hgignore
--- 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$
diff -r c91e7a30fab3 -r d098f8548b44 ueda/mclutils/Makefile
--- 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}
 
diff -r c91e7a30fab3 -r d098f8548b44 ueda/mclutils/getfps.c
--- 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;
diff -r c91e7a30fab3 -r d098f8548b44 ueda/mclutils/mkbom.c
--- 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;
diff -r c91e7a30fab3 -r d098f8548b44 ueda/mclutils/shortbom.c
--- 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;