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