Commit 91370489 authored by Dmitriy Beykun's avatar Dmitriy Beykun
Browse files

libump: modified makefile to link library with libdrm and libdri2.

parent 33f79c0e
...@@ -17,11 +17,10 @@ ...@@ -17,11 +17,10 @@
UMP_DIR ?= . UMP_DIR ?= .
UMP_LIB ?= libUMP UMP_LIB ?= libUMP
UDD_OS ?= linux UDD_OS ?= linux
CROSS_COMPILE ?= arm-none-linux-gnueabi-
TARGET_CC ?= $(CROSS_COMPILE)gcc TARGET_CC ?= $(CROSS_COMPILE)gcc
TARGET_AR ?= $(CROSS_COMPILE)ar TARGET_AR ?= $(CROSS_COMPILE)ar
CFLAGS += -I$(UMP_DIR)/include -I$(UMP_DIR)/include/ump -Wall -march=armv6 -mthumb-interwork -fno-strict-aliasing -Wno-strict-aliasing -Wno-long-long -O3 CFLAGS += -I$(UMP_DIR)/include -I$(UMP_DIR)/include/ump -Wall -march=armv7-a -mthumb-interwork -fno-strict-aliasing -fPIC -Wno-strict-aliasing -Wno-long-long -O3
LDFLAGS += -Wl,--no-as-needed -ldri2 -ldrm -lXfixes
include ump.mak include ump.mak
%.o: %.c %.o: %.c
...@@ -30,7 +29,7 @@ include ump.mak ...@@ -30,7 +29,7 @@ include ump.mak
UMP_OBJS := $(UMP_SRCS:.c=.o) UMP_OBJS := $(UMP_SRCS:.c=.o)
libUMP.so: $(UMP_OBJS) libUMP.so: $(UMP_OBJS)
$(TARGET_CC) -shared -o $@ $(UMP_OBJS) $(CFLAGS) $(TARGET_CC) -shared -o $@ $(UMP_OBJS) $(CFLAGS) $(LDFLAGS)
libUMP.a: $(UMP_OBJS) libUMP.a: $(UMP_OBJS)
$(TARGET_AR) rcs $@ $(UMP_OBJS) $(TARGET_AR) rcs $@ $(UMP_OBJS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment