home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 1 / GoldFishApril1994_CD1.img / d1xx / d169 / src / dres / core / makefile < prev    next >
Makefile  |  1988-11-22  |  2KB  |  81 lines

  1.  
  2. #   Makefile for DRES.LIBRARY,        AZTEC C 3.6a
  3. #
  4. #   NOTE:   You must have previously create the directory 'local' in your
  5. #        C include's directory and placed the distribution include/local
  6. #        directory there.  The libref program must also have been compiled
  7.  
  8. SYMS=    include:symbols.m
  9. SYMC=    include:local/makesymbols.c
  10. CFLAGS= +BCDLp +I$(SYMS)
  11. LREXE=    srcc:libref
  12.  
  13. SRC0=    library.c
  14. SRC1=    libtag.asm
  15. SRC2=    /src/misc.c
  16. SRC3=    /src/qint.asm
  17. SRC4=    /src/lists.asm
  18. SRC5=    /src/mem.asm
  19. SRC6=    /src/timedate.c
  20. SRC7=    /src/ipc.c
  21. SRC8=    /src/res.c
  22.  
  23. OBJ0=    vd0:library.o
  24. OBJ1=    vd0:libtag.o
  25. OBJ2=    vd0:misc.o
  26. OBJ3=    vd0:qint.o
  27. OBJ4=    vd0:lists.o
  28. OBJ5=    vd0:mem.o
  29. OBJ6=    vd0:timedate.o
  30. OBJ7=    vd0:ipc.o
  31. OBJ8=    vd0:res.o
  32.  
  33. OBJS=    $(OBJ0) $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7)
  34.  
  35. all:  $(SYMS) $(LREXE) hlib $(OBJS)
  36.     ln    +Q $(OBJS) -ldres -lcl32 -o libs:dres.library
  37.  
  38. hlib:
  39.     libref
  40.     assign this: /core
  41.     cd ram:
  42.     make
  43.     cd this:
  44.     assign this:
  45.  
  46. $(OBJ0): $(SRC0)
  47.     cc    $(CFLAGS) $(SRC0) -o $(OBJ0)
  48.  
  49. $(OBJ1): $(SRC1)
  50.     as    $(SRC1) -o $(OBJ1)
  51.  
  52. $(OBJ2): $(SRC2)
  53.     cc    $(CFLAGS) $(SRC2) -o $(OBJ2)
  54.  
  55. $(OBJ3): $(SRC3)
  56.     as    $(SRC3) -o $(OBJ3)
  57.  
  58. $(OBJ4): $(SRC4)
  59.     as    $(SRC4) -o $(OBJ4)
  60.  
  61. $(OBJ5): $(SRC5)
  62.     as    $(SRC5) -o $(OBJ5)
  63.  
  64. $(OBJ6): $(SRC6)
  65.     cc $(CFLAGS) $(SRC6) -o $(OBJ6)
  66.  
  67. $(OBJ7): $(SRC7)
  68.     cc $(CFLAGS) $(SRC7) -o $(OBJ7)
  69.  
  70. $(OBJ8): $(SRC8)
  71.     cc $(CFLAGS) $(SRC8) -o $(OBJ8)
  72.  
  73. $(SYMS):    $(SYMC)
  74.     make -f include:local/Makefile
  75.  
  76. $(LREXE):   /libref.c
  77.     cc +L +I$(SYMS) /libref.c -o T:libref.o
  78.     ln +Q T:libref.o -lsup32 -lc32 -o $(LREXE)
  79.     delete T:libref.o
  80.  
  81.