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