X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Futils%2Fheap-view%2FMakefile;h=2d8a819df33c84e573926271a55895e2173aa5ce;hb=13aca089b924f6ac3cd598e17b471ab38a1e3e78;hp=c35ae45977573e4ff786bfa4aa975f7e2c64cd85;hpb=02b60157852c1bf3c371b47c33d83814a05153bc;p=ghc-hetmet.git diff --git a/ghc/utils/heap-view/Makefile b/ghc/utils/heap-view/Makefile index c35ae45..2d8a819 100644 --- a/ghc/utils/heap-view/Makefile +++ b/ghc/utils/heap-view/Makefile @@ -1,17 +1,15 @@ -#----------------------------------------------------------------------------- -# $Id: Makefile,v 1.2 1996/11/21 16:48:45 simonm Exp $ +#--------------------------------------------------------------------- +# $Id: Makefile,v 1.3 1997/03/13 09:36:28 sof Exp $ +# +#--------------------------------------------------------------------- -# Todo: generalise this to use HSprog.mk or something. +TOP=../.. +include $(TOP)/mk/boilerplate.mk -TOP=../../.. -HaskellSuffixRules = YES -include $(TOP)/ghc/mk/ghc.mk - -PROGRAMS = graph hpView hpView2 - -HC_OPTS = -hi-diffs -fglasgow-exts -fhaskell-1.3 -O -L/usr/X11/lib -cpp -CC_OPTS = -ansi -I/usr/X11/include +PROGRAMS = graph hpView hpView2 +SRC_HC_OPTS += -hi-diffs -fglasgow-exts -fhaskell-1.3 -O -L/usr/X11/lib -cpp +SRC_CC_OPTS += -ansi -I/usr/X11/include # ToDo: use AC_PATH_X in configure to get lib/include dirs for X. OBJS_graph = Graph.o HaskXLib.o @@ -21,36 +19,18 @@ OBJS_hpView2 = HpView2.o Parse.o HaskXLib.o all :: $(PROGRAMS) graph : $(OBJS_graph) - $(HC) -o $@ $(HCFLAGS) $(LDOPTIONS) $(OBJS_graph) -lX11 + $(HC) -o $@ $(HC_OPTS) $(LD_OPTS) $(OBJS_graph) -lX11 hpView : $(OBJS_hpView) - $(HC) -o $@ $(HCFLAGS) $(LDOPTIONS) $(OBJS_hpView) -lX11 + $(HC) -o $@ $(HC_OPTS) $(LD_OPTS) $(OBJS_hpView) -lX11 hpView2 : $(OBJS_hpView2) - $(HC) -o $@ $(HCFLAGS) $(LDOPTIONS) $(OBJS_hpView2) -lX11 + $(HC) -o $@ $(HC_OPTS) $(LD_OPTS) $(OBJS_hpView2) -lX11 HaskXLib.o : HaskXLib.c - $(CC) -c $(CFLAGS) HaskXLib.c - -install :: $(PROGRAMS) - $(INSTALL) $(INSTBINFLAGS) graph $(DESTDIR) - $(INSTALL) $(INSTBINFLAGS) hpView $(DESTDIR) - $(INSTALL) $(INSTBINFLAGS) hpView2 $(DESTDIR) - -clean :: - $(RM) $(PROGRAMS) - -HS_DEP_SRCS = Graph.lhs HpView.lhs HpView2.lhs Parse.lhs -include $(TOP)/mk/hsdepend.mk - -tags :: $(HS_DEP_SRCS) - $(HSTAGS) $(HSTAGSFLAGS) $(HS_DEP_SRCS) - -# DO NOT DELETE: Beginning of Haskell dependencies -Graph.o : Graph.lhs -HpView.o : HpView.lhs -HpView.o : ./Parse.hi -HpView2.o : HpView2.lhs -HpView2.o : ./Parse.hi -Parse.o : Parse.lhs -# DO NOT DELETE: End of Haskell dependencies + $(CC) -c $(CC_OPTS) HaskXLib.c + +INSTALL_PROGS += $(PROGRAMS) +CLEAN_FILES += $(PROGRAMS) + +include $(TOP)/mk/target.mk