forked from GreySyntax/irecovery
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
27 lines (25 loc) · 845 Bytes
/
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
CC = gcc
CFLAGS_OSX = -lusb-1.0 -lobjc -framework CoreFoundation -framework IOKit -lreadline
CFLAGS_LNX = -lusb-1.0 -lreadline -lcurses
CFLAGS_WIN = -lusb-1.0 -lreadline
all:
@echo 'ERROR: no platform defined.'
@echo 'LINUX USERS: make linux'
@echo 'MAC OS X USERS: make macosx'
@echo 'WINDOWS USERS: make win'
macosx:
@echo 'Buildling iRecovery (Mac Os X)'
@$(CC) irecovery.c -o irecovery $(CFLAGS_OSX)
@echo 'Successfully built iRecovery'
linux:
@echo 'Buildling iRecovery (Linux)'
@$(CC) irecovery.c -o irecovery $(CFLAGS_LNX)
@echo 'Successfully built iRecovery'
win:
@echo 'Buildling iRecovery (Windows)'
@$(CC) irecovery.c -o irecovery -I "C:\MinGW\include" -L "C:\MinGW\lib" $(CFLAGS_WIN)
@echo 'Successfully built iRecovery'
clean:
@echo 'Cleaning...'
@rm -rf *.o irecovery
@echo 'Cleaning finished.'