1
# Copyright (C) 2008, Bertrand Mesot <http://www.objectif-securite.ch>
2
# 2008, Cedric Tissieres <http://www.objectif-securite.ch>
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.
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.
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
19
#$Date: 2008-04-28 14:52:01 +0200 (Mon, 28 Apr 2008) $
28
exec_prefix = ${prefix}
29
bindir = $(exec_prefix)/bin
30
infodir = $(prefix)/info
31
libdir = $(prefix)/lib/gnudl
32
mandir = $(prefix)/man/man1
35
LIBS = -lm -lpthread -lssl -lcrypto
36
INSTALL = /usr/bin/install -c
38
CFLAGS = -Wall -pedantic -I.. -I/usr/include/openssl -O2 -DNDEBUG -std=gnu9x -I./samdump2
39
LDFLAGS = -lm -lpthread -lssl -lcrypto
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
50
ophcrack: main.o libophcrack.a samdump2/libsamdump2.a
51
$(CC) $^ -o $@ $(LDFLAGS)
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)
66
@echo "Deleting binary and manpages..."
67
rm -f $(bindir)/ophcrack
68
# rm -f $(mandir)/ophcrack.1
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
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