mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 19:58:30 +00:00
Introduce new fatcosmocc command
This new script is an alternative to the `cosmocc` command. It's still a work in progress. It abstracts all the gory details of building separate copies of your executable and then running the apelink.com program.
This commit is contained in:
parent
8fc778162e
commit
d53c335a45
35 changed files with 1151 additions and 525 deletions
|
@ -54,7 +54,7 @@ o/$(MODE)/tool/hello/hello-elf.com: \
|
|||
o/$(MODE)/tool/hello/hello.com.dbg \
|
||||
o/$(MODE)/tool/build/apelink.com \
|
||||
o/$(MODE)/ape/ape.elf
|
||||
@$(COMPILE) -ALINK.ape o/$(MODE)/tool/build/apelink.com -s elf -o $@ -l o/$(MODE)/ape/ape.elf $<
|
||||
@$(COMPILE) -ALINK.ape o/$(MODE)/tool/build/apelink.com -V elf -o $@ -l o/$(MODE)/ape/ape.elf $<
|
||||
|
||||
# uses apelink to generate non-pe ape executable
|
||||
# support vector = macos/linux/freebsd/openbsd/netbsd
|
||||
|
@ -64,7 +64,7 @@ o/$(MODE)/tool/hello/hello-unix.com: \
|
|||
o/$(MODE)/tool/hello/hello.com.dbg \
|
||||
o/$(MODE)/tool/build/apelink.com \
|
||||
o/$(MODE)/ape/ape.elf
|
||||
@$(COMPILE) -ALINK.ape o/$(MODE)/tool/build/apelink.com -s unix -o $@ -l o/$(MODE)/ape/ape.elf $<
|
||||
@$(COMPILE) -ALINK.ape o/$(MODE)/tool/build/apelink.com -V unix -o $@ -l o/$(MODE)/ape/ape.elf $<
|
||||
|
||||
# elf2pe generates optimal pe binaries
|
||||
# windows is the only platform supported
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue