Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Makefile for dis
  2. # @(#) Makefile, Ver. 2.1 created 00:00:00 87/09/01
  3. # Makefile for 8088 symbolic disassembler
  4. # Copyright (C) 1987 G. M. Harding, all rights reserved.
  5. # Permission to copy and redistribute is hereby granted,
  6. # provided full source code, with all copyright notices,
  7. # accompanies any redistribution.
  8. # This Makefile automates the process of compiling and linking
  9. # a symbolic object-file disassembler program for the Intel
  10. # 8088 CPU. Relatively machine-independent code is contained in
  11. # the file dismain.c; lookup tables and handler routines, which
  12. # are by their nature machine-specific, are contained in two
  13. # files named distabs.c and dishand.c, respectively. (A third
  14. # machine-specific file, disfp.c, contains handler routines for
  15. # floating-point coprocessor opcodes.) A header file, dis.h,
  16. # attempts to mediate between the machine-specific and machine-
  17. # independent portions of the code. An attempt has been made to
  18. # isolate machine dependencies and to deal with them in fairly
  19. # straightforward ways. Thus, it should be possible to target a
  20. # different CPU by rewriting the handler routines and changing
  21. # the initialization data in the lookup tables. It should not
  22. # be necessary to alter the formats of the tables.
  23. #CC=bcc
  24. CFLAGS=-O
  25. LDFLAGS=
  26. PREFIX=/usr
  27. OBJ = disrel.o dismain.o distabs.o dishand.o disfp.o
  28. all: dis88
  29. dis88: $(OBJ)
  30. $(CC) $(LDFLAGS) -o dis88 $(OBJ)
  31. install: dis88
  32. install -m 755 -s dis88 $(DIST)$(PREFIX)/bin/dis86
  33. install -m 644 dis88.1 $(DIST)$(PREFIX)/man/man1/dis86.1
  34. $(OBJ): dis.h a.out.h
  35. a.out.h:
  36. ln -s ../libc/include/a.out.h .
  37. clean realclean:
  38. rm -f *.bak *.lst *.o core dis88 a.out.h