would be better to drop the plugins really
ifneq ($(PLUGINS),)
plugins_: $(PLUGINS)
-$(PLUGINS):
+plugins/gpulib/gpulib.$(ARCH).a:
+ $(MAKE) -C plugins/gpulib/
+
+$(PLUGINS): plugins/gpulib/gpulib.$(ARCH).a
$(MAKE) -C $(dir $@)
clean_plugins:
OBJS += gpu.o prim.o
-ifeq "$(ARCH)" "arm"
-OBJS += vout_pl.o
-EXT = a
-else
#CFLAGS += `sdl-config --cflags`
#OBJS += vout_sdl.o
OBJS += vout_pl.o
-EXT = $(ARCH).a
-endif
CFLAGS += $(PLUGIN_CFLAGS)
# need to compile to another dir, same files are compiled
# into main binary without PIC
OBJS2 = $(patsubst %.o,obj/%.o,$(OBJS))
-TARGET = gpulib.$(EXT)
+TARGET = gpulib.$(ARCH).a
all: ../../config.mak obj $(TARGET)
LDFLAGS += -shared -Wl,--no-undefined
CFLAGS += $(PLUGIN_CFLAGS)
-ifeq "$(ARCH)" "arm"
- EXT =
-else
- #LDLIBS_GPULIB += `sdl-config --libs`
- EXT = .$(ARCH)
-endif
+#LDLIBS_GPULIB += `sdl-config --libs`
ifdef DEBUG
CFLAGS += -O0
endif
-GPULIB_A = ../gpulib/gpulib$(EXT).a
+GPULIB_A = ../gpulib/gpulib.$(ARCH).a
ifdef BIN_STANDALONE
TARGETS += $(BIN_STANDALONE)