notaz.gp2x.de
/
sdl_omap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add input, basic config
[sdl_omap.git]
/
src
/
video
/
omapdss
/
Makefile
diff --git
a/src/video/omapdss/Makefile
b/src/video/omapdss/Makefile
index
98d7ba0
..
98c2984
100644
(file)
--- a/
src/video/omapdss/Makefile
+++ b/
src/video/omapdss/Makefile
@@
-1,15
+1,28
@@
CC = $(CROSS_COMPILE)gcc
AS = $(CROSS_COMPILE)as
CC = $(CROSS_COMPILE)gcc
AS = $(CROSS_COMPILE)as
-CFLAGS += -Wall -ggdb -O2
-#ASFLAGS = -mcpu=cortex-a8
+CFLAGS += -Wall -ggdb
+LDFLAGS += -ldl
+ifndef DEBUG
+CFLAGS += -O2
+endif
+ARCH ?= arm
TARGET = libSDL-1.2.so.0
TARGET = libSDL-1.2.so.0
-OBJS += main.o arm_utils.o linux/fbdev.o
+OBJS += main.o pmsdl_input.o \
+ common/input.o linux/fbdev.o linux/in_evdev.o linux/oshide.o linux/plat.o
+ifeq ($(ARCH),arm)
+OBJS += arm_utils.o
+else
+CFLAGS += -fPIC
+endif
+CFLAGS += -DIN_EVDEV
all: $(TARGET)
$(TARGET): $(OBJS)
all: $(TARGET)
$(TARGET): $(OBJS)
- $(CC) -shared -o $@ $^
+ $(CC) -shared -o $@ $^
$(LDFLAGS)
clean:
$(RM) $(TARGET) $(OBJS)
clean:
$(RM) $(TARGET) $(OBJS)
+
+*.o: pmsdl.h