home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / usr.bin / tn3270 / api / makefile < prev    next >
Encoding:
Makefile  |  1991-04-26  |  1.8 KB  |  94 lines

  1. #    @(#)makefile    4.5 (Berkeley) 4/26/91
  2.  
  3. DEBUG_FLAGS = -g
  4.  
  5. CFLAGS = -I obj ${DEBUG_FLAGS}
  6.  
  7. PRINT = lpr -p
  8.  
  9. KBD    = 3270pc.kbd
  10. KBD    = unix.kbd
  11.  
  12. SRCS = apilib.c api_bsd.c api_exch.c asc_ebc.c astosc.c dctype.c \
  13.         disp_asc.c ebc_disp.c
  14.  
  15. ALLH = apilib.h api_exch.h asc_ebc.h astosc.h disp_asc.h dctype.h ebc_disp.h
  16.  
  17.  
  18. ALLHC=    ${ALLH} ${SRCS}
  19. ALLPRINT =    ${ALLHC}
  20.  
  21. ALLSOURCE = ${ALLPRINT} makefile makefile.mak
  22.  
  23. CLEANFILES =    disp_out asc_disp.out astosc.out disp_asc.out \
  24.         astosc.OUT disp_asc.OUT \
  25.         test* test.o t1* t1.o t2* t2.o
  26.  
  27. LIBDIR    = ${.CURDIR}/obj
  28. LINTLIBDIR    = ${.CURDIR}/obj
  29. LIB    = api
  30.  
  31. .DEFAULT:
  32.     sccs get $<
  33.  
  34. sccsclean:
  35.     -sccs clean
  36.     -sccs get makefile
  37.  
  38. action:
  39.     ${ACTION}
  40.  
  41. test:    apilib.a test.o
  42.     ${CC} ${CFLAGS} -o $@ test.o apilib.a
  43.  
  44. t1:    apilib.a t1.o
  45.     ${CC} ${CFLAGS} -o $@ t1.o apilib.a
  46.  
  47. t2:    apilib.a t2.o
  48.     ${CC} ${CFLAGS} -o $@ t2.o apilib.a
  49.  
  50. print:
  51.     ${PRINT} ${ALLPRINT}
  52.  
  53. clist:    ${SRCS}
  54.     @for i in ${SRCS} ; \
  55.         do (echo ${DIRPATH}$$i); done
  56.  
  57. hclist:    ${ALLHC}
  58.     @for i in ${ALLHC} ; \
  59.         do (echo ${DIRPATH}$$i); done
  60.  
  61. sourcelist:    ${ALLSOURCE}
  62.     @for i in ${ALLSOURCE}; \
  63.         do (echo ${DIRPATH}$$i); done
  64.  
  65. astosc.OUT:    ../ctlr/function.h ../ctlr/hostctlr.h ../ctlr/$(KBD)
  66.     (cd ${.CURDIR}/../tools; make mkastosc )
  67.     -rm $@ astosc.out
  68.     ../tools/mkastosc ${.CURDIR}/../ctlr/hostctlr.h \
  69.         ${.CURDIR}/../ctlr/function.h < \
  70.                 ${.CURDIR}/../ctlr/$(KBD) > $@
  71.     ln $@ astosc.out
  72.  
  73. asc_disp.out:    ebc_disp.o
  74.     (cd ${.CURDIR}/../tools; make mkastods )
  75.     -rm $@
  76.     ../tools/mkastods > $@
  77.  
  78. disp_asc.OUT:    ebc_disp.o
  79.     (cd ${.CURDIR}/../tools; make mkdstoas )
  80.     -rm $@ disp_asc.out
  81.     ../tools/mkdstoas > $@
  82.     ln $@ disp_asc.out
  83.  
  84. # Some special dependencies...
  85. astosc.o:    astosc.OUT
  86. disp_asc.o:    disp_asc.OUT asc_disp.out
  87.  
  88. .MAIN:    myall
  89. # Actually do some work
  90. .include <bsd.lib.mk>
  91.  
  92. myall:    lib${LIB}.a
  93.     ranlib lib${LIB}.a
  94.