Skip to content

Commit

Permalink
stupid crappy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
comex committed Dec 1, 2010
1 parent 7ec5cef commit 0abd35e
Show file tree
Hide file tree
Showing 11 changed files with 904 additions and 775 deletions.
18 changes: 18 additions & 0 deletions Makefile
@@ -0,0 +1,18 @@
all: white_loader

GCC ?= /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk/ -mapcs-frame -fomit-frame-pointer -mthumb -fno-builtin-printf -fno-builtin-memset
CFLAGS ?= -g3 -std=gnu99 -Os -Wall -Wno-parentheses -Werror
AR ?= ar

%.o: %.c *.h
$(GCC) $(CFLAGS) -c -o $@ $< -DIMG3_SUPPORT -Wreturn-type

libdata.a: common.o binary.o running_kernel.o link.o find.o cc.o lzss.o
$(AR) rcs $@ $^

white_loader: libdata.a white_loader.o
$(GCC) -o $@ $^
bash -c 'if [ -n "`lipo -info $@ | grep arm`" ]; then ldid -Sent.plist $@; fi'

clean:
rm -f *.o libdata.a white_loader

0 comments on commit 0abd35e

Please sign in to comment.