Skip to content

Commit 3128046

Browse files
committedAug 6, 2020
Fix makefile
1 parent fdc4125 commit 3128046

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
 

‎Makefile

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ ifndef ORBISDEV
22
$(error ORBISDEV, is not set)
33
endif
44

5+
projectname := SDL2
56
target := ps4_lib
67
OutPath := lib
7-
TargetFile := libSDL.a
8+
TargetFile := lib$(projectname).a
89

910
include $(ORBISDEV)/make/ps4sdklib.mk
1011
CompilerFlags += -D__PS4__ -D__ORBIS__
@@ -13,8 +14,12 @@ IncludePath += -I$(ORBISDEV)/usr/include -I$(ORBISDEV)/usr/include/c++/v1 -I$(OR
1314
# we are just shipping a cross builted (on linux) archive here!
1415

1516
$(AllTarget): $(ObjectFiles)
17+
$(dirp)
18+
$(archive)
1619
@echo "$(TargetFile) Compiled!"
1720

1821
install:
19-
# ToDo: copy to include and lib directories
22+
@mkdir $(ORBISDEV)/usr/include/$(projectname)
23+
@cp source/*.h $(ORBISDEV)/usr/include/$(projectname)
24+
@cp lib/$(TargetFile) $(ORBISDEV)/usr/lib
2025
@echo "$(TargetFile) Installed!"

0 commit comments

Comments
 (0)
Please sign in to comment.