Adding upstream version 6.02~pre7+dfsg.
[syslinux-debian/hramrach.git] / com32 / gdbstub / Makefile
blob38d003cc31896f087fdbc2e833fd8ff4459f30af
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., 51 Franklin St, Fifth Floor,
8 ## Boston MA 02110-1301, USA; either version 2 of the License, or
9 ## (at your option) any later version; incorporated herein by reference.
11 ## -----------------------------------------------------------------------
14 ## GDB remote debugging
17 topdir = ../..
18 MAKEDIR = $(topdir)/mk
19 include $(MAKEDIR)/com32.mk
21 CFLAGS += -fPIE
23 LIBS = ../libutil/libutil_com.a ../lib/libcom32.a $(LIBGCC)
24 LNXLIBS = ../libutil/libutil_lnx.a
26 MODULES = gdbstub.c32
27 TESTFILES =
29 OBJS = main.o int.o serial.o gdbstub.o
31 all: $(MODULES) $(TESTFILES)
33 gdbstub.elf : $(OBJS) $(LIBS) $(C_LIBS)
34 $(LD) $(LDFLAGS) -o $@ $^
36 tidy dist clean:
37 rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
39 clean: tidy
40 rm -f *.lnx
42 spotless: clean
43 rm -f *.lss *.c32 *.com
44 rm -f *~ \#*
46 install:
47 mkdir -m 755 -p $(INSTALLROOT)$(AUXDIR)
48 install -m 644 $(MODULES) $(INSTALLROOT)$(AUXDIR)
50 -include .*.d