Skip to content

Commit

Permalink
Added version information
Browse files Browse the repository at this point in the history
  • Loading branch information
= authored and = committed Aug 24, 2013
1 parent 97662c3 commit 2ccb5cf
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
*.o
*.geany
ixkeylog
5 changes: 4 additions & 1 deletion Makefile.FreeBSD
Expand Up @@ -30,8 +30,11 @@ CC = gcc
RM = rm -rf
MV = mv

# Add version to binary
GIT_VERSION = $(shell sh -c 'git describe --abbrev=4 --always')

# Flags
CFLAGS = -W -Wall -O2 -I /usr/local/include
CFLAGS = -W -Wall -O2 -I /usr/local/include -D__GIT_VERSION=\"$(GIT_VERSION)\"
LDFLAGS = -L /usr/local/lib -lX11

# Default (dir) locations
Expand Down
5 changes: 4 additions & 1 deletion Makefile.Linux
Expand Up @@ -30,8 +30,11 @@ CC = gcc
RM = rm -rf
MV = mv

# Add version to binary
GIT_VERSION = $(shell sh -c 'git describe --abbrev=4 --always')

# Flags
CFLAGS = -W -Wall -O2
CFLAGS = -W -Wall -O2 -D__GIT_VERSION=\"$(GIT_VERSION)\"
LDFLAGS = -lX11

# Default (dir) locations
Expand Down
5 changes: 4 additions & 1 deletion Makefile.NetBSD
Expand Up @@ -30,8 +30,11 @@ CC = gcc
RM = rm -rf
MV = mv

# Add version to binary
GIT_VERSION = $(shell sh -c 'git describe --abbrev=4 --always')

# Flags
CFLAGS = -W -Wall -O2 -I /usr/pkg/include -I /usr/X11R7/include
CFLAGS = -W -Wall -O2 -I /usr/pkg/include -I /usr/X11R7/include -D__GIT_VERSION=\"$(GIT_VERSION)\"
LDFLAGS = -L /usr/X11R7/lib -R /usr/X11R7/lib -lX11

# Default (dir) locations
Expand Down
5 changes: 4 additions & 1 deletion Makefile.OpenBSD
Expand Up @@ -30,8 +30,11 @@ CC = gcc
RM = rm -rf
MV = mv

# Add version to binary
GIT_VERSION = $(shell sh -c 'git describe --abbrev=4 --always')

# Flags
CFLAGS = -W -Wall -O2 -I /usr/X11R6/include
CFLAGS = -W -Wall -O2 -I /usr/X11R6/include -D__GIT_VERSION=\"$(GIT_VERSION)\"
LDFLAGS = -L /usr/X11R6/lib -R /usr/X11R6/lib -lX11

# Default (dir) locations
Expand Down
Binary file removed ixkeylog
Binary file not shown.
Binary file removed src/args.o
Binary file not shown.
Binary file removed src/display.o
Binary file not shown.
2 changes: 1 addition & 1 deletion src/ixkeylog.h
Expand Up @@ -32,7 +32,7 @@

#include "display.h"

#define D_IXKEYLOG_VERSION "0.1"
#define D_IXKEYLOG_VERSION __GIT_VERSION
#define D_IXKEYLOG_AUTHOR "Victor Dorneanu"


Expand Down
Binary file removed src/main.o
Binary file not shown.
Binary file removed src/signal.o
Binary file not shown.

0 comments on commit 2ccb5cf

Please sign in to comment.