Don't add LIBSOURCES to SOURCES.

Split source files for library and stand-alone binary and use library as
dependency when building the stand-alone binary. This avoids dependencies
getting added multiple times.

Remove outdated RBARCH handling, we always create fat binaries on OS X these
days.

Change-Id: Ia15a731296edcbe90869a1bf66dda2c3d6c7e317
This commit is contained in:
Dominik Riebeling 2016-12-16 19:39:07 +01:00
parent efe3775145
commit 6f4beaa52c
8 changed files with 17 additions and 24 deletions

View file

@ -12,7 +12,7 @@ OUTPUT = sansapatcher
# inputs
LIBSOURCES := sansapatcher.c sansaio-posix.c sansaio-win32.c
SOURCES := $(LIBSOURCES) main.c
SOURCES := main.c
# additional link dependencies for the standalone executable
EXTRADEPS :=