diff gpf/CCD/util/makefile @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gpf/CCD/util/makefile	Mon Jun 01 03:24:05 2015 +0000
@@ -0,0 +1,72 @@
+#----------------------------------------------------------------------------- 
+#  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