X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=24cb91537591668e96a6e5a3bbbd09a5a8674d62;hb=3580a9ef98432ed54f065f2d537d588fdc083592;hp=22810e0f7c21d76089524e7e3d5045a88948f27a;hpb=384d2d42b027ab30427dc7f266fe53d38a9b949e;p=virtualjaguar diff --git a/Makefile b/Makefile index 22810e0..24cb915 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,9 @@ # script called "compile". The unified makefile should make life a little # easier for the maintainers. :-) # +# To the Gentoo ebuild maintainers: If something is silly in the compile script +# and/or makefile, why don't you enlighten us poor schmucks as to what's wrong? ;-) +# CC = gcc LD = gcc @@ -12,7 +15,7 @@ TARGET = vj$(EXESUFFIX) # Note that we use optimization level 2 instead of 3--3 doesn't seem to gain much over 2 CFLAGS = -Wall -Wno-switch -Wno-non-virtual-dtor -O2 -D$(SYSTYPE) \ - -fomit-frame-pointer `sdl-config --cflags` + -ffast-math -fomit-frame-pointer `sdl-config --cflags` # -fomit-frame-pointer `sdl-config --cflags` -g # -fomit-frame-pointer `sdl-config --cflags` -DLOG_UNMAPPED_MEMORY_ACCESSES @@ -25,10 +28,7 @@ INCS = -I. -Isrc -Isrc/include -I/usr/local/include -I/usr/include THECC = $(CC) $(CFLAGS) $(INCS) OBJS = \ - obj/anajoy.o \ obj/blitter.o \ - obj/cdbios.o \ - obj/cdi.o \ obj/cdrom.o \ obj/cdintf.o \ obj/clock.o \ @@ -56,6 +56,9 @@ OBJS = \ obj/video.o \ obj/vj.o \ $(ICON) +# obj/anajoy.o +# obj/cdbios.o +# obj/cdi.o all: obj $(TARGET) @@ -83,9 +86,20 @@ $(TARGET): $(OBJS) # strip --strip-all vj$(EXESUFFIX) # upx -9 vj$(EXESUFFIX) +# Dependencies + +obj/dac.o: src/include/settings.h +obj/eeprom.o: src/include/settings.h +obj/gui.o: src/include/settings.h +obj/jaguar.o: src/include/settings.h +obj/joystick.o: src/include/settings.h +obj/tom.o: src/include/settings.h +obj/video.o: src/include/settings.h +obj/vj.o: src/include/settings.h + # Other stuff that has unusual dependencies -obj/gui.o: src/gui.cpp src/include/gui.h src/include/font1.h +obj/gui.o: src/gui.cpp src/include/gui.h src/include/font1.h src/include/font14pt.h src/include/guielements.h obj/cdintf.o: src/cdintf.cpp src/cdintf_win32.cpp src/cdintf_osx.cpp src/cdintf_linux.cpp src/include/cdintf.h #