[an error occurred while processing this directive]
|
## file macros: path\name.ext
##$@ Current target's full name (path, base name, extension), as currently specified.
##$$@ Current target's full name (path, base name, extension), as currently specified. Valid only as a dependent in a dependency.
##$* Current target's path and base name minus file extension.
##$** All dependents of the current target.
##$? All dependents with a later timestamp than the current target.
##$< Dependent file with a later timestamp than the current target. Valid only in commands in inference rules..SUFFIXES: .a90 .c .cpp .cxx .r90 .hex .obj
COMPIL_DIR=d:\programm\atmel\ew23\avr
ICC =$(COMPIL_DIR)\bin\iccavr.exe
ASM =$(COMPIL_DIR)\bin\aavr.exe
LINK=$(COMPIL_DIR)\bin\xlink.exeCUR_LIB=$(COMPIL_DIR)\SRC\CLIB\INC\
CB_IC_RULE = $(iccavr)
!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
NULL=nul
!ENDIF{$(SEARCH_PATH)}.cxx.obj:
if not exist "$(CUR_CFG)\$(NULL)" md "$(CUR_CFG)"
$(ICC) $(CB_IC_RULE) -o $(CUR_CFG)\$*.obj -l $(CUR_CFG)\$*.lst -I $(CUR_LIB)\ -I $(COMPIL_DIR)\inc\ %|F.cpp.obj:
if not exist "$(CUR_CFG)\$(NULL)" md "$(CUR_CFG)"
$(ICC) $(CB_IC_RULE) -o $(CUR_CFG)\$*.obj -l $(CUR_CFG)\$*.lst -I $(CUR_LIB)\ -I $(COMPIL_DIR)\inc\ $*.cpp.c.obj:
if not exist "$(CUR_CFG)\$(NULL)" md "$(CUR_CFG)"
$(ICC) $(CB_IC_RULE) -o $(CUR_CFG)\$*.obj -l $(CUR_CFG)\$*.lst -I $(CUR_LIB)\ -I $(COMPIL_DIR)\inc\ $*.c.a90.obj:
if not exist "$(CUR_CFG)\$(NULL)" md "$(CUR_CFG)"
$(ASM) -b -re -v0 -o $(CUR_CFG)\$*.obj -l $(CUR_CFG)\$*.lst $*.a90OUTPUT = \
-OMPDS-CODE,(CODE)=$(CUR_CFG)\Out\$(NAME).bin \
-Ointel-extended,(CODE)=$(CUR_CFG)\Out\$(NAME).hex \
-OMPDS-CODE,(XDATA)=$(CUR_CFG)\Out\$(NAME).eeb \
-Ointel-extended,(XDATA)=$(CUR_CFG)\Out\$(NAME).eep \
-Oubrof=$(CUR_CFG)\Out\$(NAME).d90 \OPT_LINK = \
-I$(COMPIL_DIR)\LIB \
-f sys\am8.xcl \
-l $(CUR_CFG)\$(NAME).map \
-xmsoe \
$(COMPIL_DIR)\lib\cl1t-ec.r90
$(NAME).hex: $(FILES)
if not exist "$(CUR_CFG)\Out\$(NULL)" md "$(CUR_CFG)\Out"
$(LINK) $(LINKFILES) $(OUTPUT) $(OPT_LINK)