summaryrefslogtreecommitdiff
path: root/sample/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Add per-firmware object directory supportMatt Fleming2012-10-161-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we have multiple firmware backends it no longer makes sense to write object files to the same directory as their source. A better solution is to write the object files to a per-firmware directory under a top-level object directory. The top-level object directory can be specified on the command-line with the O= variable, e.g. make O=/tmp/obj. If no top-level object directory is specified an 'obj' directory is created in the top-level of the Syslinux source repository. All the existing make targets continue to work as before, however now they apply to all firmware backends, e.g. 'make installer' will build the BIOS, 32-bit EFI and 64-bit EFI installers and place them under $(OBJ)/bios, $(OBJ)/efi32 and $(OBJ)/efi64 respectively. Note unlike every other bit of Syslinux, the gpxe objects are still kept in the src directory, e.g. gpxe/src, since gpxe is only required by the BIOS backend. It is possible to specify a make target for a specific firmware or list of firmware with the following syntax, make [firmware[,firmware]] [target[,target]] To clean the object directory for just the BIOS firmware type, 'make bios clean' To build both the 32-bit and 64-bit EFI installers type, 'make efi32 efi64 installer' Since the Syslinux make infrastructure is now more complex a new file doc/building.txt has been created to explain how to build Syslinux. The top-level Makefile now exports some make variables for use in module Makefiles, - topdir - the top-level source directory of the Syslinux repository, e.g. /usr/src/syslinux - objdir - the top-level object directory for the firmware backend currently being built, e.g. /obj/syslinux/bios - SRC - the source directory in the Syslinux repository for the module currently being built, e.g. /usr/src/syslinux/com32/libupload - OBJ - the object directory for the module currently being built, e.g. /obj/syslinux/bios/com32/libupload Since we're rewriting the Makefile infrastructure anyway it seemed like a good idea to add parallel support. By writing subdirectories as prequisites for make targets the objects in those subdirectories can be built in parallel. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
* Makefile: Move Makefile fragments into mk/Matt Fleming2011-04-071-1/+2
| | | | | | | | | | | | | | | | | | Move the MCONFIG files into a mk/ directory and give them more descriptive names. This is purely a cosmetic change to make the 'include' directives a bit more coherent by making it obvious exactly which MCONFIG file we're including. For example, in com32/lua/src/Makefile we exchange the line, include ../../MCONFIG for the much more comprehensible, include $(MAKEDIR)/com32.mk Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
* sample/Makefile: re-add the includeGene Cumm2010-10-251-0/+1
| | | | | Without the include, .ppm.gz to .lss messes up as $(GZIPPROG) is not expanded properly
* sample: remove obsolete "raw" comboot/com32 samplesH. Peter Anvin2010-07-261-33/+2
| | | | | | | We really don't want people to write code without using the library, so just remove these obsolete and no longer functional samples. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Fix NASM dependency generationH. Peter Anvin2009-04-271-1/+1
| | | | | | | | | Fix missing -M from NASM dependency generation calls; adopt the uniform stanza "-M -DDEPEND" even for sites that were already correct. Also, use ">" not ">>" for obvious reasons... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Unify dependency generation: MCONFIG.embeddedH. Peter Anvin2009-04-271-7/+4
| | | | | | | Unify dependency generation and move common rules into MCONFIG.embedded. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* hdt: Moving hdt from sample to its own directoryErwan Velu2009-02-251-7/+1
|
* hdt: Adding PCI & DMI detection Main function must remain simpleErwan Velu2009-02-251-2/+2
|
* hdt: First releaseErwan Velu2009-02-251-1/+12
|
* Clean up embedded Makefile targets; fix build failureH. Peter Anvin2008-08-221-7/+3
| | | | | | Unify common pieces to "embedded" targets (those that produce code that runs neither in the host nor in a com32 environment); this fixes the broken sample/ directory Makefile.
* Major Makefile cleanups; gcc 4.3.0 compatiblityH. Peter Anvin2008-08-201-19/+6
| | | | | Cleanup and centralize the Makefile system even more. Fix a gcc 4.3 incompatibility in memdisk (definition of strlen).
* Move files out of root into core, dos, and utilsH. Peter Anvin2008-05-291-2/+2
| | | | | | | | Move source files out of the root directory; the root is a mess and has become virtually unmaintainable. The Syslinux core now lives in core/; the Linux and generic utilities has moved into utils/, and copybs.com has moved into dos/; it had to go somewhere, and it seemed as good a place as any.
* Fixed the various Makefiles so that SYSLINUX compiles on platforms with GCC ↵Stefan Bucur2008-05-121-1/+2
| | | | -fstack-protector flag enabled by default.
* syslinux 3.63: Rename $GZIP to $GZIPPROGMaciej W. Rozycki2008-04-171-2/+2
| | | | | | | | | | | | | If the variable GZIP exists in the environment, overriding it in the Makefile exports it into the environment, causing failures: gzip -cd syslogo.ppm.gz | \ ../ppmtolss16 \#000000=0 \#d0d0d0=7 \#f6f6f6=15 \ > syslogo.lss gzip.gz: No such file or directory 204480 pixels, 25715 bytes, (74.85% compression) Use $GZIPPROG instead.
* Use $(CC) in gcc_ok macro, not plain gccH. Peter Anvin2008-03-051-1/+1
| | | | | Use $(CC) in gcc_ok macro, not plain gcc. This seems to work, iff the gcc_ok macro is declared with =, not :=
* Remove pngtopnm dependency from the samples/ directoryH. Peter Anvin2008-02-261-3/+8
| | | | | | Ship syslogo.ppm.gz instead of syslogo.png, thereby eliminating a dependency on pngtopnm which apparently isn't installed by default on some distros.
* Update copyright yearH. Peter Anvin2008-01-101-1/+1
|
* Makefiles: create NASMOPT variableH. Peter Anvin2007-10-101-2/+3
| | | | | Create NASMOPT variable, defaulting to -O9999. Mostly there to test beta versions of NASM.
* Show list file addresses in absolutesyslinux-3.50H. Peter Anvin2007-06-081-1/+1
| | | | | | Small Perl script to postprocess the listfile and show absolute addresses instead of section-relative. This only applies to the main address, not to addresses in bracketed fields.
* Don't clobber /dev/null when compiling as rootLuciano Rocha2007-05-251-2/+4
| | | | | | Compiling as root is highly discouraged, but some people do it anyway. gcc_ok, however, can clobber /dev/null due to "-o /dev/null"; this is bad. Instead, write a temporary file and delete it.
* Stealth whitespace cleanup (automated)H. Peter Anvin2007-03-141-1/+1
|
* Deal with various distributions breaking gcc in weird waysH. Peter Anvin2007-02-061-1/+1
|
* sample/Makefile: $(M32) is also needed in $(SFLAGS)H. Peter Anvin2007-01-281-1/+1
|
* Remove -m32 from the CC variable globally.H. Peter Anvin2007-01-281-2/+2
|
* Remove more CVS-era $Id$ tags.H. Peter Anvin2006-08-171-1/+0
|
* Across-the-board stealth whitespace cleanupH. Peter Anvin2006-05-031-1/+1
|
* Clean up compile problems.hpa2005-01-031-1/+1
|
* Update copyright headers.hpa2004-12-141-3/+3
|
* The chain loader has been moved to the main com32 directory.hpa2004-12-031-2/+2
|
* Fix "make tidy"hpa2004-08-161-2/+2
|
* Adjust options to work on 64-bit machines, and clean up nuisance warningshpa2004-01-241-5/+9
|
* Conditionally add -m32 to be able to compile in a 64-bit environmenthpa2004-01-241-1/+2
|
* Minor com32 wrapper code cleanuphpa2003-12-131-2/+6
|
* Split atou() and skip_atou() into separate moduleshpa2003-12-101-1/+1
|
* Redistribute the library code; initial work on generic chainloaderhpa2003-12-101-2/+2
|
* Add a bootstrap chainloading API, and include a sample program for it.syslinux-2.08-pre5hpa2003-11-261-1/+1
|
* Add a "make tidy" target for the sample directoryhpa2003-11-261-2/+6
|
* Fix COMBOOT/COM32 command-line generation.syslinux-2.08-pre1hpa2003-11-241-1/+5
| | | | Add test programs.
* Fix the file read API for COMBOOT/COM32syslinux-2.07hpa2003-11-231-1/+11
|
* opentest.c -> filetest.chpa2003-11-131-1/+1
|
* Test for the OPEN API commandhpa2003-11-101-1/+1
|
* Add second hello world samplehpa2002-11-191-1/+1
|
* Fix the COM32 sample programsyslinux-2.01-pre2hpa2002-11-181-5/+9
|
* Correct the CFLAGS for building com32 fileshpa2002-06-121-1/+1
|
* Make sure "make clean" does the right thing.hpa2002-06-111-1/+1
|
* Add an API for COMBOOT images, and add support for "COM32" -- 32-bithpa2002-06-111-1/+17
| | | | linear .com files.
* Make the various clean conventions really match...syslinux-1.70hpa2002-04-171-0/+2
|
* Some makefile changes to account for memdiskhpa2001-12-111-1/+0
|
* The great graphics merge! We're now officially working on version 1.60.hpa2001-04-051-0/+29