1
# packETH - ethernet packet generator
2
# By Miha Jemec <jemcek@gmail.com>
3
# Copyright 2003 Miha Jemec, Iskratel
5
# This program is free software; you can redistribute it and/or
6
# modify it under the terms of the GNU General Public License
7
# as published by the Free Software Foundation; either version 2
8
# of the License, or (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
# Makefile for building packETH
23
includedir = /usr/src/include
25
INSTALL = /usr/bin/install -c
26
INSTALL_DATA = ${INSTALL} -m 644
30
CPPFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
32
CFLAGS = -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
33
#LIBS = -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXi -lXext -lX11 -lm -lpthread -lgthread
34
#LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lpthread -lgthread-2.0
35
LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lglib-2.0 -lpthread -lgthread-2.0
40
interface.c interface.h \
41
callbacks.c callbacks.h \
42
function.c function.h \
43
function_send.c function_send.h \
45
loadpacket.c loadpacket.h \
46
savepacket.c savepacket.h \
49
OBJECTS = main.o support.o interface.o callbacks.o function_send.o function.o loadpacket.o savepacket.o
53
COMPILE = $(CC) $(CFLAGS) $(CPPFLAGS)
57
$(PROGRAM): $(OBJECTS)
58
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
64
$(INSTALL) $(PROGRAM) $(DESTDIR)/$(INSTALL_PREFIX)/bin/$(PROGRAM)
65
if [ ! -d $(DESTDIR)/$(INSTALL_PREFIX)/share/pixmaps/$(PROGRAM) ]; then mkdir -p $(DESTDIR)/$(INSTALL_PREFIX)/share/pixmaps/$(PROGRAM); fi
66
$(INSTALL_DATA) pixmaps/* $(DESTDIR)/$(INSTALL_PREFIX)/share/pixmaps/$(PROGRAM)
69
rm -f $(OBJECTS) $(PROGRAM)