From 67ce5bf71432a40ebe530b2377a9057c4de61eaa Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Sun, 25 Jun 2017 18:28:39 -0700 Subject: [PATCH] Add makefile for init on (MacOS) x86 system. Ignore the init.386 directory that "makeright init" will write to. modified: ../.gitignore new file: makefile-init.386 --- .gitignore | 1 + bin/makefile-init.386 | 52 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100755 bin/makefile-init.386 diff --git a/.gitignore b/.gitignore index 07a7991..44e90fc 100644 --- a/.gitignore +++ b/.gitignore @@ -8,5 +8,6 @@ darwin.386-x/** darwin.386/** freebsd.386-x/** freebsd.386/** +init.386/** # core files *.core \ No newline at end of file diff --git a/bin/makefile-init.386 b/bin/makefile-init.386 new file mode 100755 index 0000000..cc54a7f --- /dev/null +++ b/bin/makefile-init.386 @@ -0,0 +1,52 @@ +# Options for MacOS, x86 processor, X windows, for INIT processing + +CC = clang -m32 -std=gnu89 -Wimplicit-function-declaration +OEXT=.o + +XFILES = $(OBJECTDIR)xmkicon.o \ + $(OBJECTDIR)xbbt.o \ + $(OBJECTDIR)dspif.o \ + $(OBJECTDIR)xinit.o \ + $(OBJECTDIR)xscroll.o \ + $(OBJECTDIR)xcursor.o \ + $(OBJECTDIR)xlspwin.o \ + $(OBJECTDIR)xrdopt.o \ + $(OBJECTDIR)xwinman.o + + +XVERSION = XV11R4 +XFLAGS = -I/opt/X11/include -DXWINDOW -DNOPIXRECT -D$(XVERSION) # $(CLXFLAGS) + +# OPTFLAGS is normally -O2, for INIT we want unoptimized in case we need to debug it +OPTFLAGS = -O0 -g +DISPOPTFLAGS = -O0 -g +FPFLAGS = +DFLAGS = -DFSERROR -DNEW_STORAGE -DMACOSX -DOLD_CURSOR -DUSETERMIOS \ + -DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \ + -DRELEASE=351 -DNOVERSION -DINIT + +LDFLAGS = -L/usr/X11/lib -lX11 -lm +LDELDFLAGS = -L/usr/X11/lib -lX11 -lm + +INLINE = # $(SRCDIR)dspSPARC.il +BITBLTFILE = # $(OBJECTDIR)bbtSPARC.o +BYTESWAPFILES = $(OBJECTDIR)byteswap.o + +OBJECTDIR = ../$(RELEASENAME)/ + +default : ../$(OSARCHNAME)/lde + +############ +# +# Normal compilation for xc.o without optimized dispatch loop hacks +# +############ +$(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(INCDIR)lispemul.h $(INCDIR)emlglob.h \ + $(INCDIR)address.h \ + $(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)lspglob.h \ + $(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \ + $(INCDIR)initatms.h $(INCDIR)gc.h \ + $(INCDIR)arith.h $(INCDIR)stream.h \ + $(INCDIR)tos1defs.h $(INCDIR)tosret.h \ + $(INCDIR)tosfns.h $(INCDIR)inlineC.h + $(CC) $(DISPRFLAGS) -UOPDISP $(SRCDIR)xc.c -I$(INCDIR) -o $(OBJECTDIR)xc.o