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
13MODULES = 
14TESTFILES =
15
16all: $(MODULES) $(TESTFILES)
17
18test_memalign.elf : test_memalign.o  $(LIBS) $(C_LIBS)
19	$(LD) $(LDFLAGS) -o $@ $^
20
21test_com32.elf: CFLAGS += -DELF_DEBUG
22test_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
25tidy dist:
26	rm -f *.o *.lo *.a *.lst *.elf .*.d *.map
27
28clean: tidy
29	rm -f *.lss *.c32 *.lnx *.com
30
31spotless: clean
32	rm -f *~ \#*
33
34install:
35
36-include .*.d
37