home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 332.lha / DAsm_v2.12 / src / Makefile < prev    next >
Makefile  |  1989-12-27  |  2KB  |  74 lines

  1.  
  2. #   DASM    -small systems cross assembler.  The source is compilable on
  3. #         Amiga's, UNIX systems, and IBM-PCs with the appropriate
  4. #         #define in asm.h (no #define == Amiga).  some functions from
  5. #         my amiga support library are needed (or write your own)
  6. #
  7. #   (C)Copyright 1988-1989 Matthew Dillon, All Rights Reserved.
  8. #
  9. #   This Makefile is for AZTEC C on an Amiga.
  10. #
  11.  
  12. DASM   = srcc:dasm
  13. FTOHEX = srcc:ftohex
  14. OD     = T:
  15.  
  16. CFLAGS= +L
  17.  
  18. SRC1= main.c
  19. SRC2= ops.c
  20. SRC3= globals.c
  21. SRC4= exp.c
  22. SRC5= symbols.c
  23. SRC6= mne6303.c
  24. SRC7= mne6502.c
  25. SRC8= mne68705.c
  26. SRC9= mne6811.c
  27.  
  28. OBJ1= $(OD)main.o
  29. OBJ2= $(OD)ops.o
  30. OBJ3= $(OD)globals.o
  31. OBJ4= $(OD)exp.o
  32. OBJ5= $(OD)symbols.o
  33. OBJ6= $(OD)mne6303.o
  34. OBJ7= $(OD)mne6502.o
  35. OBJ8= $(OD)mne68705.o
  36. OBJ9= $(OD)mne6811.o
  37.  
  38. OBJS= $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8) $(OBJ9)
  39. SRCS= $(SRC1) $(SRC2) $(SRC3) $(SRC4) $(SRC5) $(SRC6) $(SRC7) $(SRC8) $(SRC9)
  40.  
  41. all: $(DASM) $(FTOHEX)
  42.  
  43. $(DASM): $(OBJS)
  44.     ln -W +Q $(OBJS) -lsup32 -lc32 -O $(DASM)
  45.  
  46. $(FTOHEX): ftohex.c
  47.     cc $(CFLAGS) ftohex.c -o T:ftohex.o
  48.     ln +Q T:ftohex.o -lsup32 -lc32 -O $(FTOHEX)
  49.     delete T:ftohex.o
  50.  
  51. example:
  52.     dasm example.asm -oram:example.out -lram:example.list -f2
  53.     ftohex 2 ram:example.out ram:example.hex
  54.  
  55. $(OBJ1):    $(SRC1)
  56.     cc $(CFLAGS) $(SRC1) -o $(OBJ1)
  57. $(OBJ2):    $(SRC2)
  58.     cc $(CFLAGS) $(SRC2) -o $(OBJ2)
  59. $(OBJ3):    $(SRC3)
  60.     cc $(CFLAGS) $(SRC3) -o $(OBJ3)
  61. $(OBJ4):    $(SRC4)
  62.     cc $(CFLAGS) $(SRC4) -o $(OBJ4)
  63. $(OBJ5):    $(SRC5)
  64.     cc $(CFLAGS) $(SRC5) -o $(OBJ5)
  65. $(OBJ6):    $(SRC6)
  66.     cc $(CFLAGS) $(SRC6) -o $(OBJ6)
  67. $(OBJ7):    $(SRC7)
  68.     cc $(CFLAGS) $(SRC7) -o $(OBJ7)
  69. $(OBJ8):    $(SRC8)
  70.     cc $(CFLAGS) $(SRC8) -o $(OBJ8)
  71. $(OBJ9):    $(SRC9)
  72.     cc $(CFLAGS) $(SRC9) -o $(OBJ9)
  73.  
  74.