root/libinstaller/Makefile

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
2BINFILES = bootsect_bin.c ldlinux_bin.c \
3           mbr_bin.c gptmbr_bin.c
4
5PERL     = perl
6
7all: $(BINFILES)
8
9bootsect_bin.c: ../core/ldlinux.bss bin2c.pl
10        $(PERL) bin2c.pl syslinux_bootsect < $< > $@
11
12ldlinux_bin.c: ../core/ldlinux.sys bin2c.pl
13        $(PERL) bin2c.pl syslinux_ldlinux 512 < $< > $@
14
15mbr_bin.c: ../mbr/mbr.bin bin2c.pl
16        $(PERL) bin2c.pl syslinux_mbr < $< > $@
17
18gptmbr_bin.c: ../mbr/gptmbr.bin bin2c.pl
19        $(PERL) bin2c.pl syslinux_gptmbr < $< > $@
20
21tidy:
22        rm -f $(BINFILES)
23
24clean: tidy
25
26dist: tidy
27
28spotless: clean
29
30strip:
Note: See TracBrowser for help on using the browser.