home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / mint / mint095s / makefile.lcc < prev    next >
Makefile  |  1993-08-03  |  3KB  |  86 lines

  1. #
  2. # Makefile for MiNT using the LCC
  3. #
  4. #for 16 bit integers ONLY
  5. MODEL = -w -b0 -r0 -bn -aw
  6. LIBS =
  7. DEFS = -DFASTTEXT -DZEROEXIT -DOWN_LIB
  8. SYMS = -Hmint.sym
  9. OPTS = -d1 -Oloop -v -cfs -cag
  10.  
  11. # 30    - pointers do not point to same type of object
  12. # 86    - formal definitions conflict with type list
  13. # 100    - no prototype declared for function
  14. # 104    - conversion from pointer to const/volatile to pointer to non-const/volatile
  15. # 135    - assignment to shorter data type (precision may be lost)
  16. # 154    - no prototype declared for function pointer
  17. ERRORS = -j30e86e100e104e135i154e
  18.  
  19. CC = lcc
  20. CFLAGS =  $(OPTS) $(MODEL) $(DEFS) $(ERRORS) $(SYMS)
  21. ASFLAGS = -m3 -m8
  22. LDFLAGS = -t=
  23.  
  24. #
  25. # directory where the .s files reside; do _not_ include the trailing slash
  26. #
  27.  
  28. ASM=asm
  29.  
  30. COBJS = main.o bios.o xbios.o console.o dos.o dosdir.o dosfile.o dosmem.o \
  31.     dossig.o filesys.o mem.o proc.o signal.o timeout.o tty.o util.o \
  32.     biosfs.o pipefs.o procfs.o tosfs.o debug.o rendez.o \
  33.     unifs.o shmfs.o fasttext.o
  34.  
  35. CSRCS = main.c bios.c xbios.c console.c dos.c dosdir.c dosfile.c dosmem.c \
  36.     dossig.c filesys.c mem.c proc.c signal.c timeout.c tty.c util.c \
  37.     biosfs.c pipefs.c procfs.c tosfs.c debug.c rendez.c \
  38.     unifs.c shmfs.c fasttext.c
  39.  
  40. SOBJS = context.o intr.o syscall.o quickzer.o quickmov.o
  41.  
  42. OBJS = $(COBJS) $(SOBJS)
  43.  
  44. mint.prg: $(OBJS)
  45.     $(CC) $(CFLAGS) -o mint.prg $(LDFLAGS) $(OBJS) $(LIBS)
  46.  
  47. $(SOBJS): proc.h
  48. $(COBJS): mint.sym
  49.  
  50. main.o: version.h
  51.  
  52. mint.sym: mint.h ctype.h assert.h atarierr.h basepage.h types.h \
  53.     signal.h mem.h proc.h file.h
  54.     $(CC) $(OPTS) $(MODEL) $(DEFS) $(ERRORS) -ph -o mint.sym mint.h
  55.  
  56. #
  57. # assembler source files reside in their own directory, so that
  58. # different compilers are easily accounted for
  59. #
  60.  
  61. context.o: $(ASM)\context.s
  62.     $(AS) $(ASFLAGS) -ocontext.o $(ASM)\context.s 
  63.  
  64. intr.o: $(ASM)\intr.s
  65.     $(AS) $(ASFLAGS) -ointr.o $(ASM)\intr.s
  66.  
  67. syscall.o: $(ASM)\syscall.s
  68.     $(AS) $(ASFLAGS) -osyscall.o $(ASM)\syscall.s
  69.  
  70. quickzer.o: $(ASM)\quickzer.s
  71.     $(AS) $(ASFLAGS) -oquickzer.o $(ASM)\quickzer.s
  72.  
  73. quickmov.o: $(ASM)\quickmov.s
  74.     $(AS) $(ASFLAGS) -oquickmov.o $(ASM)\quickmov.s
  75.  
  76. #
  77. # For building proto.h using Lattice we use the compiler option to
  78. # generate them for external functions only. We also ask it to protect
  79. # the prototypes with __PROTO; we could then sed __PROTO references into
  80. # P_ ones (but don't at the moment).
  81. #
  82. proto.h: $(CSRCS)
  83.     $(CC) -pep $(CFLAGS) $(CSRCS)
  84.     cat $(CSRCS:.c=.i) >proto.h
  85.     rm $(CSRCS:.c=.i)
  86.