forked from hashcat/maskprocessor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (42 loc) · 1.3 KB
/
Makefile
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
##
## Makefile for mp
##
CFLAGS = -W -Wall -std=c99 -O2 -s
#CFLAGS = -W -Wall -std=c99 -g
CC_LINUX32 = gcc
CC_LINUX64 = gcc
CC_WINDOWS32 = /usr/bin/i686-w64-mingw32-gcc
CC_WINDOWS64 = /usr/bin/x86_64-w64-mingw32-gcc
CC_OSX32 = /usr/bin/i686-apple-darwin10-gcc
CC_OSX64 = /usr/bin/i686-apple-darwin10-gcc
CFLAGS_LINUX32 = $(CFLAGS) -m32 -DLINUX
CFLAGS_LINUX64 = $(CFLAGS) -m64 -DLINUX
CFLAGS_WINDOWS32 = $(CFLAGS) -m32 -DWINDOWS
CFLAGS_WINDOWS64 = $(CFLAGS) -m64 -DWINDOWS
CFLAGS_OSX32 = $(CFLAGS) -m32 -DOSX
CFLAGS_OSX64 = $(CFLAGS) -m64 -DOSX
dbf: all
all: linux win mac
linux: linux_64.bin linux_32.bin
win: win_64.exe win_32.exe
mac: mac_64.app mac_32.app
clean:
rm -f -R ./bin
linux_32.bin: ./src/mp.c
mkdir -p ./bin
-$(CC_LINUX32) $(CFLAGS_LINUX32) -o ./bin/cpu_$@ $^
linux_64.bin: ./src/mp.c
mkdir -p ./bin
-$(CC_LINUX64) $(CFLAGS_LINUX64) -o ./bin/cpu_$@ $^
win_32.exe: ./src/mp.c
mkdir -p ./bin
-$(CC_WINDOWS32) $(CFLAGS_WINDOWS32) -o ./bin/cpu_$@ $^
win_64.exe: ./src/mp.c
mkdir -p ./bin
-$(CC_WINDOWS64) $(CFLAGS_WINDOWS64) -o ./bin/cpu_$@ $^
mac_32.app: ./src/mp.c
mkdir -p ./bin
-$(CC_OSX32) $(CFLAGS_OSX32) -o ./bin/cpu_$@ $^
mac_64.app: ./src/mp.c
mkdir -p ./bin
-$(CC_OSX64) $(CFLAGS_OSX64) -o ./bin/cpu_$@ $^