1# 2# This file is part of Gspoof-3 (a console/gtk+ tcp/ip packet forger) 3# 4# $Name: Makefile.in $ 5# $Version: 3.2 $ 6# $Date: 2003/12/22 16:30:03 $ 7# $Author: Embyte <embyte@madlab.it> $ 8# $Copyright: Copyright (C) 2002-2003 by embyte $ 9# $License: This software is under GPL version 2 of license $ 10# 11 12 13CC = gcc 14CFLAGS = -Wall -O2 15LDFLAGS = -L/usr/lib 16CPPFLAGS = -I/usr/include 17GTK_LIBS = -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -latk-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 18GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 19 20prefix = /usr/local 21exec_prefix = ${prefix} 22bindir = ${exec_prefix}/bin 23mandir = ${prefix}/man 24datadir = ${prefix}/share 25srcdir = . 26shtool = @SHTOOL@ 27 28OBJS = main.o console.o common.o interface.o callbacks.o gfuncts.o support.o gtk.o 29 30 31all: gspoof 32 33 34gspoof: $(OBJS) 35 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o gspoof -lnet $(GTK_LIBS) 36 @echo 37 @echo "Done! Type 'make install' (This operation could require root privileges)" 38 @echo 39 40 41.c.o: 42 $(CC) $(CFLAGS) $(CPPFLAGS) $(GTK_CFLAGS) -c $< -o $@ 43 44 45install: 46 chown root:wheel gspoof 47 cp -f gspoof ${exec_prefix}/bin 48 rm -fR ${prefix}/share/gspoof 49 mkdir ${prefix}/share/gspoof 50 cp -f *.c ${prefix}/share/gspoof 51 cp -f *.h ${prefix}/share/gspoof 52 cp -fR pixmap ${prefix}/share/gspoof 53 cp -f Makefile ${prefix}/share/gspoof 54 cp -f README ${prefix}/share/gspoof 55 cp -f CHANGELOG ${prefix}/share/gspoof 56 cp -f TODO ${prefix}/share/gspoof 57 cp -f LICENSE ${prefix}/share/gspoof 58 cp -f VERSION ${prefix}/share/gspoof 59 @echo 60 @echo "Try 'gspoof -h' from root, enjoy!" 61 @echo 62 @echo "(If something goes wrong send an email to embyte@madlab.it)" 63 @echo 64 65 66clean: 67 rm -fR *~ *.bak *.o *.cache *.log gspoof config.status stamp-h* 68 @echo 69 @echo "Trash file cleaned" 70 @echo "You may want to try 'make distclean' to uninstall Gspoof from system" 71 @echo 72 73 74distclean: 75 rm -f config.h Makefile 76 rm -f ${exec_prefix}/bin/gspoof 77 rm -fR ${prefix}/share/gspoof 78 @echo 79 @echo "You box is clean" 80 @echo 81 82 83version: 84 @echo 85 @cat VERSION 86 @echo 87 88world: gspoof install 89 90 91help: 92 @echo 93 @echo "Accepted commands for Makefile:" 94 @echo "make Compile Gspoof" 95 @echo "make install Install Gspoof to ${exec_prefix}/bin and ${prefix}/share" 96 @echo "make world Compile and install" 97 @echo "make clean Clean trash files from source directory (this)" 98 @echo "make distclean Uninstall Gspoof from system" 99 @echo "make version Show Gspoof version" 100 @echo "make help Show this help" 101 @echo 102