#
# q40lxboot/Makefile for c68
#
# This file is subject to the terms and conditions of the GNU General Public
# License.
#


OPTIONS  = 

HOSTCC = cc

HOSTFLAGS = -Dlinux -I cc1_INCLUDE_


CSRC := linuxboot_c  
HDRS := linuxboot_h  asm_bootinfo_h asm_setup_h linux_elf_h asm_elf_h asm_types_h \
	linux_posix_types_h asm_page_h asm_user_h linux_types_h asm_posix_types_h \
	linux_autoconf_h linuxboot_h asm_ptrace_h linux_config_h

ASMS := lxboot_s

OBJS := linuxboot_o  lxboot_o

all: lxboot_zip


lxx: $(OBJS)
	$(HOSTCC) $(HOSTFLAGS) -o $@ $(OBJS)

lxboot_zip: lxx
	zip -9 lxboot lxx loader.txt

save:
	rm -f lxbootsrc.zip
	zip -9 lxbootsrc.zip $(CSRC) $(ASMS) $(HDRS) loader.txt Makefile
	cp lxbootsrc.zip ..

_c_o:
	$(HOSTCC) $(HOSTFLAGS) -c $<

clean:
	rm -f *_o lxx

distclean: clean
	rm -f .#* #*# *~ *.orig *.rej *.s




