tune the preloads a bit
[sdl_omap.git] / src / video / omapdss / Makefile
1 CC = $(CROSS_COMPILE)gcc
2 AS = $(CROSS_COMPILE)as
3 CFLAGS += -Wall -ggdb
4 LDFLAGS += -ldl
5 ifndef DEBUG
6 CFLAGS += -O2
7 endif
8 ARCH ?= arm
9
10 TARGET = libSDL-1.2.so.0
11 OBJS += standalone.o osdl_input.o osdl_video.o config.o \
12         linux/fbdev.o linux/oshide.o
13 ifeq ($(ARCH),arm)
14 LDFLAGS += -lts
15 OBJS += arm_utils.o
16 else
17 CFLAGS += -fPIC
18 endif
19 CFLAGS += -DSTANDALONE
20
21 all: $(TARGET)
22
23 $(TARGET): $(OBJS)
24         $(CC) -shared -o $@ $^ $(LDFLAGS)
25
26 clean:
27         $(RM) $(TARGET) $(OBJS)
28
29 *.o: omapsdl.h