1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
CC = gcc
CFLAGS = -g -O2
LIBS = libUseful-bundled/libUseful.a -lssl -lcrypto -lz
INSTALL=/usr/bin/install -c
prefix=/usr/local
bindir=$(prefix)${exec_prefix}/bin
FLAGS=$(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_LIBZ=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBSSL=1 -DUSE_LIBUSEFUL_BUNDLED=1
OBJ=common.o encodings.o command-line-args.o ssh.o http.o fingerprint.o include-exclude.o files.o filesigning.o xattr.o check-hash.o find.o otp.o memcached.o frontend.o cgi.o xdialog.o output.o
EXE=hashrat
all: hashrat
hashrat: $(OBJ) main.c libUseful-bundled/libUseful.a
$(CC) $(FLAGS) -o$(EXE) $(OBJ) main.c $(LIBS)
libUseful-bundled/libUseful.a:
@cd libUseful-bundled; $(MAKE)
common.o: common.h common.c
$(CC) $(FLAGS) -c common.c
encodings.o: encodings.h encodings.c
$(CC) $(FLAGS) -c encodings.c
fingerprint.o: fingerprint.h fingerprint.c
$(CC) $(FLAGS) -c fingerprint.c
include-exclude.o: include-exclude.h include-exclude.c
$(CC) $(FLAGS) -c include-exclude.c
files.o: files.h files.c
$(CC) $(FLAGS) -c files.c
filesigning.o: filesigning.h filesigning.c
$(CC) $(FLAGS) -c filesigning.c
find.o: find.h find.c
$(CC) $(FLAGS) -c find.c
check-hash.o: check-hash.h check-hash.c
$(CC) $(FLAGS) -c check-hash.c
xattr.o: xattr.h xattr.c
$(CC) $(FLAGS) -c xattr.c
ssh.o: ssh.h ssh.c
$(CC) $(FLAGS) -c ssh.c
http.o: http.h http.c
$(CC) $(FLAGS) -c http.c
otp.o: otp.h otp.c
$(CC) $(FLAGS) -c otp.c
frontend.o: frontend.h frontend.c
$(CC) $(FLAGS) -c frontend.c
output.o: output.h output.c
$(CC) $(FLAGS) -c output.c
cgi.o: cgi.h cgi.c
$(CC) $(FLAGS) -c cgi.c
xdialog.o: xdialog.h xdialog.c
$(CC) $(FLAGS) -c xdialog.c
memcached.o: memcached.h memcached.c
$(CC) $(FLAGS) -c memcached.c
command-line-args.o: command-line-args.h command-line-args.c
$(CC) $(FLAGS) -c command-line-args.c
check: hashrat
@./check.sh
clean:
-rm -f *.o */*.o */*.a */*.so *.orig *.out $(EXE)
-rm -f config.log config.status */config.log */config.status
-rm -fr autom4te.cache */autom4te.cache
distclean:
-rm -f *.o */*.o */*.a */*.so $(EXE)
-rm -f config.log config.status */config.log */config.status Makefile */Makefile
-rm -fr autom4te.cache */autom4te.cache
install: hashrat
-mkdir -p $(DESTDIR)$(prefix)/bin
cp -f $(EXE) $(DESTDIR)$(prefix)/bin
-mkdir -p $(DESTDIR)$(prefix)/share/man/man1
cp -f hashrat.1 $(DESTDIR)$(prefix)/share/man/man1
test:
echo "no tests"
|