You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hashcat/tools/rules_optimize/Makefile

23 lines
589 B

##
## 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