This needed lots of refactoring to ego --- not all platforms have ego descr files, and ego will just crash if you invoke it without one. I think originally it was never intended that these platforms would be used at -O2 or above. Plats now only specify the ego descr file if they have one.
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			492 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			492 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
cprogram {
 | 
						|
	name = "makeitems",
 | 
						|
	srcs = { "./makeitems.c" }
 | 
						|
}
 | 
						|
 | 
						|
normalrule {
 | 
						|
	name = "itemtab_h",
 | 
						|
	ins = {
 | 
						|
		"+makeitems",
 | 
						|
		matching(filenamesof("modules/src/em_data+lib"), "em_mnem%.h$"),
 | 
						|
		"./itemtab.src"
 | 
						|
	},
 | 
						|
	outleaves = { "itemtab.h" },
 | 
						|
	commands = {
 | 
						|
		"%{ins} > %{outs}"
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
cprogram {
 | 
						|
	name = "ra",
 | 
						|
	srcs = { "./ra*.c" },
 | 
						|
	deps = {
 | 
						|
		"util/ego/share+lib",
 | 
						|
		"modules/src/em_data+lib",
 | 
						|
		"h+emheaders",
 | 
						|
		"+itemtab_h",
 | 
						|
	},
 | 
						|
	vars = {
 | 
						|
		["+cflags"] = {"-DVERBOSE", "-DNOTCOMPACT"}
 | 
						|
	}
 | 
						|
}
 | 
						|
 |