mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-26 17:50:56 +00:00
51 lines
1.6 KiB
Makefile
51 lines
1.6 KiB
Makefile
LIB = pib
|
|
OBJS = src/main.o src/hooks.o src/shacccgpatch.o src/patches.o src/sha1.o src/sysmodepatch.o
|
|
INCLUDE = include
|
|
|
|
PREFIX ?= ${DOLCESDK}/arm-dolce-eabi
|
|
CC = arm-dolce-eabi-gcc
|
|
AR = arm-dolce-eabi-ar
|
|
CFLAGS = -Wl,-q -Wall -Wno-incompatible-pointer-types -Wno-pointer-sign -O3 -nostartfiles -nostdlib -DVITA
|
|
ASFLAGS = $(CFLAGS)
|
|
|
|
all: lib
|
|
|
|
debug: CFLAGS += -DDEBUG
|
|
debug: lib
|
|
|
|
lib: lib$(LIB).a
|
|
|
|
%.a: $(OBJS)
|
|
$(AR) -rc $@ $^
|
|
|
|
clean:
|
|
@rm -rf combine $(OBJS) lib$(LIB).a
|
|
|
|
install: lib$(LIB).a
|
|
@mkdir -p $(DESTDIR)$(PREFIX)/include/
|
|
@cp include/pib.h $(DESTDIR)$(PREFIX)/include/
|
|
@cp -r include/EGL $(DESTDIR)$(PREFIX)/include/
|
|
@cp -r include/GLES2 $(DESTDIR)$(PREFIX)/include/
|
|
@cp -r include/KHR $(DESTDIR)$(PREFIX)/include/
|
|
@mkdir -p combine
|
|
@cp $(PREFIX)/lib/libSceAppMgr_stub.a combine
|
|
@cp $(PREFIX)/lib/libSceSharedFb_stub.a combine
|
|
@cp $(PREFIX)/lib/libSceGxmInternalForVsh_stub.a combine
|
|
@cp $(PREFIX)/lib/libSceGxmInternal_stub.a combine
|
|
@cp $(PREFIX)/lib/liblibScePiglet_stub.a combine
|
|
@cp $(PREFIX)/lib/libSceShaccCg_stub.a combine
|
|
@cp $(PREFIX)/lib/libtaihen_stub.a combine
|
|
@cp libpib.a combine
|
|
@cd combine && $(AR) -x libSceAppMgr_stub.a
|
|
@cd combine && $(AR) -x libSceSharedFb_stub.a
|
|
@cd combine && $(AR) -x libSceGxmInternalForVsh_stub.a
|
|
@cd combine && $(AR) -x libSceGxmInternal_stub.a
|
|
@cd combine && $(AR) -x liblibScePiglet_stub.a
|
|
@cd combine && $(AR) -x libSceShaccCg_stub.a
|
|
@cd combine && $(AR) -x libtaihen_stub.a
|
|
@cd combine && $(AR) -x libpib.a
|
|
@cd combine && $(AR) -qc ../libpib.a *.o
|
|
@mkdir -p $(DESTDIR)$(PREFIX)/lib/
|
|
@cp lib$(LIB).a $(DESTDIR)$(PREFIX)/lib/
|
|
@echo Installed PIB!
|