-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
32 lines (28 loc) · 985 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
27
28
29
30
31
32
DESTDIR=/usr
.PHONY: all
all:
@echo Building migcom...
make -C bootstrap_cmds-60/migcom.tproj/
@echo Building cctools...
/bin/sh -c "cd cctools-836; ./configure --target=arm-apple-darwin11 --prefix=/; make CFLAGS=-I$(PWD)/include all"
@echo Building kext-tools...
make -C kext-tools/
install:
@echo Installing mig and migcom...
make -C bootstrap_cmds-60/migcom.tproj/ DESTDIR=$(DESTDIR) install
@echo Installing cctools...
make -C cctools-836/ DESTDIR=$(DESTDIR) install
@echo Installing kext-tools
make -C kext-tools/ DESTDIR=$(DESTDIR) install
@echo Installing xcode stubs...
@/bin/sh gen-stubs.sh $(DESTDIR)
@echo Installing prebuilt libclang_rt.cc_kext.a...
install -d $(DESTDIR)/lib
install -m 644 prebuilt/libclang_rt.cc_kext.a $(DESTDIR)/lib/libclang_rt.cc_kext.a
clean:
@echo Cleaning migcom...
make -C bootstrap_cmds-60/migcom.tproj/ clean
@echo Cleaning cctools...
make -C cctools-836/ clean
@echo Cleaning kext-tools...
make -C kext-tools/ clean