home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 10: Diskmags / nf_archive_10.iso / MAGS / PURE_B / PBMAG22A.MSA / MINT095S.ZIP / SRC / MAKEFILE < prev    next >
Text File  |  1987-04-22  |  2KB  |  80 lines

  1. #
  2. # Makefile for MiNT using the GCC
  3. #
  4. #for 16 bit integers ONLY
  5. MODEL = -mshort
  6. LIBS = -liio16
  7.  
  8. CC = gcc
  9.  
  10. DEFS = -DFASTTEXT -DZEROEXIT -DOWN_LIB
  11.  
  12. #
  13. # if you have an older version of gcc, it won't understand -G;
  14. # that won't hurt anything (it just controls the format of the
  15. # symbol table) so just delete the -G. Do *not* change it into
  16. # -g!!!
  17. #
  18. CFLAGS = -G -Wall -O -fomit-frame-pointer $(MODEL) $(DEFS)
  19.  
  20. #
  21. # directory where the .s files reside, plus a trailing slash.
  22. # You may need to change this to 'gas\\' or 'gas\', depending
  23. # on your version of make.
  24.  
  25. ASM=gas/
  26.  
  27.  
  28. COBJS = bios.o xbios.o console.o dos.o dosdir.o dosfile.o dosmem.o dossig.o \
  29.     filesys.o main.o mem.o proc.o signal.o timeout.o tty.o util.o \
  30.     biosfs.o pipefs.o procfs.o tosfs.o debug.o rendez.o \
  31.     unifs.o shmfs.o fasttext.o
  32.  
  33. CSRCS = bios.c xbios.c console.c dos.c dosdir.c dosfile.c dosmem.c dossig.c \
  34.     filesys.c main.c mem.c proc.c signal.c timeout.c tty.c util.c \
  35.     biosfs.c pipefs.c procfs.c tosfs.c debug.c rendez.c \
  36.     unifs.c shmfs.c fasttext.c
  37.  
  38. SOBJS = context.o intr.o syscall.o quickzer.o quickmov.o
  39.  
  40. OBJS = $(COBJS) $(SOBJS)
  41.  
  42. mint.prg: $(OBJS)
  43.     $(CC) $(CFLAGS) -o mint.prg $(OBJS) $(LIBS)
  44.  
  45. $(SOBJS): proc.h
  46. $(COBJS): mint.h proc.h file.h
  47.  
  48. main.o: version.h
  49.  
  50. #
  51. # assembler source files reside in their own directory, so that
  52. # different compilers are easily accounted for
  53. #
  54.  
  55. context.o: $(ASM)context.s
  56.     $(CC) -c $(ASM)context.s -o context.o
  57.  
  58. intr.o: $(ASM)intr.s
  59.     $(CC) -c $(ASM)intr.s -o intr.o
  60.  
  61. syscall.o: $(ASM)syscall.s
  62.     $(CC) -c $(ASM)syscall.s -o syscall.o
  63.  
  64. quickzer.o: $(ASM)quickzer.s
  65.     $(CC) -c $(ASM)quickzer.s -o quickzer.o
  66.  
  67. quickmov.o: $(ASM)quickmov.s
  68.     $(CC) -c $(ASM)quickmov.s -o quickmov.o
  69.  
  70. #
  71. # mkptypes generates prototypes from C source code. If you don't have it,
  72. # you'll have to add/delete function prototypes by hand.
  73. # also: Sozobon users will have to edit proto.h by hand to change the
  74. #    #if defined(__STDC__) || defined(__cplusplus)
  75. # line into
  76. #    #if __STDC__
  77. #
  78. proto.h: $(CSRCS)
  79.     mkptypes $(CSRCS) >proto.h
  80.