mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-25 04:54:59 +00:00
Fix/improve make distcheck
This commit is contained in:
@@ -8,14 +8,22 @@ CPPFLAGS = -I$(top_srcdir)/src/base -I$(top_srcdir)/src/kernel -I$(top_srcdir)/s
|
||||
CFLAGS = @PSPSDK_CFLAGS@
|
||||
CCASFLAGS = $(CFLAGS)
|
||||
|
||||
## Borrow this trick from newlib - create a dummy library to generate build rules.
|
||||
# Borrowed this trick from newlib: create a dummy library to generate build rules.
|
||||
noinst_LIBRARIES = lib.a
|
||||
lib_a_SOURCES = dummy.c
|
||||
|
||||
# FIXME: This workaround is actually needed to get the stage1 installation
|
||||
# working. Once a better way to do crt0 installation for newlib is figured out,
|
||||
# this can be rewritten.
|
||||
|
||||
all: crt0.o crt0_prx.o prxexports.o
|
||||
|
||||
startupdir = @PSPDEV_LIBDIR@
|
||||
pspsdkdir = @PSPSDK_LIBDIR@
|
||||
pspsdkdir = @PSPSDK_LIBDIR@
|
||||
|
||||
# Overwrite build rule to disable dependency magic
|
||||
.c.o:
|
||||
$(AM_V_CC)$(COMPILE) $< -c -o $@
|
||||
|
||||
# Install the prx specific stuff in the pspsdk libdir
|
||||
install-exec-hook:
|
||||
@@ -24,7 +32,6 @@ install-exec-hook:
|
||||
$(INSTALL_DATA) crt0_prx.o $(DESTDIR)$(startupdir)/crt0_prx.o
|
||||
$(INSTALL_DATA) prxexports.o $(DESTDIR)$(pspsdkdir)/prxexports.o
|
||||
|
||||
|
||||
uninstall-hook:
|
||||
rm -f $(DESTDIR)$(startupdir)/crt0.o
|
||||
rm -f $(DESTDIR)$(startupdir)/crt0_prx.o
|
||||
@@ -32,5 +39,5 @@ uninstall-hook:
|
||||
|
||||
CLEANFILES = crt0.o crt0_prx.o prxexports.o
|
||||
|
||||
## How else do I add a dependency for this?
|
||||
# Explicitly add dependencies
|
||||
EXTRA_DIST = crt0.c crt0_prx.c prxexports.c
|
||||
|
||||
Reference in New Issue
Block a user