All the amisc binaries now build.
This commit is contained in:
		
							parent
							
								
									1978867fd2
								
							
						
					
					
						commit
						d805052205
					
				
					 5 changed files with 46 additions and 12 deletions
				
			
		|  | @ -2,7 +2,7 @@ installable { | |||
| 	name = "ack", | ||||
| 	map = { | ||||
| 		"util/ack+ack-pkg", | ||||
| 		"util/amisc+aelflod-pkg", | ||||
| 		"util/amisc+pkg", | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -162,7 +162,7 @@ definerule("cprogram", | |||
| 		commands = { | ||||
| 			type="strings", | ||||
| 			default={ | ||||
| 				"$(CC) -o %{outs[1]} %{ins}" | ||||
| 				"$(CC) -o %{outs[1]} %{ins} %{ins}" | ||||
| 			}, | ||||
| 		} | ||||
| 	}, | ||||
|  |  | |||
|  | @ -13,7 +13,9 @@ bundle { | |||
| 	name = "emheaders", | ||||
| 	srcs = { | ||||
| 		"./em_*.h", | ||||
| 		"./arch.h", | ||||
| 		"./out.h", | ||||
| 		"./ranlib.h", | ||||
| 		"+em_path", | ||||
| 	} | ||||
| } | ||||
|  |  | |||
|  | @ -6,6 +6,16 @@ bundle { | |||
| clibrary { | ||||
| 	name = "string", | ||||
| 	srcs = { "./src/string/*.c" }, | ||||
| 	deps = { "#headers" }, | ||||
| 	deps = { "+headers" }, | ||||
| } | ||||
| 
 | ||||
| clibrary { | ||||
| 	name = "object", | ||||
| 	srcs = { "./src/object/*.c" }, | ||||
| 	deps = { | ||||
| 		"+headers", | ||||
| 		"h+local", | ||||
| 		"h+emheaders", | ||||
| 	}, | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,16 +1,38 @@ | |||
| cprogram { | ||||
| 	name = "aelflod", | ||||
| 	srcs = { "./aelflod.c" }, | ||||
| local function simpleprogram(name) | ||||
| 	cprogram { | ||||
| 		name = name, | ||||
| 		srcs = { "./"..name..".c" }, | ||||
| 		deps = { | ||||
| 		"h+emheaders" | ||||
| 			"h+emheaders", | ||||
| 			"modules+object", | ||||
| 		} | ||||
| } | ||||
| 	} | ||||
| 
 | ||||
| 	installable { | ||||
| 		name = name.."-pkg", | ||||
| 		map = { | ||||
| 			["$(INSDIR)/bin/"..name] = "+"..name, | ||||
| 			["$(PLATIND)/man/man1/"..name..".1"] = "./"..name..".1", | ||||
| 		} | ||||
| 	} | ||||
| end | ||||
| 
 | ||||
| simpleprogram("aelflod") | ||||
| simpleprogram("anm") | ||||
| simpleprogram("ashow") | ||||
| simpleprogram("asize") | ||||
| simpleprogram("aslod") | ||||
| simpleprogram("astrip") | ||||
| 
 | ||||
| installable { | ||||
| 	name = "aelflod-pkg", | ||||
| 	name = "pkg", | ||||
| 	map = { | ||||
| 		["$(INSDIR)/bin/aelflod"] = "+aelflod", | ||||
| 		["$(PLATIND)/man/man1/aelflod.1"] = "./aelflod.1", | ||||
| 		"+aelflod-pkg", | ||||
| 		"+anm-pkg", | ||||
| 		"+ashow-pkg", | ||||
| 		"+asize-pkg", | ||||
| 		"+aslod-pkg", | ||||
| 		"+astrip-pkg", | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue