home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / HARDDISK / BOOTM13.ZIP / MAKEFILE < prev    next >
Encoding:
Text File  |  1990-12-17  |  1.7 KB  |  67 lines

  1. # This makefile supports all UNIX-like systems.
  2. # Uncomment one of the SYS definitions below, or
  3. # use a make command like:
  4. #    make SYS=esix
  5. # (For compiling on MS-DOS, see make_msc.bat)
  6. # (To compile on Minix, use:  make minix)
  7. #
  8. # Uncomment for ESIX  Sys.V/386 Rel. 3.2
  9. #SYS=esix
  10. # Uncomment for other Sys.V/386 systems (ISC,SCO,Intel...)
  11. #SYS=i386
  12. # Uncomment for MSDOS with UNIX-style make (i.e. ndmake)
  13. #SYS=msdos
  14. # Uncomment for other UNIX-like systems
  15. SYS=unix
  16.  
  17. # Compilation options:
  18. CC=cc
  19. CFLAGS=-g
  20.  
  21. FILES1=    README pfdisk.man Changes Makefile pfdisk.c syscodes.c \
  22.  syscodes.h sysdep.h s_esix.c s_i386.c s_unix.c s_msdos.c
  23. FILES2= bootmenu.doc pfdisk.doc SStor.txt bootmenu.asm bootauto.asm \
  24.  asm2bin.bat make_msc.bat bootmenu.hex bootauto.hex hex2bin.c
  25.  
  26. OBJS= pfdisk.o syscodes.o s_$(SYS).o
  27. LSRC= pfdisk.c syscodes.c s_$(SYS).c
  28.  
  29. test: pfdisk
  30.     (echo "g 1222 15 34";\
  31.      echo "1  4   0  127 MS-LOSS";\
  32.      echo "4 99 128 1221 ESIX";\
  33.      echo "a 4"; echo l; echo wq \
  34.     ) | pfdisk /dev/null
  35.  
  36. all: pfdisk bootmenu.bin bootauto.bin
  37.  
  38. pfdisk: $(OBJS)
  39.     $(CC) $(CFLAGS) -o $@ $(OBJS)
  40.  
  41. minix: bootmenu.bin bootauto.bin
  42.     $(CC) $(CFLAGS) -o pfdisk $(LSRC)
  43.  
  44. pfdisk.o : syscodes.h sysdep.h
  45. syscodes.o : syscodes.h
  46. s_$(SYS).o : sysdep.h
  47.  
  48. lint: $(LSRC)
  49.     lint $(CFLAGS) $(LSRC)
  50.  
  51. bootmenu.bin: hex2bin
  52.     hex2bin <bootmenu.hex >bootmenu.bin
  53. bootauto.bin: hex2bin
  54.     hex2bin <bootauto.hex >bootauto.bin
  55.  
  56. pfdisk.doc: pfdisk.man
  57.     nroff tmac.an pfdisk.man |col -bh >pfdisk.doc
  58.  
  59. clean:
  60.     rm -f *.o
  61.  
  62. Shar1.out: Head1.txt $(FILES1)
  63.     (cat Head1.txt ; shar -v -c $(FILES1)) > $@
  64. Shar2.out: Head2.txt $(FILES2)
  65.     (cat Head2.txt ; shar -v -c $(FILES2)) > $@
  66.  
  67.