2009-09-20 15:07:11 +00:00

27 lines
663 B
Makefile

NAME = SpringBoardAccess
CC = @CC@
OBJC = @OBJC@
LDFLAGS = @LDFLAGS@
CPPFLAGS = @CPPFLAGS@
LIB_LDFLAGS = -lobjc \
-multiply_defined suppress \
-framework CoreFoundation \
-framework Foundation \
-framework UIKit \
-L../3rdparty -lsubstrate
APP_LDFLAGS = -framework CoreFoundation
all: $(NAME).dylib $(NAME)-test
clean:
rm -f $(NAME).dylib $(NAME)-test
$(NAME).dylib: $(NAME)Extension.mm
$(OBJC) $(CPPFLAGS) -dynamiclib -o $@ $(NAME)Extension.mm -init _$(NAME)Initialize $(LDFLAGS) $(LIB_LDFLAGS)
$(NAME)-test: $(NAME)-test.c $(NAME).c
$(OBJC) $(CPPFLAGS) -o $@ $(NAME).c $(NAME)-test.c $(LDFLAGS) $(APP_LDFLAGS)