# This is makefile for E:\Pooh\release\examples\linux\lx2.4\apps\signaltest\signaltest.mpj 
# Saturday, September 27, 2003 12:01:07

CC 	= arm-linux-gcc 
AS 	= aarm-linux-as 
LD 	= arm-linux-ld 

CFG 	= Debug Ram

SYS_INCLUDE = -IE:\Pooh\qedit\Debug\libs/src 
SYS_LIB = 
SOURCES = usesignal.c 

S_OBJECTS = $(OUTPUT_PATH)/usesignal.o 

O_OBJECTS = 

OBJECTS = $(S_OBJECTS) $(O_OBJECTS)

ifeq ($(CFG),Debug Ram) 
TOPMEMORY=0x2400000
OUTPUT_PATH = ./DbgRam
OUTPUT_NAME = ./DbgRam/signaltest.exe
CFLAGS = -gstabs+ -O0 -I. 
ASFLAGS = -Wa,-gstabs 
LDFLAGS =  
endif

ifeq ($(CFG),Release Ram) 
TOPMEMORY=0x2400000
OUTPUT_PATH = ./RelRam
OUTPUT_NAME = ./RelRam/signaltest.exe
CFLAGS = -O2 -I. 
ASFLAGS = -Os 
LDFLAGS =  
endif


all: prebuild $(OUTPUT_NAME) postbuild 

MKDEPFILE= $(OUTPUT_PATH)/signaltest.dep

-include $(MKDEPFILE) 

$(MKDEPFILE): dep

dep: $(SOURCES)
	@echo Make dependency...
	@if [ ! -d $(OUTPUT_PATH) ] ; then \
		mkdir -p $(OUTPUT_PATH);  \
	fi
	@$(CC) -E $(CFLAGS) -MM $(SOURCES) | sed  's/^\(.*:\)/$$(OUTPUT_PATH)\/\1/g' > $(MKDEPFILE)

$(OUTPUT_NAME): $(OBJECTS) 
	@echo "Linking... "
	@echo "Creating file $@..."
	@$(CC) -o $@ $^ $(LDFLAGS) $(EXTRA_LDFLAGS) $(SYS_LIB)

$(OUTPUT_PATH)/usesignal.o:usesignal.c
	@echo "Compiling $<"
	@$(CC) -c -o "$@" "$<" $(CFLAGS) $(EXTRA_CFLAGS) $(SYS_INCLUDE)

.PHONY: clean dep prebuild postbuild
clean:
	$(RM) -f $(S_OBJECTS) 
	$(RM) -f $(OUTPUT_NAME)
	$(RM) -f $(MKDEPFILE)
	$(RM) -f $(OUTPUT_NAME).exe*

postbuild:
ifeq ($(CFG),Debug Ram) 
	
endif

ifeq ($(CFG),Release Ram) 
	
endif


prebuild:
ifeq ($(CFG),Debug Ram) 
	
endif

ifeq ($(CFG),Release Ram) 
	
endif



# End of Makefile