diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2007-05-16 11:57:36 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2007-05-16 11:57:36 -0400 |
commit | 9bee556de7489579c3bdd0d2d4d457ffa72168eb (patch) | |
tree | 717d15ada509379ff052fd50455e0089891f76b2 | |
parent | d4f334c3e019d4fa1f50e33c51146dd469ee4178 (diff) |
Nicer structure
-rw-r--r-- | Makefile | 8 | ||||
-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
@@ -1,13 +1,15 @@ | |||
1 | CFLAGS=-Wall -g | 1 | CFLAGS=-Wall -g -Iinclude/ |
2 | CPPFLAGS=-Wall -g | 2 | CPPFLAGS=-Wall -g |
3 | 3 | ||
4 | vpath %.h include/ | ||
5 | vpath %.c src/ | ||
6 | |||
4 | .PHONY: clean | 7 | .PHONY: clean |
5 | 8 | ||
6 | all: ftcat | 9 | all: ftcat |
7 | 10 | ||
8 | |||
9 | ftcat: ftcat.o | 11 | ftcat: ftcat.o |
10 | cc -o ftcat ftcat.o | 12 | ${CC} -o ftcat ftcat.o |
11 | 13 | ||
12 | clean: | 14 | clean: |
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 | |||
@@ -41,7 +41,11 @@ static void cat2stdout(int fd) | |||
41 | 41 | ||
42 | static void usage(void) | 42 | static 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 | ||