|
Revision 2613174223371677d0a701a69cb7468947940d65, 0.6 KB
(checked in by H. Peter Anvin <hpa@…>, 13 months ago)
|
|
Add "make strip" target
Add a "make strip" target, to make doing the official build easier.
We want the official build to have stripped binaries for size reasons,
so do it right and make it an actual build target.
Signed-off-by: H. Peter Anvin <hpa@…>
|
-
Property mode set to
100644
|
| Line | |
|---|
| 1 | # _bin.c files required by both BTARGET and ITARGET installers |
|---|
| 2 | BINFILES = bootsect_bin.c ldlinux_bin.c \ |
|---|
| 3 | mbr_bin.c gptmbr_bin.c |
|---|
| 4 | |
|---|
| 5 | PERL = perl |
|---|
| 6 | |
|---|
| 7 | all: $(BINFILES) |
|---|
| 8 | |
|---|
| 9 | bootsect_bin.c: ../core/ldlinux.bss bin2c.pl |
|---|
| 10 | $(PERL) bin2c.pl syslinux_bootsect < $< > $@ |
|---|
| 11 | |
|---|
| 12 | ldlinux_bin.c: ../core/ldlinux.sys bin2c.pl |
|---|
| 13 | $(PERL) bin2c.pl syslinux_ldlinux 512 < $< > $@ |
|---|
| 14 | |
|---|
| 15 | mbr_bin.c: ../mbr/mbr.bin bin2c.pl |
|---|
| 16 | $(PERL) bin2c.pl syslinux_mbr < $< > $@ |
|---|
| 17 | |
|---|
| 18 | gptmbr_bin.c: ../mbr/gptmbr.bin bin2c.pl |
|---|
| 19 | $(PERL) bin2c.pl syslinux_gptmbr < $< > $@ |
|---|
| 20 | |
|---|
| 21 | tidy: |
|---|
| 22 | rm -f $(BINFILES) |
|---|
| 23 | |
|---|
| 24 | clean: tidy |
|---|
| 25 | |
|---|
| 26 | dist: tidy |
|---|
| 27 | |
|---|
| 28 | spotless: clean |
|---|
| 29 | |
|---|
| 30 | strip: |
|---|