# Things to install in /usr/bin
INSTALL_BIN = syslinux gethostip ppmtolss16 lss16toppm
+# The DATE is set on the make command line when building binaries for
+# official release. Otherwise, substitute a hex string that is pretty much
+# guaranteed to be unique to be unique from build to build.
+ifndef HEXDATE
+HEXDATE := $(shell perl now.pl ldlinux.asm pxelinux.asm isolinux.asm)
+endif
+ifndef DATE
+DATE := $(HEXDATE)
+endif
+
all: $(BTARGET) $(ITARGET) samples memdisk
ls -l $(BTARGET) $(ITARGET) memdisk/memdisk
memdisk:
$(MAKE) -C memdisk all
-# The DATE is set on the make command line when building binaries for
-# official release. Otherwise, substitute a hex string that is pretty much
-# guaranteed to be unique to be unique from build to build.
-ifndef HEXDATE
-HEXDATE := $(shell perl now.pl ldlinux.asm pxelinux.asm)
-endif
-ifndef DATE
-DATE := $(HEXDATE)
-endif
-
ldlinux.bin: ldlinux.asm
$(NASM) -f bin -dVERSION="'$(VERSION)'" -dDATE_STR="'$(DATE)'" \
-dHEXDATE="$(HEXDATE)" \
##
## -----------------------------------------------------------------------
+VERSION := $(shell cat ../version)
+
CC = gcc
CFLAGS = -Wall -O2 -fomit-frame-pointer -march=i386 \
- -malign-functions=0 -malign-jumps=0 -malign-loops=0
+ -malign-functions=0 -malign-jumps=0 -malign-loops=0 \
+ -DVERSION=\"$(VERSION)\" -DDATE=\"$(DATE)\"
LDFLAGS =
AS = as
LD = ld
#include "e820.h"
#include "conio.h"
+#define COPYYEAR "2001"
+
extern const char _binary_memdisk_bin_start[], _binary_memdisk_bin_end[];
extern const char _binary_memdisk_bin_size[]; /* Weird, I know */
int total_size;
/* Show signs of life */
- puts("Memdisk: Hello, World!\n");
+ puts("MEMDISK " VERSION " " DATE
+ " Copyright " COPYYEAR " H. Peter Anvin\n");
if ( !shdr->ramdisk_image || !shdr->ramdisk_size ) {
puts("MEMDISK: No ramdisk image specified!\n");