Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (31 sloc) 1.09 KB
ARCH=@ARCH@
SYSROOT=@SYSROOT@
.PHONY: compile
DIRS=flac-1.2.1
FLAC_SYSDIR=../../../../system/players/paplayer
FLAC_SO=libFLAC-$(ARCH).so
FLAC_LIB=$(FLAC_SYSDIR)/$(FLAC_SO)
all: $(FLAC_LIB)
ifeq ($(findstring osx,$(ARCH)), osx)
$(FLAC_LIB): flac-1.2.1/src/libFLAC/.libs/libFLAC.a
$(CC) $(SYSROOT) -bundle -undefined dynamic_lookup -read_only_relocs suppress -fPIC \
-alias_list $(WRAPPER_MACH_ALIAS) \
-o $@ ../../DllLoader/exports/wrapper.o flac-1.2.1/src/libFLAC/.libs/*.o
else
ifneq (@USE_EXTERNAL_LIBFLAC@,1)
$(FLAC_LIB): flac-1.2.1/src/libFLAC/.libs/libFLAC.a
$(CC) $(CFLAGS) -shared -fpic -o $@ -rdynamic \
-Wl,--whole-archive flac-1.2.1/src/libFLAC/.libs/libFLAC.a -Wl,--no-whole-archive \
`cat ../../DllLoader/exports/wrapper.def` ../../DllLoader/exports/wrapper.o
else
$(FLAC_LIB):
$(CC) $(CFLAGS) -shared -fpic -o $@ -rdynamic -lFLAC \
`cat ../../DllLoader/exports/wrapper.def` ../../DllLoader/exports/wrapper.o
endif
endif
flac-1.2.1/src/libFLAC/.libs/libFLAC.a: compile
ifneq (@USE_EXTERNAL_LIBFLAC@,1)
$(MAKE) -C flac-1.2.1
endif
CLEAN_FILES=$(FLAC_LIB)
include ../../../../Makefile.include
Jump to Line
Something went wrong with that request. Please try again.