home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / nasm097s.zip / MAKEFILE.DJ < prev    next >
Text File  |  1997-11-21  |  3KB  |  82 lines

  1. # host: dos
  2. # target: dos 32bit
  3. # Makefile for the Netwide Assembler
  4. #
  5. # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
  6. # Julian Hall. All rights reserved. The software is
  7. # redistributable under the licence given in the file "Licence"
  8. # distributed in the NASM archive.
  9.  
  10. # makefile designed for djgpp 2.xx
  11. # djgpp is GNU C compiler ported by mighty DJ Delorie
  12. # www.delorie.com and any simtel mirror
  13.  
  14. # You may need to adjust these values.
  15.  
  16. CC = gcc
  17. CFLAGS = -O2 -I.
  18.  
  19. # You _shouldn't_ need to adjust anything below this line.
  20.  
  21. .c.o:
  22.     $(CC) -c $(CFLAGS) $*.c
  23.  
  24. NASM = nasm.o nasmlib.o float.o insnsa.o assemble.o labels.o \
  25.        parser.o outform.o outbin.o outaout.o outcoff.o outelf.o \
  26.        outobj.o outas86.o outrdf.o outdbg.o preproc.o listing.o \
  27.        eval.o
  28.  
  29. NDISASM = ndisasm.o disasm.o sync.o nasmlib.o insnsd.o
  30.  
  31. all: nasm.exe ndisasm.exe
  32.  
  33. nasm.exe: $(NASM)
  34.     $(CC) -o $@ $(NASM)
  35.  
  36. ndisasm.exe: $(NDISASM)
  37.     $(CC) -o $@ $(NDISASM)
  38.  
  39. assemble.o: assemble.c nasm.h nasmlib.h assemble.h insns.h
  40. disasm.o: disasm.c nasm.h disasm.h sync.h insns.h names.c
  41. eval.o: eval.c eval.h nasm.h nasmlib.h
  42. float.o: float.c nasm.h
  43. insnsa.o: insnsa.c nasm.h insns.h
  44. insnsd.o: insnsd.c nasm.h insns.h
  45. labels.o: labels.c nasm.h nasmlib.h
  46. listing.o: listing.c nasm.h nasmlib.h listing.h
  47. nasm.o: nasm.c nasm.h nasmlib.h preproc.h parser.h assemble.h labels.h \
  48.  outform.h listing.h
  49. nasmlib.o: nasmlib.c nasm.h nasmlib.h
  50. ndisasm.o: ndisasm.c nasm.h nasmlib.h sync.h disasm.h
  51. outaout.o: outaout.c nasm.h nasmlib.h outform.h
  52. outas86.o: outas86.c nasm.h nasmlib.h outform.h
  53. outbin.o: outbin.c nasm.h nasmlib.h outform.h
  54. outcoff.o: outcoff.c nasm.h nasmlib.h outform.h
  55. outdbg.o: outdbg.c nasm.h nasmlib.h outform.h
  56. outelf.o: outelf.c nasm.h nasmlib.h outform.h
  57. outform.o: outform.c outform.h nasm.h
  58. outobj.o: outobj.c nasm.h nasmlib.h outform.h
  59. outrdf.o: outrdf.c nasm.h nasmlib.h outform.h
  60. parser.o: parser.c nasm.h nasmlib.h parser.h float.h names.c
  61. preproc.o: preproc.c nasm.h nasmlib.h macros.c
  62. sync.o: sync.c sync.h
  63.  
  64. # These two source files are automagically generated from a single
  65. # instruction-table file by a Perl script. They're distributed,
  66. # though, so it isn't necessary to have Perl just to recompile NASM
  67. # from the distribution.
  68.  
  69. insnsa.c insnsd.c: insns.dat insns.pl
  70.     perl insns.pl insns.dat
  71.  
  72. # This source file is generated from the standard macros file
  73. # `standard.mac' by another Perl script. Again, it's part of the
  74. # standard distribution.
  75.  
  76. macros.c: standard.mac macros.pl
  77.     perl macros.pl standard.mac
  78.  
  79. clean:
  80.     rm -f *.o nasm ndisasm
  81.  
  82.