--- makefile.unix.orig	Thu Aug 26 23:59:21 1999
+++ makefile.unix	Sat Sep  4 22:38:22 1999
@@ -39,12 +39,12 @@
 # GNU MAKE is MANDATORY !!!
 # so please give me the path...
 # if GNU make is "native" use this
-MAKE	= make
+MAKE	= gmake
 # else ...
 # MAKE=/usr/people/jantonio/bin/gmake
 
 # *** Choose your compiler
-CC	= gcc
+CC	= cc
 # Use of `c89' is recommend for ultrix as it generates faster code (which
 # means less frames to be skipped and better graphics) but `gcc' works just
 # as well. However, stay away from the `cc' ultrix compiler if possible.
@@ -71,7 +71,7 @@
 # RANLIB = true
 
 # *** How to install executable? ( some OS's doesn't support install command )
-INSTALL = cp
+INSTALL = install -C
 
 # *** set to aproppiate flag if want to debug/optimize
 # normal
@@ -80,7 +80,7 @@
 # DBGFLAGS    = -ggdb
 
 ### normal optimization flags
-OPTFLAGS    = -O -Wall
+#OPTFLAGS    = -O -Wall
 # use these for debugging on x86-gcc
 # OPTFLAGS    = -O2 -m486 -Wall -Wno-unused
 ### to get full optimization under gcc/x Intel based OS's.. ( !!else comment!! )
@@ -121,14 +121,14 @@
 # *** Select destination directory for your compiled program , manual page
 # and binary distribution ( if you want to... )
 # ( only needed to install, not to compile... )
-DESTDIR = /usr/games
+DESTDIR = /usr/local/bin/
 MANDIR  = /usr/local/man/man6
 DISTDIR = /home/ftp/pub/emulators/$(NAME)
 
 # *** xmameroot, this is the default rompath, place where the highscores are
 # stored, global rc location etc. Since most of these are configurable through
 # the rc-file anyway, there are no longer seperate defines for each.
-XMAMEROOT = /usr/games/lib/$(NAME)
+XMAMEROOT = /usr/local/lib/$(NAME)
 
 
 ##############################################################################
@@ -317,9 +317,9 @@
 ######## Alpha/Linux
 # ARCH  = linux_alpha
 ######## ix86/Linux
-ARCH  = linux_i386
+# ARCH  = linux_i386
 ######## ix86/FreeBSD and ix86/BSDi
-# ARCH  = FREEBSD
+ARCH  = FREEBSD
 ######## ix86/NetBSD
 # ARCH  = netbsd_i386
 ######## Alpha/NetBSD
@@ -452,7 +452,7 @@
 
 # Perhaps one day original mame/mess sources will use POSIX strcasecmp and M_PI
 # instead MS-DOS counterparts... ( a long and sad history ...)
-CFLAGS = $(TD) $(DBGFLAGS) $(OPTFLAGS) $(IL) $(INCDIRS) $(CFLAGS.$(ARCH)) \
+CFLAGS+= $(TD) $(DBGFLAGS) $(IL) $(INCDIRS) $(CFLAGS.$(ARCH)) \
 	 -Dstricmp=strcasecmp -DPI=M_PI -DUNIX -DSIGNED_SAMPLES \
 	 $(DEFS.$(ARCH)) -D$(ARCH) -D$(DISPLAY_METHOD) $(MAMENET) $(DEBUG) \
 	 -Iobj/cpu/m68000 -Isrc/cpu/m68000 $(EXTRA_INCLUDES) $(ZLIB_INCLUDES) \
@@ -493,6 +493,9 @@
 	$(MAKE) libz.a \
 	)
 
+obj/cpu/i86/%.o: src/cpu/i86/%.c
+	$(CC) $(CFLAGS) -O -o $@ -c $<
+
 obj/%.o: src/%.c
 	$(CC) $(CFLAGS) -o $@ -c $<
 
@@ -544,7 +547,7 @@
 
 doinstall:
 	@echo installing binaries under $(DESTDIR)...
-	$(INSTALL) $(NAME).$(DISPLAY_METHOD) $(DESTDIR)
+	$(INSTALL) $(NAME).$(DISPLAY_METHOD) $(DESTDIR)/$(NAME)
 
 doinstallsuid:
 	@echo installing binaries under $(DESTDIR)...
