1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-25 09:28:20 +00:00
hashcat/tools/rules_optimize/Makefile
2015-12-04 15:47:52 +01:00

23 lines
589 B
Makefile

##
## Author......: Jens Steube <jens.steube@gmail.com>
## License.....: MIT
##
GCC ?= /usr/bin/x86_64-linux-gnu-gcc
MINGW ?= i686-w64-mingw32-gcc
ROOT := ../..
CFLAGS := -O2 -s -std=c99 -pipe -W -Wall -I$(ROOT)/include/ -I../rules_test/
SRC := ./rules_optimize.c
TARGET := $(ROOT)/extra/rules_optimize/rules_optimize
all: ${TARGET}.bin ${TARGET}.exe
${TARGET}.bin: $(SRC)
${GCC} ${CFLAGS} ../rules_test/cpu_rules.c $< -o ${TARGET}.bin
${TARGET}.exe: $(SRC)
${MINGW} ${CFLAGS} ../rules_test/cpu_rules.c $< -o ${TARGET}.exe
clean:
rm -f $(TARGET)*.bin $(TARGET)*.exe