~ubuntu-branches/ubuntu/trusty/ophcrack/trusty

« back to all changes in this revision

Viewing changes to src/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Adam Cécile (Le_Vert)
  • Date: 2008-08-11 15:58:58 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080811155858-calnhe07mxkkqb1s
Tags: 3.0.1-1
* Upload to experimental because of lenny freeze.
* New upstream release.
* Update debian/watch.
* Switch from libgtk2.0-dev to libqt4-dev b-dep.
* Drop dpatch, not needed anymore.
* Add new package ophcrack-cli that provides command-line binary.
* Rewrite whole debian/rules to build qt4 and cli flavours.
* Update README.Debian with new tables names/urls.
* Do not depend anymore on bkhive/samdump2, both are embedded.
* Update debian/copyright.
* Add imagemagick b-dep to create icons.
* Write a new manpage for the new command line switches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2008, Bertrand Mesot <http://www.objectif-securite.ch>
 
2
#               2008, Cedric Tissieres <http://www.objectif-securite.ch>
 
3
 
4
# This program is free software; you can redistribute it and/or modify
 
5
# it under the terms of the GNU General Public License as published by
 
6
# the Free Software Foundation; either version 2 of the License, or
 
7
# or (at your option) any later version.
 
8
 
9
# This program is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
# GNU General Public License for more details.
 
13
 
14
# You should have received a copy of the GNU General Public License
 
15
# along with this program; if not, write to the Free Software
 
16
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-13, USA
 
17
 
 
18
#$Rev: 113 $
 
19
#$Date: 2008-04-28 14:52:01 +0200 (Mon, 28 Apr 2008) $
 
20
 
 
21
# General variables
 
22
SHELL = /bin/sh
 
23
 
 
24
 
 
25
top_srcdir = ..
 
26
srcdir = .
 
27
prefix = /usr/local
 
28
exec_prefix = ${prefix}
 
29
bindir = $(exec_prefix)/bin
 
30
infodir = $(prefix)/info
 
31
libdir = $(prefix)/lib/gnudl
 
32
mandir = $(prefix)/man/man1
 
33
 
 
34
CC = gcc
 
35
LIBS = -lm -lpthread  -lssl -lcrypto 
 
36
INSTALL = /usr/bin/install -c
 
37
 
 
38
CFLAGS  =  -Wall -pedantic -I.. -I/usr/include/openssl -O2 -DNDEBUG -std=gnu9x -I./samdump2
 
39
LDFLAGS = -lm -lpthread  -lssl -lcrypto 
 
40
 
 
41
 
 
42
all: libophcrack.a
 
43
#all: ophcrack
 
44
 
 
45
libophcrack.a: list.o misc.o scheduler.o table.o hash.o ophstat.o ophel.o \
 
46
        original.o ophtask.o message.o lmtable.o lmgerman.o ntextended.o arg.o \
 
47
        ophcrack.o ntdict.o fsm.o
 
48
        ar r $@ $^
 
49
 
 
50
ophcrack: main.o libophcrack.a samdump2/libsamdump2.a
 
51
        $(CC) $^ -o $@ $(LDFLAGS)
 
52
 
 
53
# Install target
 
54
install: all
 
55
        @echo "Creating directories..."
 
56
        $(INSTALL) -d $(bindir)
 
57
#       $(INSTALL) -d $(mandir)
 
58
        @echo "Copying binary..."
 
59
        $(INSTALL) ophcrack $(bindir)
 
60
#       @echo "Installing man page..."
 
61
#       $(INSTALL) ophcrack.1 $(DESTDIR)$(MANDIR)
 
62
        @echo ""
 
63
 
 
64
# Uninstall target
 
65
uninstall: 
 
66
        @echo "Deleting binary and manpages..."
 
67
        rm -f $(bindir)/ophcrack
 
68
#       rm -f $(mandir)/ophcrack.1
 
69
        @echo ""
 
70
 
 
71
clean:
 
72
        rm -f *.o *~
 
73
        rm -f ophcrack
 
74
        rm -f libophcrack.a
 
75
 
 
76
distclean: clean
 
77
 
 
78
list.o: list.h list.c
 
79
misc.o: misc.h misc.c
 
80
scheduler.o: list.h scheduler.h scheduler.c
 
81
table.o: misc.h table.h table.c
 
82
hash.o: misc.h table.h hash.h hash.c
 
83
ophstat.o: ophstat.h ophstat.c
 
84
ophel.o: ophstat.h ophel.h ophel.c
 
85
ophtask.o: ophtask.h ophtask.c
 
86
original.o: original.h original.c
 
87
message.o: list.h ophtask.h message.h message.c
 
88
lmtable.o: table.h hash.h ophel.h lmtable.h lmtable.c
 
89
lmgerman.o: table.h hash.h ophel.h lmgerman.h lmgerman.c
 
90
ntextended.o: table.h hash.h ophel.h ntextended.h ntextended.c
 
91
ntdict.o: table.h hash.h ophel.h ntdict.h ntdict.c
 
92
arg.o: arg.h arg.c
 
93
fsm.o: fsm.h fsm.c
 
94
ophcrack.o: misc.h list.h scheduler.h table.h hash.h lmtable.h ophel.h \
 
95
        ophtask.h message.h original.h ophcrack.h ophcrack.c
 
96
main.o: list.h table.h hash.h message.h ophcrack.h gui/main.cpp
 
97
        cp gui/main.cpp main.c
 
98
        $(CC) $(CFLAGS) -c -o $@ main.c
 
99
        rm main.c
 
100