Don't build mktables.c in the ack binary.
It only worked by accident because main() in main.c was found before main() in mktables.c. Also add build dependencies on the local *.h files.
This commit is contained in:
		
							parent
							
								
									7347cc64e4
								
							
						
					
					
						commit
						7b3f870f63
					
				
					 1 changed files with 17 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -18,12 +18,28 @@ normalrule {
 | 
			
		|||
cprogram {
 | 
			
		||||
	name = "ack",
 | 
			
		||||
	srcs = {
 | 
			
		||||
		"./*.c",
 | 
			
		||||
		"./data.c",
 | 
			
		||||
		"./files.c",
 | 
			
		||||
		"./grows.c",
 | 
			
		||||
		"./list.c",
 | 
			
		||||
		"./main.c",
 | 
			
		||||
		"./rmach.c",
 | 
			
		||||
		"./run.c",
 | 
			
		||||
		"./scan.c",
 | 
			
		||||
		"./svars.c",
 | 
			
		||||
		"./trans.c",
 | 
			
		||||
		"./util.c",
 | 
			
		||||
		"+tables",
 | 
			
		||||
	},
 | 
			
		||||
	deps = {
 | 
			
		||||
		"h+emheaders",
 | 
			
		||||
		"h+local",
 | 
			
		||||
		"./ack.h",
 | 
			
		||||
		"./data.h",
 | 
			
		||||
		"./dmach.h",
 | 
			
		||||
		"./grows.h",
 | 
			
		||||
		"./list.h",
 | 
			
		||||
		"./trans.h",
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue