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