Commit | Line | Data |
---|---|---|
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 config.o \ | |
12 | linux/fbdev.o linux/oshide.o | |
13 | ifeq ($(ARCH),arm) | |
14 | OBJS += arm_utils.o | |
15 | else | |
16 | CFLAGS += -fPIC | |
17 | endif | |
18 | CFLAGS += -DSTANDALONE | |
19 | ||
20 | all: $(TARGET) | |
21 | ||
22 | $(TARGET): $(OBJS) | |
23 | $(CC) -shared -o $@ $^ $(LDFLAGS) | |
24 | ||
25 | clean: | |
26 | $(RM) $(TARGET) $(OBJS) | |
27 | ||
28 | *.o: omapsdl.h |