home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pp / pp-6.0 / Src / MTAconsole / Makefile < prev    next >
Encoding:
Makefile  |  1991-12-18  |  5.1 KB  |  227 lines

  1. # Makefile for MTA console - x version
  2. #
  3. ############################################################
  4. #
  5. # @(#) $Header: /xtel/pp/pp-beta/Src/MTAconsole/RCS/Makefile,v 6.0 1991/12/18 20:26:48 jpo Rel $
  6. #
  7. # $Log: Makefile,v $
  8. # Revision 6.0  1991/12/18  20:26:48  jpo
  9. # Release 6.0
  10. #
  11. #
  12. ############################################################
  13. #
  14. # Definitions
  15. #
  16. ############################################################
  17.  
  18.  
  19.  
  20. SRCS =  assoc.c auto.c badness.c bops.c create.c data.c \
  21.        display.c drive.c misc.c ops.c parse.c popup.c workops.c
  22. # WidgetWrap.c
  23. OBJS =  assoc.o auto.o badness.o bops.o create.o data.o \
  24.        display.o drive.o misc.o ops.o parse.o popup.o workops.o 
  25. #       WidgetWrap.o 
  26. # DO NOT DELETE THIS LINE MAKE DEFINE NEEDS IT
  27.  
  28.  
  29. HEADERS = ../../h 
  30. LIBPP   = ../../Lib/libpp.a
  31. LM    = #/crg/users/jpo/tmp/malloc_debug/libmalloc.a
  32. INCLUDE = -I$(HEADERS)
  33.  
  34. CFLAGS  = $(CCOPTIONS) $(LCF) $(INCLUDE) 
  35. LDFLAGS = $(LDOPTIONS) $(LLF)
  36. LLFLAGS = $(LINTFLAGS) -u $(INCLUDE) #-DXAW_BC 
  37. LINTLIBS = $(LINTISODE) ../../Lib/llib-lpp.ln $(LINTX)
  38.  
  39. PROGS = xconsole
  40.  
  41. ############################################################
  42. #
  43. # Building Rules
  44. #
  45. ############################################################
  46.  
  47. default: default-$(X11)
  48.  
  49. default-true: $(PROGS)
  50.  
  51. default-false default-:; @echo "X11 not defined so not builing the MTAconsole"
  52.  
  53. ############################################################
  54. #
  55. # Console
  56. #
  57. ############################################################
  58.  
  59. console: xconsole
  60. display.o: back.bit
  61. badness.o: tai_defs.inc
  62.  
  63. saber_src: $(SRCS)
  64.     #load -C $(CFLAGS) $(SRCS) $(LIBPP) $(LIBSYS) $(LIBX) $(LM)
  65.  
  66. saber_obj: $(OBJS)
  67.     #load -C $(OBJS) $(LIBPP) $(LIBSYS) $(LIBX) $(LM)
  68.  
  69. xconsole: $(OBJS) $(LIBPP)
  70.     $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LM)\
  71.         $(LIBPP) $(LIBSYS) \
  72.         $(LIBX) $(LM)
  73.  
  74. ############################################################
  75. #
  76. # Misc stuff
  77. #
  78. ############################################################
  79.  
  80. install: install-$(X11)
  81.  
  82. install- install-false:; @echo "X11 not defined so not installing MTAconsole"
  83.  
  84. install-true: inst-dir inst-MTAconsole;
  85.  
  86. inst-MTAconsole: $(CMDDIR)/MTAconsole $(APPDEFAULTS)/Mtaconsole
  87.  
  88. $(CMDDIR)/MTAconsole: xconsole
  89.     -$(BACKUP) $@ zxconsole
  90.     rm -f $@
  91.     $(INSTALL) xconsole $@
  92.     -$(CHMOD) $(PGMPROT) $@
  93.     -$(CHOWN) $(PPUSER) $@
  94.     -@ls -ls $@
  95.     -@echo "MTAconsole installed normally"; echo ""
  96.  
  97. $(APPDEFAULTS)/Mtaconsole: Mtaconsole.ad
  98.     -$(BACKUP) $@ zMtaconsole.ad
  99.     rm -rf $@
  100.     $(INSTALL) Mtaconsole.ad $@
  101.     -$(CHMOD) 444 $@
  102.     -$(CHOWN) $(ROOTUSER) $@
  103.     -@ls -ls $@
  104.     -@echo "MTAconsole application defaults installed normally"; echo ""
  105.  
  106. inst-dir: $(CMDDIR)
  107.  
  108. clean:  tidy
  109.     rm -f $(OBJS)
  110.  
  111. tidy:
  112.     rm -f core a.out *.old $(PROGS) zxconsole
  113.  
  114.  
  115. lint: l-console
  116.  
  117. l-console: $(SRCS) true
  118.     $(LINT) $(LLFLAGS) $(SRCS) $(LINTLIBS)
  119.  
  120. define:
  121.     $(DEFINE) Makefile
  122.  
  123. depend:
  124.     $(DEPEND) $(INCLUDE) $(SRCS)
  125.  
  126. true:;
  127.  
  128. ############################################################
  129. #
  130. # End of Building Rules
  131. #
  132. ############################################################
  133.  
  134. # DO NOT DELETE THIS LINE MAKE DEPEND NEEDS IT
  135. # Dependencies follow
  136. assoc.o: assoc.c
  137. assoc.o: ../../h/util.h
  138. assoc.o: ../../h/config.h
  139. assoc.o: ../../h/ll_log.h
  140. assoc.o: console.h
  141. assoc.o: ../../h/util.h
  142. assoc.o: ../../h/Qmgr-types.h
  143. assoc.o: ../../h/Qmgr-ops.h
  144. assoc.o: ../../h/qmgr.h
  145. assoc.o: ../../h/Qmgr-types.h
  146. assoc.o: ../../h/Qmgr-ops.h
  147. auto.o: auto.c
  148. auto.o: console.h
  149. auto.o: ../../h/util.h
  150. auto.o: ../../h/config.h
  151. auto.o: ../../h/ll_log.h
  152. auto.o: ../../h/Qmgr-types.h
  153. badness.o: badness.c
  154. badness.o: console.h
  155. badness.o: ../../h/util.h
  156. badness.o: ../../h/config.h
  157. badness.o: ../../h/ll_log.h
  158. badness.o: ../../h/Qmgr-types.h
  159. badness.o: tai_defs.inc
  160. bops.o: bops.c
  161. bops.o: console.h
  162. bops.o: ../../h/util.h
  163. bops.o: ../../h/config.h
  164. bops.o: ../../h/ll_log.h
  165. bops.o: ../../h/Qmgr-types.h
  166. create.o: create.c
  167. create.o: console.h
  168. create.o: ../../h/util.h
  169. create.o: ../../h/config.h
  170. create.o: ../../h/ll_log.h
  171. create.o: ../../h/Qmgr-types.h
  172. data.o: data.c
  173. data.o: console.h
  174. data.o: ../../h/util.h
  175. data.o: ../../h/config.h
  176. data.o: ../../h/ll_log.h
  177. data.o: ../../h/Qmgr-types.h
  178. data.o: ../../h/Qmgr-types.h
  179. display.o: display.c
  180. display.o: console.h
  181. display.o: ../../h/util.h
  182. display.o: ../../h/config.h
  183. display.o: ../../h/ll_log.h
  184. display.o: ../../h/Qmgr-types.h
  185. drive.o: drive.c
  186. drive.o: console.h
  187. drive.o: ../../h/util.h
  188. drive.o: ../../h/config.h
  189. drive.o: ../../h/ll_log.h
  190. drive.o: ../../h/Qmgr-types.h
  191. misc.o: misc.c
  192. misc.o: console.h
  193. misc.o: ../../h/util.h
  194. misc.o: ../../h/config.h
  195. misc.o: ../../h/ll_log.h
  196. misc.o: ../../h/Qmgr-types.h
  197. misc.o: back.bit
  198. ops.o: ops.c
  199. ops.o: console.h
  200. ops.o: ../../h/util.h
  201. ops.o: ../../h/config.h
  202. ops.o: ../../h/ll_log.h
  203. ops.o: ../../h/Qmgr-types.h
  204. ops.o: ../../h/Qmgr-types.h
  205. parse.o: parse.c
  206. parse.o: console.h
  207. parse.o: ../../h/util.h
  208. parse.o: ../../h/config.h
  209. parse.o: ../../h/ll_log.h
  210. parse.o: ../../h/Qmgr-types.h
  211. popup.o: popup.c
  212. popup.o: console.h
  213. popup.o: ../../h/util.h
  214. popup.o: ../../h/config.h
  215. popup.o: ../../h/ll_log.h
  216. popup.o: ../../h/Qmgr-types.h
  217. workops.o: workops.c
  218. workops.o: console.h
  219. workops.o: ../../h/util.h
  220. workops.o: ../../h/config.h
  221. workops.o: ../../h/ll_log.h
  222. workops.o: ../../h/Qmgr-types.h
  223.  
  224. # DEPENDENCIES MUST END AT END OF FILE
  225. # IF YOU PUT STUFF HERE IT WILL GO AWAY
  226. # see make depend above
  227.