Skip to content

Commit

Permalink
Merge pull request #8 from vitadev/master
Browse files Browse the repository at this point in the history
Improve makefile
  • Loading branch information
xerpi committed Jul 31, 2016
2 parents 2964bd0 + 5cb6629 commit 86760b1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions libftpvita/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
TARGET_LIB = libftpvita.a
OBJS = ftpvita.o

PREFIX = arm-vita-eabi
CC = $(PREFIX)-gcc
AR = $(PREFIX)-ar
PREFIX ?= $(VITASDK)/arm-vita-eabi
CC = arm-vita-eabi-gcc
AR = arm-vita-eabi-ar
CFLAGS = -Wl,-q -Wall -O3
ASFLAGS = $(CFLAGS)

Expand All @@ -16,9 +16,11 @@ $(TARGET_LIB): $(OBJS)
$(AR) -rcs $@ $^

clean:
@rm -rf $(TARGET_LIB) $(OBJS)
rm -rf $(TARGET_LIB) $(OBJS)

install: $(TARGET_LIB)
@cp $(TARGET_LIB) $(VITASDK)/arm-vita-eabi/lib
@cp ftpvita.h $(VITASDK)/arm-vita-eabi/include
@mkdir -p $(DESTDIR)$(PREFIX)/lib/
cp $(TARGET_LIB) $(DESTDIR)$(PREFIX)/lib/
@mkdir -p $(DESTDIR)$(PREFIX)/include/
cp ftpvita.h $(DESTDIR)$(PREFIX)/include/
@echo "Installed!"

0 comments on commit 86760b1

Please sign in to comment.