2 include $(TOP)/mk/boilerplate.mk
4 PROGRAMS = graph hpView hpView2
6 SRC_HC_OPTS += -hi-diffs -fglasgow-exts -fhaskell-1.3 -O -L/usr/X11/lib -cpp
7 SRC_CC_OPTS += -ansi -I/usr/X11/include
8 # ToDo: use AC_PATH_X in configure to get lib/include dirs for X.
10 OBJS_graph = Graph.o HaskXLib.o
11 OBJS_hpView = HpView.o Parse.o HaskXLib.o
12 OBJS_hpView2 = HpView2.o Parse.o HaskXLib.o
17 $(HC) -o $@ $(HC_OPTS) $(LD_OPTS) $(OBJS_graph) -lX11
19 hpView : $(OBJS_hpView)
20 $(HC) -o $@ $(HC_OPTS) $(LD_OPTS) $(OBJS_hpView) -lX11
22 hpView2 : $(OBJS_hpView2)
23 $(HC) -o $@ $(HC_OPTS) $(LD_OPTS) $(OBJS_hpView2) -lX11
25 HaskXLib.o : HaskXLib.c
26 $(CC) -c $(CC_OPTS) HaskXLib.c
28 INSTALL_PROGS += $(PROGRAMS)
29 CLEAN_FILES += $(PROGRAMS)
31 include $(TOP)/mk/target.mk