build with -O2 by default
This commit is contained in:
		
							parent
							
								
									726594f09a
								
							
						
					
					
						commit
						dc497e0c26
					
				
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							| @ -1,5 +1,4 @@ | |||||||
| BUILD=ghc --make hledger.hs -o hledger | BUILD=ghc --make hledger.hs -o hledger -O2 | ||||||
| BUILDOPT=$(BUILD)opt -O2 |  | ||||||
| BUILDPROF=$(BUILD) -prof -auto-all | BUILDPROF=$(BUILD) -prof -auto-all | ||||||
| PROFILE=./hledger -s balance +RTS -p | PROFILE=./hledger -s balance +RTS -p | ||||||
| TIME=`date +"%Y%m%d%H%M"` | TIME=`date +"%Y%m%d%H%M"` | ||||||
| @ -7,9 +6,6 @@ TIME=`date +"%Y%m%d%H%M"` | |||||||
| build: tag | build: tag | ||||||
| 	$(BUILD) | 	$(BUILD) | ||||||
| 
 | 
 | ||||||
| buildopt opt: clean |  | ||||||
| 	$(BUILDOPT) |  | ||||||
| 
 |  | ||||||
| # build and run whenever a module changes, see http://searchpath.org
 | # build and run whenever a module changes, see http://searchpath.org
 | ||||||
| continuous: | continuous: | ||||||
| 	sp -o hledger ghc --make hledger.hs --run | 	sp -o hledger ghc --make hledger.hs --run | ||||||
| @ -115,5 +111,5 @@ clean: | |||||||
| 	rm -f {,Ledger/}*{.o,.hi,~} darcs-amend-record* | 	rm -f {,Ledger/}*{.o,.hi,~} darcs-amend-record* | ||||||
| 
 | 
 | ||||||
| Clean: clean clean-docs | Clean: clean clean-docs | ||||||
| 	rm -f hledger hledgeropt TAGS tags | 	rm -f hledger TAGS tags | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user