#
#   Creation Date: <1999/03/28 04:20:31 samuel>
#   Time-stamp: <2001/06/20 23:13:22 samuel>
#   
#	<Makefile>
#	
#	Rules for building targets to be run within MOL
#   
#   Copyright (C) 1999, 2000, 2001 Samuel Rydh (samuel@ibrium.se)
#   
#   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
#

C_TARGET 	= selftest
O_OBJS 		= $(addprefix obj/, init.o performance.o selftest.o vsprintf.o )

CFLAGS_EXTRA 	= $(CFLAGS_MM) -I$(SHEADERS_PATH) -I./include -I../../include
ASMFLAGS_EXTRA  = -I../../include -I$(SHEADERS_PATH)

lgcc 		= $(shell $(CC) -print-libgcc-file-name)

include ../../Rules.make


$(C_TARGET):
	ld -Ttext=0x0 -Bstatic $(O_OBJS) $(lgcc) -o $@
	strip $@
	@cp $@ $(MOL_LIB_DIR)/bin/$(C_TARGET)
	@chmod a-x $(MOL_LIB_DIR)/bin/$(C_TARGET)



