# Standalone Makefile build with built Hurd toolchain

# Copyright (C) 2007 Free Software Foundation, Inc.

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
# 
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

# Written by Shakthi Kannan <shakthi.kannan@qvantel.com>.

# Target
TARGET    = test

# Tool PATH
CROSS     = /usr/local/hurd/bin/i586-pc-gnu-
LIBPATH   = /usr/local/hurd/lib/gcc/i586-pc-gnu/4.1.3
LIBS      = /usr/local/hurd/lib/gcc/i586-pc-gnu/4.1.3/libgcc.a

#tools
CC        = $(CROSS)gcc
LD        = $(CROSS)ld
DAS       = $(CROSS)as

OBJCOPY   = $(CROSS)objcopy
OBJDUMP   = $(CROSS)objdump


WARN	:= -W -Wall 
CFLAGS	:= ${WARN}
LDFLAGS	:= -L/usr/local/hurd/sys_root/lib 

OBJALL = $(TARGET).o

all:
	$(CC) $(LDFLAGS) $(TARGET).c -o $(TARGET)

clean:
	rm -f *~ *.o $(TARGET)