##############################################################
#
# Makefile master for the Source Navigator / GNU Compiler Env.
#
# Copyright (C) 2000 K-TEAM S.A.
#
##############################################################

include $(sft_pack)etc/Makefile_Common

# Transform code into Position Independent Code and Data
PICIFY = awk -f $(picscript)
CCPIC   = -fPIC
picscript = $(sft_pack)etc/PICIFY.awk

$(objdir)%.o: $(asmdir)%.s
	@echo Assembling $< into $@ 
	@$(PICIFY) $< > $<_.s
	@$(CC) $(DEBUG) $(SPECIAL) $(OPTS) $(ALL_CFLAGS) -c -o $@ $<_.s
	@rm $<_.s

$(objdir)%.o: $(asmdir)%.S
	@echo Assembling $< into $@ 
	@$(PICIFY) $< > $<_.S
	@$(CC) $(DEBUG) $(SPECIAL) $(OPTS) $(ALL_CFLAGS) -c -o $@ $<_.S
	@rm $<_.S



