Home | History | Annotate | Download | only in chain
      1 ## -----------------------------------------------------------------------
      2 ##
      3 ##   Copyright 2001-2009 H. Peter Anvin - All Rights Reserved
      4 ##   Copyright 2009-2010 Intel Corporation; author: H. Peter Anvin
      5 ##   Copyright 2010 Shao Miller
      6 ##   Copyright 2010-2012 Michal Soltys
      7 ##
      8 ##   This program is free software; you can redistribute it and/or modify
      9 ##   it under the terms of the GNU General Public License as published by
     10 ##   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
     11 ##   Boston MA 02111-1307, USA; either version 2 of the License, or
     12 ##   (at your option) any later version; incorporated herein by reference.
     13 ##
     14 ## -----------------------------------------------------------------------
     15 
     16 VPATH = $(SRC)
     17 include $(MAKEDIR)/elf.mk
     18 
     19 OBJS = chain.o partiter.o utility.o options.o mangle.o
     20 CFLAGS += -fno-strict-aliasing
     21 
     22 all: chain.c32
     23 
     24 chain.elf: $(OBJS) $(C_LIBS)
     25 	$(LD) $(LDFLAGS) -o $@ $^
     26 
     27 %.o: %.c
     28 	$(CC) $(MAKEDEPS) $(CFLAGS) $(CHAINEXTOPT) -c -o $@ $<
     29 
     30 tidy dist:
     31 	rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
     32 
     33 clean: tidy
     34 	rm -f *.lnx
     35 
     36 spotless: clean
     37 	rm -f *.lss *.c32 *.com
     38 	rm -f *~ \#*
     39 
     40 install:
     41 
     42 
     43 -include .*.d
     44