view gpf/CCD/util/makefile @ 164:10fc1fb079d7

dl1_com.c: starting with an import of l1_isr_glue.c from gcc version
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 07 Jun 2016 04:59:26 +0000
parents 509db1a7b7b8
children
line wrap: on
line source

#----------------------------------------------------------------------------- 
#  Project :  
#  Modul   :  makefile
#----------------------------------------------------------------------------- 
#  Copyright 2002 Texas Instruments Berlin, AG 
#                 All rights reserved. 
# 
#                 This file is confidential and a trade secret of Texas 
#                 Instruments Berlin, AG 
#                 The receipt of or possession of this file does not convey 
#                 any rights to reproduce or disclose its contents or to 
#                 manufacture, use, or sell anything it may describe, in 
#                 whole, or in part, without the specific written consent of 
#                 Texas Instruments Berlin, AG. 
#----------------------------------------------------------------------------- 
#  Purpose:   (gnu-) makefile to build stacksize tool for CCD
#-----------------------------------------------------------------------------

PLATFORM=arm7
TARGET=nuc
ASM_ONLY=1
MEMSUPER=0
DEBUG=0
TRACE=0
GPFLIBDIR=../../LIB/WIN32$(DEBUGDIR)
OBJDIR=../obj/ccd/$(TARGET)/$(PLATFORM)$(TRACEDIR)$(DEBUGDIR)$(PSDIR)
CC=cl.exe
_OBJFILES=msg_stack.obj ccd_stack.obj
OBJFILES=$(patsubst %.obj,$(OBJDIR)/%.obj,$(_OBJFILES))
DEFINES=/D "CCD_CDGINDEP" /D "NEW_FRAME" /D "_WIN32_"\
            /D "WIN32" /D "CCD_SYMBOLS" /D "CCDDATA_DABSTR"
INCLUDES=/I "." /I ".." /I "../../inc" /I "../../inc/win32"
CFLAGS=/c /nologo /W3 /GX /Zp1 /MDd /Z7 /Fo./$(OBJDIR)/ $(DEFINES) $(INCLUDES)
override LFLAGS=/nologo /pdb:none /subsystem:console /machine:I386 /DEBUG\
  $(GPFLIBDIR)/ccddata_load.lib
H_FILES=ccd_stack.h ccd_apistack.h

include ../ccd_inc.mk

PA_FILE=ccd$(XXX).pa

VPATH=$(OBJDIR)

ccd_stacksize.exe:$(H_FILES) $(_OBJFILES)
	link /out:$@ $(LFLAGS) $(OBJFILES)

echo:
	@echo $(OBJDIR) $(CCD_LIB) $(PA_FILE)

ccd_apistack.h: $(PA_FILE)
	api.bat \> ccd_apistack.h

ccd_stack.h: $(PA_FILE)
	stack.bat $(OBJDIR)/$(PA_FILE) \> ccd_stack.h

$(PA_FILE):
	$(MAKE) PLATFORM=$(PLATFORM) TARGET=$(TARGET) ASM_ONLY=1\
	        DEBUG=$(DEBUG) TRACE=$(TRACE) -C ..

$(_OBJFILES) : %.obj : %.c
	$(CC) $(CFLAGS) $<

$(_OBJFILES): $(HFILES) $(PA_FILE)

rmpa:
	rm -f $(OBJDIR)/$(PA_FILE)
clean:
	rm -f $(OBJFILES) ccd_apistack.h ccd_stack.h

cleanall: clean
	$(MAKE) PLATFORM=$(PLATFORM) TARGET=$(TARGET) ASM_ONLY=1\
	        DEBUG=$(DEBUG) TRACE=$(TRACE) -C .. clean