~ubuntu-branches/ubuntu/wily/packeth/wily

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): David Paleino
  • Date: 2010-03-04 21:32:00 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100304213200-dnrtvqlt9c5nont4
Tags: 1.6.5-1
* New upstream version
* debian/control:
  - updated my email address
  - DMUA removed
  - bumped Standards-Version to 3.8.4 (no changes needed)
  - bumped debhelper dependency to >= 7.0.50~, to use
    overridden rules
  - removed Build-Dependency on quilt
* debian/rules:
  - use dh7
  - rename /usr/bin/packETH to /usr/bin/packeth
* debian/watch updated
* debian/source/format: use 3.0 (quilt)
* debian/patches/:
  - fix_pixmaps.patch removed, fixed upstream
  - fix_warnings.patch updated, and renamed to 01-fix_warnings.patch
  - fix_Makefile.patch removed, fixed in debian/rules
  - 02-fix_typo.patch added
* debian/examples removed, no more available upstream
* debian/packeth.1 manually rewritten, without using docbook sources
* debian/copyright: point to the non-symlink license

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# packETH - ethernet packet generator
2
 
# By Miha Jemec <jemcek@gmail.com>
3
 
# Copyright 2003 Miha Jemec, Iskratel
4
 
 
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.
9
 
 
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.
14
 
 
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.
18
 
 
19
 
# Makefile for building packETH
20
 
 
21
 
SHELL = /bin/sh
22
 
prefix = /usr
23
 
includedir = /usr/src/include
24
 
 
25
 
INSTALL = /usr/bin/install -c
26
 
INSTALL_DATA = ${INSTALL} -m 644
27
 
INSTALL_PREFIX = /usr
28
 
 
29
 
CC = gcc
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 
31
 
LDFLAGS = 
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
36
 
 
37
 
SOURCES = \
38
 
        main.c \
39
 
        support.c support.h \
40
 
        interface.c interface.h \
41
 
        callbacks.c callbacks.h \
42
 
        function.c function.h \
43
 
        function_send.c function_send.h \
44
 
        function_support.c \
45
 
        loadpacket.c loadpacket.h \
46
 
        savepacket.c savepacket.h \
47
 
        headers.h
48
 
 
49
 
OBJECTS =  main.o support.o interface.o callbacks.o function_send.o function.o loadpacket.o savepacket.o 
50
 
 
51
 
PROGRAM = packETH
52
 
 
53
 
COMPILE = $(CC) $(CFLAGS) $(CPPFLAGS)
54
 
 
55
 
all: $(PROGRAM)
56
 
 
57
 
$(PROGRAM): $(OBJECTS)
58
 
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
59
 
 
60
 
%.o: %.c
61
 
        $(COMPILE) -c $<
62
 
 
63
 
install: $(PROGRAM)
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)
67
 
 
68
 
clean:
69
 
        rm -f $(OBJECTS) $(PROGRAM)
70