FreeCalypso > hg > leo2moko-debug
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 #----------------------------------------------------------------------------- | |
2 # Project : | |
3 # Modul : makefile | |
4 #----------------------------------------------------------------------------- | |
5 # Copyright 2002 Texas Instruments Berlin, AG | |
6 # All rights reserved. | |
7 # | |
8 # This file is confidential and a trade secret of Texas | |
9 # Instruments Berlin, AG | |
10 # The receipt of or possession of this file does not convey | |
11 # any rights to reproduce or disclose its contents or to | |
12 # manufacture, use, or sell anything it may describe, in | |
13 # whole, or in part, without the specific written consent of | |
14 # Texas Instruments Berlin, AG. | |
15 #----------------------------------------------------------------------------- | |
16 # Purpose: (gnu-) makefile to build stacksize tool for CCD | |
17 #----------------------------------------------------------------------------- | |
18 | |
19 PLATFORM=arm7 | |
20 TARGET=nuc | |
21 ASM_ONLY=1 | |
22 MEMSUPER=0 | |
23 DEBUG=0 | |
24 TRACE=0 | |
25 GPFLIBDIR=../../LIB/WIN32$(DEBUGDIR) | |
26 OBJDIR=../obj/ccd/$(TARGET)/$(PLATFORM)$(TRACEDIR)$(DEBUGDIR)$(PSDIR) | |
27 CC=cl.exe | |
28 _OBJFILES=msg_stack.obj ccd_stack.obj | |
29 OBJFILES=$(patsubst %.obj,$(OBJDIR)/%.obj,$(_OBJFILES)) | |
30 DEFINES=/D "CCD_CDGINDEP" /D "NEW_FRAME" /D "_WIN32_"\ | |
31 /D "WIN32" /D "CCD_SYMBOLS" /D "CCDDATA_DABSTR" | |
32 INCLUDES=/I "." /I ".." /I "../../inc" /I "../../inc/win32" | |
33 CFLAGS=/c /nologo /W3 /GX /Zp1 /MDd /Z7 /Fo./$(OBJDIR)/ $(DEFINES) $(INCLUDES) | |
34 override LFLAGS=/nologo /pdb:none /subsystem:console /machine:I386 /DEBUG\ | |
35 $(GPFLIBDIR)/ccddata_load.lib | |
36 H_FILES=ccd_stack.h ccd_apistack.h | |
37 | |
38 include ../ccd_inc.mk | |
39 | |
40 PA_FILE=ccd$(XXX).pa | |
41 | |
42 VPATH=$(OBJDIR) | |
43 | |
44 ccd_stacksize.exe:$(H_FILES) $(_OBJFILES) | |
45 link /out:$@ $(LFLAGS) $(OBJFILES) | |
46 | |
47 echo: | |
48 @echo $(OBJDIR) $(CCD_LIB) $(PA_FILE) | |
49 | |
50 ccd_apistack.h: $(PA_FILE) | |
51 api.bat \> ccd_apistack.h | |
52 | |
53 ccd_stack.h: $(PA_FILE) | |
54 stack.bat $(OBJDIR)/$(PA_FILE) \> ccd_stack.h | |
55 | |
56 $(PA_FILE): | |
57 $(MAKE) PLATFORM=$(PLATFORM) TARGET=$(TARGET) ASM_ONLY=1\ | |
58 DEBUG=$(DEBUG) TRACE=$(TRACE) -C .. | |
59 | |
60 $(_OBJFILES) : %.obj : %.c | |
61 $(CC) $(CFLAGS) $< | |
62 | |
63 $(_OBJFILES): $(HFILES) $(PA_FILE) | |
64 | |
65 rmpa: | |
66 rm -f $(OBJDIR)/$(PA_FILE) | |
67 clean: | |
68 rm -f $(OBJFILES) ccd_apistack.h ccd_stack.h | |
69 | |
70 cleanall: clean | |
71 $(MAKE) PLATFORM=$(PLATFORM) TARGET=$(TARGET) ASM_ONLY=1\ | |
72 DEBUG=$(DEBUG) TRACE=$(TRACE) -C .. clean |