5 CFLAGS += -DGPULIB_PLUGIN
7 include ../../config.mak
11 #CFLAGS += `sdl-config --cflags`
14 CFLAGS += $(PLUGIN_CFLAGS)
16 # need to compile to another dir, same files are compiled
17 # into main binary without PIC
18 OBJS2 = $(patsubst %.o,obj/%.o,$(OBJS))
20 TARGET = gpulib.$(ARCH).a
22 all: ../../config.mak obj $(TARGET)
28 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $^
31 $(AS) $(ASFLAGS) -o $@ $^
34 $(RM) $(TARGET) $(OBJS2)
40 @echo "Please run ./configure before running make!"