home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-08-03 | 2.4 KB | 86 lines |
- #
- # Makefile for MiNT using the LCC
- #
- #for 16 bit integers ONLY
- MODEL = -w -b0 -r0 -bn -aw
- LIBS =
- DEFS = -DFASTTEXT -DZEROEXIT -DOWN_LIB
- SYMS = -Hmint.sym
- OPTS = -d1 -Oloop -v -cfs -cag
-
- # 30 - pointers do not point to same type of object
- # 86 - formal definitions conflict with type list
- # 100 - no prototype declared for function
- # 104 - conversion from pointer to const/volatile to pointer to non-const/volatile
- # 135 - assignment to shorter data type (precision may be lost)
- # 154 - no prototype declared for function pointer
- ERRORS = -j30e86e100e104e135i154e
-
- CC = lcc
- CFLAGS = $(OPTS) $(MODEL) $(DEFS) $(ERRORS) $(SYMS)
- ASFLAGS = -m3 -m8
- LDFLAGS = -t=
-
- #
- # directory where the .s files reside; do _not_ include the trailing slash
- #
-
- ASM=asm
-
- COBJS = main.o bios.o xbios.o console.o dos.o dosdir.o dosfile.o dosmem.o \
- dossig.o filesys.o mem.o proc.o signal.o timeout.o tty.o util.o \
- biosfs.o pipefs.o procfs.o tosfs.o debug.o rendez.o \
- unifs.o shmfs.o fasttext.o
-
- CSRCS = main.c bios.c xbios.c console.c dos.c dosdir.c dosfile.c dosmem.c \
- dossig.c filesys.c mem.c proc.c signal.c timeout.c tty.c util.c \
- biosfs.c pipefs.c procfs.c tosfs.c debug.c rendez.c \
- unifs.c shmfs.c fasttext.c
-
- SOBJS = context.o intr.o syscall.o quickzer.o quickmov.o
-
- OBJS = $(COBJS) $(SOBJS)
-
- mint.prg: $(OBJS)
- $(CC) $(CFLAGS) -o mint.prg $(LDFLAGS) $(OBJS) $(LIBS)
-
- $(SOBJS): proc.h
- $(COBJS): mint.sym
-
- main.o: version.h
-
- mint.sym: mint.h ctype.h assert.h atarierr.h basepage.h types.h \
- signal.h mem.h proc.h file.h
- $(CC) $(OPTS) $(MODEL) $(DEFS) $(ERRORS) -ph -o mint.sym mint.h
-
- #
- # assembler source files reside in their own directory, so that
- # different compilers are easily accounted for
- #
-
- context.o: $(ASM)\context.s
- $(AS) $(ASFLAGS) -ocontext.o $(ASM)\context.s
-
- intr.o: $(ASM)\intr.s
- $(AS) $(ASFLAGS) -ointr.o $(ASM)\intr.s
-
- syscall.o: $(ASM)\syscall.s
- $(AS) $(ASFLAGS) -osyscall.o $(ASM)\syscall.s
-
- quickzer.o: $(ASM)\quickzer.s
- $(AS) $(ASFLAGS) -oquickzer.o $(ASM)\quickzer.s
-
- quickmov.o: $(ASM)\quickmov.s
- $(AS) $(ASFLAGS) -oquickmov.o $(ASM)\quickmov.s
-
- #
- # For building proto.h using Lattice we use the compiler option to
- # generate them for external functions only. We also ask it to protect
- # the prototypes with __PROTO; we could then sed __PROTO references into
- # P_ ones (but don't at the moment).
- #
- proto.h: $(CSRCS)
- $(CC) -pep $(CFLAGS) $(CSRCS)
- cat $(CSRCS:.c=.i) >proto.h
- rm $(CSRCS:.c=.i)
-