Skip to content

Commit

Permalink
changed icon to 32x32
Browse files Browse the repository at this point in the history
fixed minor warnings
improved Makefile
  • Loading branch information
Rup0rt committed Oct 27, 2013
1 parent 1fbcc0f commit e79004e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 440 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,25 @@ OPTFLAGS = $(shell getconf LFS_CFLAGS) -D_FORTIFY_SOURCE=2 -O2 -fstack-protector
WARNFLAGS = -Wall -Wextra -Wformat -Werror=format-security
DEBUGFLAGS = -g
CFLAGS += $(OPTFLAGS) $(WARNFLAGS) $(DEBUGFLAGS)
LDFLAGS += -lgtk-3 -lpcap -Wl,-z,relro
LDFLAGS += -Wl,-z,relro
GTK_CFLAGS = $(shell pkg-config --cflags gtk+-3.0)
GTK_LIBS = $(shell pkg-config --libs gtk+-3.0)

all: netmate.c layer2.h layer3.h layer4.h
gcc $(CPPFLAGS) $(CFLAGS) $(GTK_CFLAGS) -c netmate.c -o netmate.o
gcc $(LDFLAGS) netmate.o -o netmate
gcc $(CPPFLAGS) $(GTK_CFLAGS) $(CFLAGS) -c netmate.c -o netmate.o
gcc $(GTK_LIBS) -lpcap $(LDFLAGS) netmate.o -o netmate

install:
install -D -m 755 netmate $(DESTDIR)/$(BINDIR)/netmate
install -D -m 644 netmate.1 $(DESTDIR)/$(MANDIR)/man1/netmate.1
install -D -m 644 res/netmate.desktop $(DESTDIR)/$(APPDIR)/netmate.desktop
install -D -m 644 res/netmate-48x48.xpm $(DESTDIR)/$(ICODIR)/netmate-48x48.xpm
install -D -m 644 res/netmate.xpm $(DESTDIR)/$(ICODIR)/netmate.xpm

uninstall:
rm -f $(DESTDIR)/$(BINDIR)/netmate
rm -f $(DESTDIR)/$(MANDIR)/man1/netmate.1
rm -f $(DESTDIR)/$(APPDIR)/netmate.desktop
rm -f $(DESTDIR)/$(ICODIR)/netmate-48x48.xpm
rm -f $(DESTDIR)/$(ICODIR)/netmate.xpm

clean:
rm -f *.o netmate
2 changes: 1 addition & 1 deletion netmate.1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ For further information visit the netmate homepage at http://f00l.de/netmate/.
.br
* added columns source port, destination port, flags
.br
* columns are resizeable now
* columns are resizable now
.br
* removed external GUI (netmate.ui)
.br
Expand Down
Loading

0 comments on commit e79004e

Please sign in to comment.