3 --- Makefile.in.orig 2004-12-30 14:15:44.000000000 -0800
5 @@ -113,6 +113,20 @@ SPC7110OBJ=spc7110.o
7 SETAOBJ=seta.o seta010.o seta011.o seta018.o
11 +USBJOYDEFINES=-DHAVE_USBHID_H
20 +EXTRADEFINES+=-D_ASM_UNDERBARS
23 OBJECTS=$(CPUOBJ) $(SOUNDOBJ) apudebug.o $(FXOBJ) $(C4OBJ) \
24 cpu.o sa1.o debug.o sdd1.o tile.o srtc.o gfx.o memmap.o clip.o \
25 dsp1.o ppu.o dma.o snes9x.o data.o globals.o \
26 @@ -136,9 +150,10 @@ OBJECTS += jma/s9x-jma.o jma/7zlzma.o jm
27 JMADEFINES=-DJMA_SUPPORT -fexceptions
30 +EXTRALIBS += ${LIBOSSAUDIO}
32 -CPUDEFINES += -DUSE_THREADS
33 -EXTRALIBS += -lpthread
34 +CPUDEFINES += -DUSE_THREADS -I${BUILDLINK_DIR}/include
35 +EXTRALIBS += -Wl,-R${LOCALBASE}/lib -L${BUILDLINK_DIR}/lib ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
39 @@ -186,7 +201,7 @@ ifdef DREAMCAST
40 OPTIMISE=-O4 -ffreestanding -ffast-math -fschedule-insns2 -fomit-frame-pointer -fno-inline-functions -fno-defer-pop -fforce-addr -fstrict-aliasing -funroll-loops -fdelete-null-pointer-checks -fno-exceptions
41 CPUFLAGS=-ml -m4-single-only
43 -OPTIMISE = @OPTIMIZE@
48 @@ -206,6 +221,8 @@ $(AIDODEFINES) \
54 -DNO_INLINE_SET_GET @SYSDEFINES@
56 #-DOLD_COLOUR_BLENDING
57 @@ -302,7 +319,7 @@ s9xserver: $(SERVER_OBJECTS)
58 sh-elf-as -little $(srcdir)/$*.s -o $@
61 - $(NASM) -f elf $(FXDEFINES) -I$(srcdir)/ -I$(srcdir)/$(CPU)/ -o $@ $(srcdir)/$*.asm
62 + $(NASM) -f ${FILEFORMAT} $(FXDEFINES) $(EXTRADEFINES) -I$(srcdir)/ -I$(srcdir)/$(CPU)/ -o $@ $(srcdir)/$*.asm