ignore case for cwcheat
[pcsx_rearmed.git] / plugins / gpulib / Makefile
CommitLineData
f7be0e2b 1CFLAGS += -ggdb -Wall
2ifndef DEBUG
3CFLAGS += -O2
4endif
62d7fa95 5
4132e8ca 6include ../../config.mak
7
62d7fa95 8OBJS += gpu.o
9
10ifeq "$(ARCH)" "arm"
1f219c7b 11OBJS += vout_pl.o
62d7fa95 12EXT = a
13else
ac6575cd 14#CFLAGS += `sdl-config --cflags`
15#OBJS += vout_sdl.o
16OBJS += vout_pl.o
4132e8ca 17EXT = $(ARCH).a
62d7fa95 18endif
ac6575cd 19ifeq "$(HAVE_NEON)" "1"
20OBJS += cspace_neon.o
21else
22OBJS += cspace.o
23endif
4132e8ca 24CFLAGS += $(PLUGIN_CFLAGS)
62d7fa95 25
dd4d5a35 26# need to compile to another dir, same files are compiled
27# into main binary without PIC
28OBJS2 = $(patsubst %.o,obj/%.o,$(OBJS))
29
62d7fa95 30TARGET = gpulib.$(EXT)
31
dd4d5a35 32all: ../../config.mak obj $(TARGET)
62d7fa95 33
dd4d5a35 34$(TARGET): $(OBJS2)
62d7fa95 35 $(AR) crs $@ $^
36
dd4d5a35 37obj/%.o: %.c
38 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $^
39
40obj/%.o: %.s
41 $(AS) $(ASFLAGS) -o $@ $^
42
62d7fa95 43clean:
dd4d5a35 44 $(RM) $(TARGET) $(OBJS2)
45
46obj:
47 mkdir -p $@
4132e8ca 48
49../../config.mak:
50 @echo "Please run ./configure before running make!"
51 @exit 1