mirror of
https://github.com/izzy2lost/PSX1.git
synced 2026-03-26 16:38:52 -07:00
ddab61589d
would be better to drop the plugins really
41 lines
665 B
Makefile
41 lines
665 B
Makefile
CFLAGS += -ggdb -Wall
|
|
ifndef DEBUG
|
|
CFLAGS += -O2
|
|
endif
|
|
|
|
include ../../config.mak
|
|
|
|
OBJS += gpu.o prim.o
|
|
|
|
#CFLAGS += `sdl-config --cflags`
|
|
#OBJS += vout_sdl.o
|
|
OBJS += vout_pl.o
|
|
CFLAGS += $(PLUGIN_CFLAGS)
|
|
|
|
# need to compile to another dir, same files are compiled
|
|
# into main binary without PIC
|
|
OBJS2 = $(patsubst %.o,obj/%.o,$(OBJS))
|
|
|
|
TARGET = gpulib.$(ARCH).a
|
|
|
|
all: ../../config.mak obj $(TARGET)
|
|
|
|
$(TARGET): $(OBJS2)
|
|
$(AR) crs $@ $^
|
|
|
|
obj/%.o: %.c
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $^
|
|
|
|
obj/%.o: %.s
|
|
$(AS) $(ASFLAGS) -o $@ $^
|
|
|
|
clean:
|
|
$(RM) $(TARGET) $(OBJS2)
|
|
|
|
obj:
|
|
mkdir -p $@
|
|
|
|
../../config.mak:
|
|
@echo "Please run ./configure before running make!"
|
|
@exit 1
|