-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f687d1
commit 051497c
Showing
7 changed files
with
57 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,35 @@ | ||
TARGET_LIB=libScePromoterUtil_stub.a | ||
ARCH ?= arm-vita-eabi | ||
AS = $(ARCH)-as | ||
AR = $(ARCH)-ar | ||
RANLIB = $(ARCH)-ranlib | ||
|
||
$(TARGET_LIB): promoterutil.json | ||
-rm -rf build_lib | ||
mkdir build_lib | ||
vita-libs-gen $< build_lib | ||
cd build_lib && make | ||
mv build_lib/$(TARGET_LIB) $(TARGET_LIB) | ||
rm -rf build_lib | ||
TARGETS = libScePromoterUtil_stub.a | ||
|
||
ScePromoterUtil_OBJS = ScePromoterUtil_ScePromoterUtil_scePromoterUtilityInit.o ScePromoterUtil_ScePromoterUtil_scePromoterUtilityExit.o ScePromoterUtil_ScePromoterUtil_scePromoterUtilityDeletePkg.o ScePromoterUtil_ScePromoterUtil_scePromoterUtilityUpdateLiveArea.o ScePromoterUtil_ScePromoterUtil_scePromoterUtilityPromotePkg.o ScePromoterUtil_ScePromoterUtil_scePromoterUtilityPromotePkgWithRif.o ScePromoterUtil_ScePromoterUtil_scePromoterUtilityGetState.o ScePromoterUtil_ScePromoterUtil_scePromoterUtilityGetResult.o | ||
SceKernel_OBJS = | ||
ALL_OBJS= | ||
|
||
all: $(TARGETS) | ||
|
||
define LIBRARY_template | ||
$(1): $$($(1:lib%_stub.a=%)_OBJS) | ||
ALL_OBJS += $$($(1:lib%_stub.a=%)_OBJS) | ||
endef | ||
|
||
$(foreach library,$(TARGETS),$(eval $(call LIBRARY_template,$(library)))) | ||
|
||
all: $(TARGETS) | ||
|
||
install: $(TARGETS) | ||
cp $(TARGETS) $(VITASDK)/arm-vita-eabi/lib | ||
|
||
clean: | ||
rm $(TARGET_LIB) | ||
|
||
rm -f $(TARGETS) $(ALL_OBJS) | ||
|
||
$(TARGETS): | ||
$(AR) cru $@ $? | ||
$(RANLIB) $@ | ||
|
||
%.o: %.S | ||
$(AS) $< -o $@ |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters