--- MiNT/src/makefile 2018/04/24 17:57:00 1.1.1.4 +++ MiNT/src/makefile 2018/04/24 17:58:33 1.1.1.6 @@ -84,13 +84,13 @@ LIBS = -liio16 # add -DDEBUG_INFO for debugging information +# add -DFASTTEXT for the u:\dev\fasttext fast console driver -DEFS = -DMULTITOS -DDEBUG_INFO -#DEFS030 = -DMULTITOS -DONLY030 +DEFS = -DDEBUG_INFO -DEFS030 = -DONLY030 +#DEFS030 = -DONLY030 @@ -106,11 +106,11 @@ DEFS030 = -DONLY030 # -CFLAGS = -G -Wall -O2 -fomit-frame-pointer $(MODEL) $(DEFS) +CFLAGS = -G -Wall -Wmissing-prototypes -O2 -fomit-frame-pointer $(MODEL) $(DEFS) ASFLAGS = $(MODEL) -CFLAGS030 = -G -Wall -O2 -fomit-frame-pointer $(MODEL030) $(DEFS030) +CFLAGS030 = -G -Wall -Wmissing-prototypes -O2 -fomit-frame-pointer $(MODEL030) $(DEFS030) ASFLAGS030 = $(MODEL030) @@ -146,9 +146,9 @@ CFILES = bios.c xbios.c console.c dos.c -HFILES = assert.h atarierr.h basepage.h cookie.h ctype.h fasttext.h \ +HFILES = assert.h atarierr.h basepage.h cookie.h ctype.h debug.h fasttext.h \ - file.h inline.h mem.h mint.h proc.h proto.h signal.h sproto.h \ + file.h inline.h loadave.h mem.h mint.h proc.h proto.h signal.h sproto.h \ types.h version.h xbra.h @@ -180,9 +180,7 @@ mint.prg: $(OBJS) $(CC) $(CFLAGS) -o mint.prg $(OBJS) $(LIBS) - prgflags 7 7 mint.prg - - strip mint.prg +# strip mint.prg @@ -190,21 +188,19 @@ mint030.prg: $(OBJS030) $(CC) $(CFLAGS030) -o mint030.prg $(OBJS030) $(LIBS) - prgflags 7 7 mint030.prg - - strip mint030.prg +# strip mint030.prg $(SOBJS): proc.h -$(COBJS): mint.h proc.h file.h +$(COBJS): mint.h proc.h file.h debug.h $(SOBJS030): proc.h -$(COBJS030): mint.h proc.h file.h +$(COBJS030): mint.h proc.h file.h debug.h @@ -214,6 +210,8 @@ welcome.o: version.h bios.o: inline.h +proc.o dos.o: loadave.h + memprot.o: memprot.c mint.h proc.h file.h @@ -228,6 +226,8 @@ welcome.o0: version.h bios.o0: inline.h +proc.o0 dos.o0: loadave.h + # @@ -268,7 +268,7 @@ ATRANSOBJ = asmtab.o trutil.o trans.o ATRANS = asmtrans.ttp -ATRANSSRC = asm.y amstab.c asmtab.h asmtrans.h trutil.c trans.c +ATRANSSRC = asm.y asmtab.c asmtab.h asmtrans.h trutil.c trans.c @@ -312,11 +312,27 @@ asmtab.c asmtab.h: asm.y # the magic number include file is generated automagically +# + # NOTE that of course, magic.i can only reliably be generated # on an Atari ST; if you're cross-compiling, you'll have -# to edit magic.i by hand +# to edit magic.i by hand (unless your machine's native compiler + +# happens to generate exactly the same offsets for structures as + +# its Atari cross compiler, which is *extremely* unlikely). + +# magic.i only needs to be updated if the structures in proc.h + +# change; otherwise, you can use the supplied magic.i. + +# If you do need to generate a new magic.i, cross-compile genmagic.ttp, + +# run it on an ST, and bring the output back to your cross compiler. + +# # for cross compilers; uncomment the following definitions @@ -468,7 +484,7 @@ realclean: # -MISCFILES = copying readme changes makefile makefile.lcc mintlc.prj \ +MISCFILES = copying readme.src changes makefile makefile.lcc mintlc.prj \ genmagic.c purec asmtrans.ttp