Home | History | Annotate | Download | only in elflink
      1 ## -----------------------------------------------------------------------
      2 ##
      3 ##   Copyright 2001-2008 H. Peter Anvin - All Rights Reserved
      4 ##
      5 ##   This program is free software; you can redistribute it and/or modify
      6 ##   it under the terms of the GNU General Public License as published by
      7 ##   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
      8 ##   Boston MA 02111-1307, USA; either version 2 of the License, or
      9 ##   (at your option) any later version; incorporated herein by reference.
     10 ##
     11 ## -----------------------------------------------------------------------
     12 
     13 MODULES = 
     14 TESTFILES =
     15 
     16 all: $(MODULES) $(TESTFILES)
     17 
     18 test_memalign.elf : test_memalign.o  $(LIBS) $(C_LIBS)
     19 	$(LD) $(LDFLAGS) -o $@ $^
     20 
     21 test_com32.elf: CFLAGS += -DELF_DEBUG
     22 test_com32.elf: test_com32.o ../lib/libcom32min.a $(LIBGCC)
     23 	$(LD) -n $(LDFLAGS) -o $@ test_com32.o $(LIBGCC) --whole-archive ../lib/libcom32min.a -Map test_com32.map
     24 
     25 tidy dist:
     26 	rm -f *.o *.lo *.a *.lst *.elf .*.d *.map
     27 
     28 clean: tidy
     29 	rm -f *.lss *.c32 *.lnx *.com
     30 
     31 spotless: clean
     32 	rm -f *~ \#*
     33 
     34 install:
     35 
     36 -include .*.d
     37