X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Client%20Applications%2Frcracki_mt%2FMakefile;h=7f91478393684a82ff2830c1b16de4078b5f2145;hb=259e71f307bf26151556ca275f1f94bded32caa1;hp=a19f0c0bf594463818e1ee041782e2939d6cf0b9;hpb=963077c6f02f39f00ce8f9a92f17d857efc707b5;p=freerainbowtables diff --git a/Client Applications/rcracki_mt/Makefile b/Client Applications/rcracki_mt/Makefile index a19f0c0..7f91478 100644 --- a/Client Applications/rcracki_mt/Makefile +++ b/Client Applications/rcracki_mt/Makefile @@ -3,9 +3,9 @@ # # Copyright Martin Westergaard Jørgensen # Copyright 2009, 2010 Daniël Niggebrugge -# Copyright 2009, 2010 James Nobis +# Copyright 2009, 2010, 2011 James Nobis # -# This file is part of racrcki_mt. +# This file is part of rcracki_mt. # # rcracki_mt is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -23,16 +23,19 @@ SHELL = /bin/sh BIN = $(DESTDIR)/usr/bin CC = g++ -OPTIMIZATION = -O3 -INCLUDES = -I../../Common/rt\ api +# -mtune=native doesn't work on NetBSD 5.1 with gcc 4.1.3 and make (fine with gmake) +OPTIMIZATION = -O3 -mtune=native CFLAGS = -Wall -ansi $(OPTIMIZATION) -c $(DEBUG) -LFLAGS = -Wall -ansi $(OPTIMIZATION) $(DEBUG) +LFLAGS = -Wall -ansi -filt $(OPTIMIZATION) $(DEBUG) LIBS = -lcrypto -lpthread -OBJS = BaseRTReader.o ChainWalkContext.o ChainWalkSet.o CrackEngine.o fast_md5.o HashAlgorithm.o HashRoutine.o HashSet.o lm2ntlm.o md4.o MemoryPool.o Public.o RainbowCrack.o rcrackiThread.o RTI2Reader.o sha1.o -COMMON_API_PATH = ../../Common/rt\ api +OBJS = BaseRTReader.o ChainWalkContext.o ChainWalkSet.o CrackEngine.o fast_md5.o HashAlgorithm.o HashRoutine.o HashSet.o lm2ntlm.o md4.o MemoryPool.o Public.o RainbowCrack.o rcrackiThread.o RTI2Reader.o +#sha1.o +WARNALL = -Wextra -Wunused-macros -Wunsafe-loop-optimizations -Wundef -Woverlength-strings -Wdisabled-optimization -Wformat-extra-args -Wformat-security -Winline OSNAME = $(shell uname -s) -STRIP = $(shell which strip) --strip-debug +# apparently --string-debug works on Linux, OpenBSD, NetBSD, and FreeBSD +# but not on OSX so to the short name -S +STRIP = $(shell which strip) -S #LIBS_Darwin = -lcrypto LIBS_NetBSD = -ldes @@ -40,7 +43,10 @@ LIBS_NetBSD = -ldes LIBS += ${LIBS_$(OSNAME)} -all: rcracki_mt strip +all: rcracki_mt_stripped + +rcracki_mt_stripped: rcracki_mt + $(STRIP) rcracki_mt rcracki_mt: $(OBJS) $(CC) $(LFLAGS) $(OBJS) $(LIBS) -o rcracki_mt @@ -51,18 +57,57 @@ clean: debug: DEBUG += -DDEBUG -g debug: rcracki_mt -debugall: DEBUG += -DDEBUG -g -Wextra -Wunused-macros -Wunsafe-loop-optimizations -Wundef -Woverlength-strings -Wdisabled-optimization -Wformat-extra-args -Wformat-security -Winline +debugall: DEBUG += -DDEBUG -g $(WARNALL) debugall: rcracki_mt +dumpasmall: DEBUG += -S -fverbose-asm +dumpasmall: rcracki_mt + +dumpasmprofileuseall: DEBUG += -S -fverbose-asm +dumpasmprofileuseall: profileuseall + +debugprofileuseall: DEBUG += -fprofile-use +debugprofileuseall: debugall + +m32: DEBUG += -m32 +m32: rcracki_mt + +m32debug: DEBUG += -m32 +m32debug: debug + +m32debugall: DEBUG += -m32 +m32debugall: debugll + +m32dumpasmall: DEBUG += -m32 +m32dumpasmall: dumpasmall + +m32dumpasmprofileuseall: DEBUG += -S -fverbose-asm -m32 +m32dumpasmprofileuseall: profileuseall + +m32profilegenall: DEBUG += -m32 +m32profilegenall: profilegenall + +m32profileuseall: DEBUG += -m32 +m32profileuseall: profileuseall + +profilegenall: DEBUG += -fprofile-generate $(WARNALL) +profilegenall: rcracki_mt + +profileuseall: DEBUG += -fprofile-use $(WARNALL) +profileuseall: rcracki_mt + +gcovall: DEBUG += -DDEBUG -g -fprofile-arcs -ftest-coverage +gcovall: rcracki_mt + +gprofall: DEBUG += -DDEBUG -g -pg +gprofall: rcracki_mt + install: install -d $(BIN) install --group=root --owner=root --mode=755 rcracki_mt $(BIN) rebuild: clean all -strip: - $(STRIP) rcracki_mt - uninstall: rm -f $(BIN)/rcracki_mt @@ -78,13 +123,11 @@ ChainWalkSet.o: Public.h ChainWalkSet.h ChainWalkSet.cpp CrackEngine.o: CrackEngine.h CrackEngine.cpp Public.h HashSet.h ChainWalkContext.h MemoryPool.h ChainWalkSet.h rcrackiThread.h RTI2Reader.h $(CC) $(CFLAGS) CrackEngine.cpp -fast_md5.o: $(COMMON_API_PATH)/fast_md5.h $(COMMON_API_PATH)/fast_md5.cpp \ - $(COMMON_API_PATH)/global.h - $(CC) $(CFLAGS) $(COMMON_API_PATH)/fast_md5.cpp +fast_md5.o: fast_md5.h fast_md5.cpp global.h + $(CC) $(CFLAGS) fast_md5.cpp #HashAlgorithm.o: HashAlgorithm.h HashAlgorithm.cpp Public.h fast_md5.h md4.h sha1.h -HashAlgorithm.o: HashAlgorithm.h HashAlgorithm.cpp Public.h \ - $(COMMON_API_PATH)/fast_md5.h md4.h +HashAlgorithm.o: HashAlgorithm.h HashAlgorithm.cpp Public.h fast_md5.h md4.h $(CC) $(CFLAGS) HashAlgorithm.cpp HashRoutine.o: HashRoutine.h HashRoutine.cpp global.h HashAlgorithm.h @@ -105,7 +148,7 @@ MemoryPool.o: MemoryPool.h MemoryPool.cpp Public.h global.h Public.o: Public.h Public.cpp global.h $(CC) $(CFLAGS) Public.cpp -RainbowCrack.o: RainbowCrack.cpp CrackEngine.h lm2ntlm.h +RainbowCrack.o: RainbowCrack.cpp CrackEngine.h lm2ntlm.h ChainWalkSet.h $(CC) $(CFLAGS) RainbowCrack.cpp rcrackiThread.o: rcrackiThread.h rcrackiThread.cpp ChainWalkContext.h Public.h HashSet.h @@ -114,5 +157,5 @@ rcrackiThread.o: rcrackiThread.h rcrackiThread.cpp ChainWalkContext.h Public.h H RTI2Reader.o: RTI2Reader.h RTI2Reader.cpp BaseRTReader.h $(CC) $(CFLAGS) RTI2Reader.cpp -sha1.o: sha1.h sha1.cpp global.h - $(CC) $(CFLAGS) sha1.cpp +#sha1.o: sha1.h sha1.cpp global.h +# $(CC) $(CFLAGS) sha1.cpp