Revision c7ec3025 Makefile.am

b/Makefile.am
354 354
HFLAGS = -O -Wall -fwarn-monomorphism-restriction -fwarn-tabs -ihtools
355 355
# extra flags that can be overriden on the command line
356 356
HEXTRA =
357
# internal extra flags (used for htools/test mainly)
358
HEXTRA_INT =
357 359
# exclude options for coverage reports
358 360
HPCEXCL = --exclude Main \
359 361
	--exclude Ganeti.Constants \
......
512 514
	  $(HFLAGS) \
513 515
	  $(HTOOLS_NOCURL) $(HTOOLS_PARALLEL3) \
514 516
	  -osuf $$BINARY.o -hisuf $$BINARY.hi \
515
	  $(HEXTRA) $@
517
	  $(HEXTRA) $(HEXTRA_INT) $@
516 518

  
517 519
# for the htools/test binary, we need to enable profiling/coverage
518
htools/test: HEXTRA=-fhpc -Wwarn -fno-warn-missing-signatures \
520
htools/test: HEXTRA_INT=-fhpc -Wwarn -fno-warn-missing-signatures \
519 521
	-fno-warn-monomorphism-restriction -fno-warn-orphans \
520 522
	-fno-warn-missing-methods -fno-warn-unused-imports
521 523

  
524
# rules for building profiling-enabled versions of the haskell
525
# programs: hs-prof does the full two-step build, whereas
526
# hs-prof-quick does only the final rebuild (hs-prof must have been
527
# run before)
528
.PHONY: hs-prof hs-prof-quick
529
hs-prof:
530
	$(MAKE) clean
531
	$(MAKE) $(HS_ALL_PROGS) HEXTRA="-osuf .o"
532
	rm -f $(HS_ALL_PROGS)
533
	$(MAKE) hs-prof-quick
534

  
535
hs-prof-quick:
536
	$(MAKE) $(HS_ALL_PROGS) HEXTRA="-osuf .prof_o -prof -auto-all"
537

  
522 538
dist_sbin_SCRIPTS = \
523 539
	tools/ganeti-listrunner
524 540

  

Also available in: Unified diff