-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto version information inside tcplim, checkinstall target
- Loading branch information
Vitaly _Vi Shukela
committed
Oct 31, 2010
1 parent
10a53aa
commit d2e130a
Showing
4 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
|
@@ -2,3 +2,7 @@ | ||
tcplim | tcplim | ||
.*.swp | .*.swp | ||
~* | ~* | ||
VERSION | |||
/s | |||
/valerr | |||
*.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,4 +1,21 @@ | |||
all: tcplim | all: tcplim | ||
|
|
||
tcplim: *.c | tcplim: *.c VERSION | ||
gcc -O2 -g3 tcplim.c -o tcplim | gcc -O2 -g3 tcplim.c -o tcplim | ||
|
|||
githead=$(wildcard .git/HEAD) | |||
|
|||
ifeq (${githead}, .git/HEAD) | |||
VERSION: .git | |||
( echo -n '#define VERSION "'; git describe --dirty 2> /dev/null | tr -d '\n'; echo '"' ) > VERSION | |||
else | |||
VERSION: | |||
echo '#define VERSION "unknown"' > VERSION | |||
endif | |||
|
|||
clean: | |||
rm -f VERSION tcplim *.o | |||
|
|||
#install target for checkinstall | |||
install: tcplim | |||
install -o root -g staff tcplim /usr/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
User-space TCP bandwidth limiter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters