aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2007-05-16 11:57:36 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2007-05-16 11:57:36 -0400
commit9bee556de7489579c3bdd0d2d4d457ffa72168eb (patch)
tree717d15ada509379ff052fd50455e0089891f76b2
parentd4f334c3e019d4fa1f50e33c51146dd469ee4178 (diff)
Nicer structure
-rw-r--r--Makefile8
-rw-r--r--include/timestamp.h (renamed from timestamp.h)0
-rw-r--r--src/ftcat.c (renamed from ftcat.c)6
3 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index f00bcd4..d87dd9b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,15 @@
1CFLAGS=-Wall -g 1CFLAGS=-Wall -g -Iinclude/
2CPPFLAGS=-Wall -g 2CPPFLAGS=-Wall -g
3 3
4vpath %.h include/
5vpath %.c src/
6
4.PHONY: clean 7.PHONY: clean
5 8
6all: ftcat 9all: ftcat
7 10
8
9ftcat: ftcat.o 11ftcat: ftcat.o
10 cc -o ftcat ftcat.o 12 ${CC} -o ftcat ftcat.o
11 13
12clean: 14clean:
13 rm -rf *.o ftcat 15 rm -rf *.o ftcat
diff --git a/timestamp.h b/include/timestamp.h
index ae50ae1..ae50ae1 100644
--- a/timestamp.h
+++ b/include/timestamp.h
diff --git a/ftcat.c b/src/ftcat.c
index f706ef5..bb7b3e6 100644
--- a/ftcat.c
+++ b/src/ftcat.c
@@ -41,7 +41,11 @@ static void cat2stdout(int fd)
41 41
42static void usage(void) 42static void usage(void)
43{ 43{
44 fprintf(stderr, "Usage: ftcat <ft device> TS1 TS2 ....\n\n"); 44 fprintf(stderr,
45 "Usage: ftcat <ft device> TS1 TS2 ....\n\n"
46 "where TS1, TS2, ... is one of "
47 " sched, tick, plug_tick, plug_sched"
48 "\n");
45 exit(1); 49 exit(1);
46} 50}
47 51