Import hs-plugins cvs
This commit is contained in:
27
examples/eval.mk
Normal file
27
examples/eval.mk
Normal file
@ -0,0 +1,27 @@
|
||||
include $(TOP)/config.mk
|
||||
include $(TOP)/examples/check.mk
|
||||
|
||||
PKGFLAGS= -package-conf $(TOP)/plugins.conf.inplace -package eval -package plugins -package printf
|
||||
|
||||
BIN=a.out
|
||||
SRC=Main.hs
|
||||
|
||||
BINDIR= "."
|
||||
REALBIN= ./$(BIN)
|
||||
|
||||
.SUFFIXES : .o .hs .hi .lhs .hc .s
|
||||
|
||||
all: $(BIN)
|
||||
|
||||
$(BIN): $(SRC) $(OBJS)
|
||||
@rm -f $@
|
||||
@$(GHC) --make -fglasgow-exts $(GHCFLAGS) $(PKGFLAGS) $(EXTRAFLAGS) $(SRC)
|
||||
|
||||
# Standard suffix rules
|
||||
.o.hi:
|
||||
@:
|
||||
.hs.o:
|
||||
@$(GHC) $(INCLUDES) $(PKGFLAGS) $(GHCFLAGS) $(EXTRAFLAGS) -c $<
|
||||
|
||||
clean:
|
||||
rm -rf *.hi *.o *~ $(BIN)
|
Reference in New Issue
Block a user