Skip to content

Commit

Permalink
Kill off redundant references to the .zprefixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brown committed Jul 16, 2007
1 parent 84551d4 commit 38dbe14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 53 deletions.
8 changes: 4 additions & 4 deletions src/Makefile
Expand Up @@ -55,13 +55,13 @@ noargs : blib
@echo
@echo 'For example, '
@echo
@echo ' make allzroms '
@echo ' make allroms '
@echo
@echo 'will generate all possible .zrom (rom burnable) images, and'
@echo 'will generate all possible .rom (rom burnable) images, and'
@echo
@echo ' make allzdsks'
@echo ' make alldsks'
@echo
@echo 'will generate all possible .zdsk (bootable floppy) images, or'
@echo 'will generate all possible .dsk (bootable floppy) images, or'
@echo
@echo '===================================================='
@exit 1
Expand Down
51 changes: 2 additions & 49 deletions src/arch/i386/Makefile
Expand Up @@ -36,74 +36,27 @@ LDSCRIPT = arch/i386/scripts/i386.lds

# Media types.
#
# It's ugly that we have to define these repetitive combinations by
# hand. Unforunately, $(eval ...) is available only in make >= 3.80,
# and using an external Makefile fragment doesn't work because
# OBJS_xxx need to be defined *before* the external Makefile fragments
# for the source files are generated...

CFLAGS_ZPREFIX = -DCOMPRESS

MEDIA += rom
OBJS_romprefix = romprefix zromprefix
CFLAGS_zromprefix = $(CFLAGS_ZPREFIX)

MEDIA += pxe
OBJS_pxeprefix = pxeprefix zpxeprefix
CFLAGS_zpxeprefix = $(CFLAGS_ZPREFIX)

MEDIA += elf
OBJS_elfprefix = elfprefix zelfprefix
CFLAGS_zelfprefix = $(CFLAGS_ZPREFIX)

MEDIA += elfd
OBJS_elfdprefix = elfdprefix zelfdprefix
CFLAGS_zelfdprefix = $(CFLAGS_ZPREFIX)

MEDIA += lmelf
OBJS_lmelfprefix = lmelfprefix zlmelfprefix
CFLAGS_zlmelfprefix = $(CFLAGS_ZPREFIX)

MEDIA += lmelfd
OBJS_lmelfdprefix = lmelfdprefix zlmelfdprefix
CFLAGS_zlmelfdprefix = $(CFLAGS_ZPREFIX)

MEDIA += lkrn
OBJS_lkrnprefix = lkrnprefix zlkrnprefix
CFLAGS_zlkrnprefix = $(CFLAGS_ZPREFIX)

MEDIA += bImage
OBJS_bImageprefix = bImageprefix zbImageprefix
CFLAGS_zbImageprefix = $(CFLAGS_ZPREFIX)

MEDIA += dsk
OBJS_dskprefix = dskprefix zdskprefix
CFLAGS_zdskprefix = $(CFLAGS_ZPREFIX)

MEDIA += nbi
OBJS_nbiprefix = nbiprefix znbiprefix
CFLAGS_znbiprefix = $(CFLAGS_ZPREFIX)

MEDIA += hd
OBJS_hdprefix = hdprefix zhdprefix
CFLAGS_zhdprefix = $(CFLAGS_ZPREFIX)

MEDIA += raw
OBJS_rawprefix = rawprefix zrawprefix
CFLAGS_zrawprefix = $(CFLAGS_ZPREFIX)

# These media cannot handle compressed payloads

MEDIA += com

MEDIA += exe

# Special target for building Master Boot Record binary
$(BIN)/mbr.bin : $(BIN)/mbr.o
$(OBJCOPY) -O binary $< $@

# Some suffixes (e.g. %.zfd0) are generated directly from other
# finished files (e.g. %.zdsk), rather than having their own prefix.
# Some suffixes (e.g. %.fd0) are generated directly from other
# finished files (e.g. %.dsk), rather than having their own prefix.

# rule to write disk images to /dev/fd0
NON_AUTO_MEDIA += fd0
Expand Down

0 comments on commit 38dbe14

Please sign in to comment.