File funnymu.dif of Package funnymu
--- funnymu.c
+++ funnymu.c 2007/10/23 15:53:07
@@ -48,9 +48,10 @@
/*************************************************************/
int main(int argc,char *argv[])
{
- char CartName[256]="CART.ROM";
- char BIOSName[256]="BIOS.ROM";
- char INIFileName[256]="FunnyMu.ini";
+ char CartName[256]="cart.rom";
+ char BIOSName[256]="bios.rom";
+ char INIFileName[256];
+ sprintf(INIFileName, "%s/.FunnyMu.ini", getenv("HOME"));
int N,J,I;
@@ -194,11 +195,11 @@
if(DoExit==1) // creates new INI file
{
- INISetString(&F,"Bios","path","BIOS/");
- INISetString(&F,"Bios","bios_cv","BIOSCV.ROM");
- INISetString(&F,"Bios","bios_fv","BIOS.ROM");
+ INISetString(&F,"Bios","path","/usr/share/funnymu/bios/");
+ INISetString(&F,"Bios","bios_cv","bioscv.rom");
+ INISetString(&F,"Bios","bios_fv","bios.rom");
INISetString(&F,"Bios","usebios","bios_fv");
- INISetString(&F,"ROMs","path","ROMS/");
+ INISetString(&F,"ROMs","path","");
SaveINI(&F,INIFileName);
DoExit=1;
}
--- Makefile
+++ Makefile 2007/10/23 15:38:11
@@ -39,9 +39,9 @@
CC = gcc
WINDRES = windres.exe
ICON = funnymu.res
-DEFINES = -DFUNNY -DLSB_FIRST -DUSESDL -DNEWSOUND -DWIN32 # -DDEBUG
-CFLAGS = -O2 ${DEFINES}
-OBJECTS = funnymu.o INIFile.o funny.o M6502.o Debug.o sn76496.o funnysdl.o $(ICON)
+DEFINES = -DFUNNY -DUSESDL -DNEWSOUND -DUNIX -DLINUX #-DWIN32 # -DDEBUG
+CFLAGS = $(RPM_OPT_FLAGS) ${DEFINES}
+OBJECTS = funnymu.o INIFile.o funny.o M6502.o Debug.o sn76496.o funnysdl.o
# Make the standard distribution: Funnymu and tools.
all: FunnyMu
@@ -49,14 +49,13 @@
# FunnyMu Unix/X requires X11 libraries. See note above if you are
# experiencing any problems.
FunnyMu: ${OBJECTS}
- ${WINDRES} -O coff -o funnymu.res -i funnymu.rc --input-format=rc
${CC} ${CFLAGS} -o $@ ${OBJECTS} -lm -lSDL
# Clean up.
clean:
- del *.o *~
+ rm -f *.o *~
# Dependencies for the object files.
funnymu.res: funnymu.rc