make PCNT stuff optional
[pcsx_rearmed.git] / Makefile
index 79a8f2d..bf3eee2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,8 @@ endif
 ifndef DEBUG
 CFLAGS += -O2
 endif
+#DRC_DBG = 1
+#PCNT = 1
 TARGET = pcsx
 
 all: $(TARGET)
@@ -28,6 +30,10 @@ OBJS += libpcsxcore/new_dynarec/new_dynarec.o libpcsxcore/new_dynarec/linkage_ar
 endif
 OBJS += libpcsxcore/new_dynarec/emu_if.o
 libpcsxcore/new_dynarec/new_dynarec.o: libpcsxcore/new_dynarec/assem_arm.c
+ifdef DRC_DBG
+libpcsxcore/new_dynarec/emu_if.o: CFLAGS += -D_FILE_OFFSET_BITS=64
+CFLAGS += -DDRC_DBG
+endif
 
 # spu
 OBJS += plugins/dfsound/adsr.o plugins/dfsound/dma.o plugins/dfsound/oss.o plugins/dfsound/reverb.o \
@@ -53,6 +59,9 @@ OBJS += frontend/linux/fbdev.o
 $(TARGET): $(OBJS)
        $(CC) -o $@ $^ $(LDFLAGS) -Wl,-Map=$@.map
 
+spunull.so: plugins/spunull/spunull.c
+       $(CC) $(CFLAGS) -shared -fPIC -o $@ $^
+
 clean:
        $(RM) $(TARGET) $(OBJS)