blob: 4baeb142af11d753264eeeece5a43ecd5f6c11b2 [file] [log] [blame] [raw]
pkgdatadir = $(datadir)/$(PACKAGE)/$(host_cpu)-$(host_vendor)
pkgdata_DATA = stage1
CLEANFILES = $(pkgdata_DATA)
# We can't use builtins or standard includes.
COMPILE = $(CC) -fno-builtin -nostdinc $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
noinst_PROGRAMS = stage1.exec
stage1_exec_SOURCES = stage1.S
stage1.exec: stage1.o
$(LD) -N -Ttext 7C00 -o $@ $<
stage1: stage1.exec
$(OBJCOPY) -O binary $< $@