mirror of
https://github.com/switchbrew/switch-tools.git
synced 2025-06-21 13:32:39 +02:00
autoconfiscate
This commit is contained in:
parent
f03b9277e4
commit
2bfd935f4a
18
.gitignore
vendored
18
.gitignore
vendored
@ -1,2 +1,16 @@
|
||||
build_pfs0*
|
||||
elf2nso*
|
||||
build*
|
||||
INSTALL
|
||||
Makefile.in
|
||||
aclocal.m4
|
||||
autom4te.cache
|
||||
config.guess
|
||||
config.sub
|
||||
configure
|
||||
depcomp
|
||||
install-sh
|
||||
missing
|
||||
compile
|
||||
.deps
|
||||
Makefile
|
||||
config.status
|
||||
config.log
|
5
COPYING
Normal file
5
COPYING
Normal file
@ -0,0 +1,5 @@
|
||||
Copyright 2017 libnx Authors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
18
Makefile
18
Makefile
@ -1,18 +0,0 @@
|
||||
all: elf2nso elf2nro build_pfs0
|
||||
|
||||
build_pfs0: build_pfs0.c
|
||||
gcc $(CFLAGS) -o $@ $^
|
||||
|
||||
elf2nso: elf2nso.c sha256.c
|
||||
gcc $(CFLAGS) -o $@ $^ -llz4
|
||||
|
||||
elf2nro: elf2nro.c
|
||||
gcc $(CFLAGS) -o $@ $^
|
||||
|
||||
install: all
|
||||
cp build_pfs0 $(DEVKITA64)/bin/
|
||||
cp elf2nso $(DEVKITA64)/bin/
|
||||
cp elf2nro $(DEVKITA64)/bin/
|
||||
|
||||
clean:
|
||||
rm -f elf2nso elf2nro build_pfs0
|
10
Makefile.am
Normal file
10
Makefile.am
Normal file
@ -0,0 +1,10 @@
|
||||
# Makefile.am -- Process this file with automake to produce Makefile.in
|
||||
bin_PROGRAMS = elf2nso elf2nro build_pfs0
|
||||
|
||||
build_pfs0_SOURCES = src/build_pfs0.c src/types.h
|
||||
elf2nro_SOURCES = src/elf2nro.c src/elf64.h src/elf_common.h
|
||||
elf2nso_SOURCES = src/elf2nso.c src/sha256.c src/sha256.h src/elf64.h src/elf_common.h
|
||||
|
||||
elf2nso_LDADD = @LZ4_LIBS@
|
||||
|
||||
EXTRA_DIST = autogen.sh
|
3
autogen.sh
Executable file
3
autogen.sh
Executable file
@ -0,0 +1,3 @@
|
||||
aclocal
|
||||
autoconf
|
||||
automake --add-missing -c
|
26
configure.ac
Normal file
26
configure.ac
Normal file
@ -0,0 +1,26 @@
|
||||
# -*- Autoconf -*-
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.61)
|
||||
AC_INIT([switch-tools],[1.0.0],[https://github.com/switchbrew/switch-tools/issues])
|
||||
AC_CONFIG_SRCDIR([src/build_pfs0.c])
|
||||
|
||||
AM_INIT_AUTOMAKE([subdir-objects])
|
||||
|
||||
AC_CANONICAL_BUILD
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
AC_PROG_CC
|
||||
|
||||
|
||||
PKG_CHECK_MODULES([LZ4],
|
||||
[liblz4 >= 1.7.1 liblz4 < 100],
|
||||
[have_lz4="yes"],
|
||||
[LZ4_LIBS="-llz4"] # If this fails, we will do another test next.
|
||||
# We also add set LZ4_LIBS otherwise the
|
||||
# linker will not know about the lz4 library
|
||||
)
|
||||
|
||||
AC_SUBST(LZ4_LIBS)
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
Loading…
Reference in New Issue
Block a user