[PATCH] Juggle some includes, add cscope make target
authorJens Axboe <axboe@suse.de>
Tue, 6 Jun 2006 18:58:57 +0000 (20:58 +0200)
committerJens Axboe <axboe@suse.de>
Tue, 6 Jun 2006 18:58:57 +0000 (20:58 +0200)
.gitignore
Makefile
fio.c

index e00b2f8..131f9a9 100644 (file)
@@ -1,3 +1,4 @@
 fio
 *.o
 .depend
+cscope.out
index 0acb1aa..16c8413 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,11 +9,14 @@ fio: fio.o fio-io.o fio-ini.o fio-stat.o fio-log.o fio-time.o md5.o crc32.o
        $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -laio -lm -lrt
 
 clean:
-       -rm -f *.o .depend $(PROGS)
+       -rm -f *.o .depend cscope.out $(PROGS)
 
 depend:
        @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
 
+cscope:
+       @cscope -b
+
 INSTALL = install
 prefix = /usr/local
 bindir = $(prefix)/bin
diff --git a/fio.c b/fio.c
index 01da908..1eeb1cc 100644 (file)
--- a/fio.c
+++ b/fio.c
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  */
-#include <stdio.h>
-#include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <string.h>
-#include <errno.h>
 #include <signal.h>
 #include <time.h>
 #include <assert.h>