[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 e00b2f8d809e97a7bf338a1317024f8e1c56d557..131f9a98955316a548ebc688a4e6a910e481cb05 100644 (file)
@@ -1,3 +1,4 @@
 fio
 *.o
 .depend
+cscope.out
index 0acb1aa35b0384a48221299db10f4f45b3deb457..16c8413643a69300228eb518189a3809be397bf6 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 01da9085d738f20e6652b625b9c0c2b1111b316e..1eeb1cccc46b6c9b3371afd3f7404e0b17bc93ad 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>