home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 3 / FREEWARE.BIN / towns_os / fildlg33 / makefile < prev    next >
Makefile  |  1980-01-02  |  2KB  |  79 lines

  1. #    makefile for FILEDLG
  2. #        Dec.18,1990(Tue) 01:11:07
  3.  
  4. #-----    ファイル定義    -----#
  5. NAME    = filedlg
  6. HDRS    = filedlg.h button.h display.h mouse.h msdos.h oaklib.h romcpy.h setup.h txtentry.h
  7. SRCS    = main.c filedlg.c button.c display.c mouse.c msdos.c txtentry.c
  8. ASMS    = oaklib.asm romcpy.asm setup.asm
  9. OBJ1    = oaklib.obj main.obj filedlg.obj button.obj display.obj mouse.obj msdos.obj txtentry.obj
  10. OBJ2    = romcpy.obj
  11. OBJS    = $(OBJ1) $(OBJ2)
  12. TARGET    = main.exp
  13. FPF    = update.fpf readme.fpf
  14. DOC    = update.doc readme.doc
  15.  
  16. #-----    環境定義    -----#
  17. LFLAGS    = -exe $(TARGET) -tc -sym -pack -stack 130000 -callbufs 1 -realb end_real
  18. LLIBS    = -lib $(HCLIB)hce $(HCLIB)tbios
  19. PRINT    = lbpc
  20.  
  21. .SUFFIXES:    .c .asm .fpf
  22.  
  23. .c.obj    :
  24.     hc386 $< -off Floating_point -tmpi1 $(TMP)\tmpi1 -tmpi2 $(TMP)\tmpi2 -tmptp $(TMP)\tmptp
  25.  
  26. .asm.obj:
  27.     386asm $< -tc
  28.  
  29. .fpf.doc:
  30.     fplf -a doc -f $<
  31.  
  32. #=====        : make executable files
  33. $(TARGET)    : $(OBJS)
  34.     echo $(LLIBS)        > link.i
  35.     echo $(LFLAGS)        >> link.i
  36.     echo $(OBJ1)        >> link.i
  37.     echo $(OBJ2)        >> link.i
  38.     386link @link.i
  39.     del link.i
  40.  
  41. main.obj    : filedlg.h display.h mouse.h
  42.  
  43. filedlg.obj    : filedlg.h button.h display.h mouse.h msdos.h oaklib.h txtentry.h
  44.  
  45. display.obj    : display.h
  46.  
  47. mouse.obj    : mouse.h romcpy.h
  48.  
  49. button.obj    : button.h display.h mouse.h
  50.  
  51. msdos.obj    : msdos.h
  52.  
  53. txtentry.obj    : display.h msdos.h txtentry.h
  54.  
  55. #=====    print    : print files
  56. print    : $(HDRS) $(SRCS) $(ASMS) $(DOC) makefile
  57.     -$(PRINT) $? -d 1
  58.     @touch print
  59.  
  60. #=====    doc    : format document
  61. doc    : $(DOC)
  62.  
  63. #=====    lharc    : make archive file
  64. lharc    : $(HDRS) $(SRCS) $(ASMS) $(FPF) $(DOC) makefile
  65.     lharc u $(NAME) $(HDRS)
  66.     lharc u $(NAME) $(SRCS)
  67.     lharc u $(NAME) $(ASMS) $(FPF) $(DOC) makefile
  68.     lharc u $(NAME) $(TARGET)
  69.  
  70. #=====    clean    : delete temporary files
  71. clean    :
  72.     del *.bak
  73.     del *.obj
  74.  
  75. #=====    help    : help message
  76. help    :
  77.     @sed -n -e 's/^.=====[\t ]/   make /p' makefile
  78.  
  79.