mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 03:01:36 +01:00
libdrm works on x86_64!
This commit is contained in:
@@ -7,18 +7,22 @@ LIBS :=
|
||||
OUT_EXT ?= .out
|
||||
|
||||
OUTS := $(foreach IN_EXT,$(IN_EXT_C) $(IN_EXT_CXX),$(addsuffix $(OUT_EXT), $(basename $(wildcard *$(IN_EXT)))))
|
||||
ifeq ($(BR2_PACKAGE_EIGEN),y)
|
||||
CXXFLAGS_EXTRA += $(shell $(PKG_CONFIG) --cflags --libs eigen3)
|
||||
else
|
||||
OUTS := $(filter-out eigen_%$(OUT_EXT),$(OUTS))
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_LIBDRM),y)
|
||||
LIBS += $(shell $(PKG_CONFIG) --libs libdrm)
|
||||
CFLAGS_EXTRA += $(shell $(PKG_CONFIG) --cflags libdrm)
|
||||
else
|
||||
OUTS := $(filter-out libdrm_%$(OUT_EXT),$(OUTS))
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_OPENBLAS),y)
|
||||
LIBS += -lopenblas
|
||||
else
|
||||
OUTS := $(filter-out openblas$(OUT_EXT),$(OUTS))
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_EIGEN),y)
|
||||
# Header only.
|
||||
#LIBS += -leigen
|
||||
CXXFLAGS_EXTRA += $(shell $(PKG_CONFIG) --cflags --libs eigen3)
|
||||
else
|
||||
OUTS := $(filter-out eigen%$(OUT_EXT),$(OUTS))
|
||||
endif
|
||||
|
||||
all: $(OUTS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user