# Unified Makefile for Virtual Jaguar GCC/SDL Portable Jaguar Emulator
#
# by James L. Hammons
-# This software is licensed under the GPL v2. Set the file GPL.TXT for details. ;-)
#
+# This software is licensed under the GPL v2 or any later version. Set the
+# file GPL.TXT for details. ;-)
+#
+
+# NOTE: zlib and OpenGL libs are a dependency, but are not checked for.
+# same goes for libcdio
# Figure out which system we're compiling for, and set the appropriate variables
# Note that we use optimization level 2 instead of 3--3 doesn't seem to gain much over 2
CFLAGS = -MMD -Wall -Wno-switch -O2 -D$(SYSTYPE) -ffast-math -fomit-frame-pointer `sdl-config --cflags`
CPPFLAGS = -MMD -Wall -Wno-switch -Wno-non-virtual-dtor -O2 -D$(SYSTYPE) \
- -ffast-math -fomit-frame-pointer `sdl-config --cflags`
+ -ffast-math -fomit-frame-pointer `sdl-config --cflags` -g
# -fomit-frame-pointer `sdl-config --cflags` -g
# -fomit-frame-pointer `sdl-config --cflags` -DLOG_UNMAPPED_MEMORY_ACCESSES
LDFLAGS =
-LIBS = -L/usr/local/lib -L/usr/lib `sdl-config $(SDLLIBTYPE)` -lstdc++ -lz $(GLLIB)
+LIBS = -L/usr/local/lib -L/usr/lib `sdl-config $(SDLLIBTYPE)` -lstdc++ -lz $(GLLIB) -lcdio
INCS = -I. -I./src -I/usr/local/include -I/usr/include
obj/video.o \
obj/vj.o \
$(ICON)
-# obj/anajoy.o
-# obj/cdbios.o
-# obj/cdi.o
all: checkenv message obj $(TARGET)$(EXESUFFIX)
@echo