From 4b889f64d774c1a7a8fca11c3c11826b0459f7b2 Mon Sep 17 00:00:00 2001 From: abma Date: Sat, 16 Aug 2014 19:37:46 +0200 Subject: remove duplicate code --- src/openal.mk | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/openal.mk b/src/openal.mk index ab0da35..ee2f029 100644 --- a/src/openal.mk +++ b/src/openal.mk @@ -20,20 +20,7 @@ endef define $(PKG)_BUILD cd '$(1)/build' && cmake .. \ -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DLIBTYPE=STATIC \ - -DEXAMPLES=FALSE - $(MAKE) -C '$(1)/build' -j '$(JOBS)' install - - '$(TARGET)-gcc' \ - -W -Wall -Werror -ansi -pedantic \ - '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-openal.exe' \ - `'$(TARGET)-pkg-config' openal --cflags --libs` -endef - -define $(PKG)_BUILD_SHARED - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DLIBTYPE=SHARED \ + -DLIBTYPE=$(if BUILD_SHARED,SHARED,STATIC) \ -DEXAMPLES=FALSE $(MAKE) -C '$(1)/build' -j '$(JOBS)' install -- cgit v0.12