X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=Makefile;h=b0a440ddfc97cbb1c05324873435cbe51931f14e;hb=c803146cc80b61305fde8279f0a36f8fe6ef7eb2;hp=b4be049471295dd275955e4d2662a023f3592902;hpb=1364516f79a765fabd1c207a4902d76c17b71074;p=mate.git diff --git a/Makefile b/Makefile index b4be049..b0a440d 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ PACKAGES := $(addprefix -package ,$(PACKAGES_)) # use `cpphs' GHC_CPP := -cpp -pgmP cpphs -optP --cpp -GHC_OPT = -I. -O0 -Wall -fno-warn-unused-do-bind +GHC_OPT = -I. -O0 -Wall -fno-warn-unused-do-bind -fwarn-tabs # see *.gdb target. also useful for profiling (-p at call) GHC_OPT += -rtsopts # -prof -auto-all GHC_OPT += $(GHC_CPP) @@ -74,7 +74,7 @@ DEBUGFLAGS = -DDBG_JIT -DDBG_MP else DEBUGFLAGS = ${DBGFLAGS} endif -mate.dbg: Mate.hs ffi/trap.c $(HS_FILES) $(HS_BOOT) ffi/native.o +mate.dbg: Mate.hs ffi/trap.c $(HS_FILES) $(HS_BOOT) ffi/native.o $(CLASS_FILES) @mkdir -p $(B_DEBUG)/{ffi,Mate,} gcc -Wall $(DEBUGFLAGS) -O0 -c ffi/trap.c -o $(B_DEBUG)/ffi/trap.o ghc --make $(DEBUGFLAGS) $(GHC_OPT) Mate.hs $(B_DEBUG)/ffi/trap.o -o $@ $(GHC_LD) -outputdir $(B_DEBUG)