comparison src/gpf3/ccd/ccdedit.mk @ 2:c41a534f33c6

src/gpf3: preened GPF goo from TCS3.2
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Sep 2016 23:52:50 +0000
parents
children
comparison
equal deleted inserted replaced
1:864b8cc0cf63 2:c41a534f33c6
1 #-----------------------------------------------------------------------------
2 # Project :
3 # Modul : ccdedit.mk
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 : Build ccdedit.lib.
17 #-----------------------------------------------------------------------------
18 GPFINCDIR=$(GPF)/inc
19 GPFLIBDIR=$(GPF)/LIB
20
21 VPATH=$(OBJDIR)
22
23 CCDDIR=.
24 CCDEDIT_LIBNAME=ccdedit.lib
25 CCDEDIT_LOCAL_LIB=$(OBJDIR)/$(CCDEDIT_LIBNAME)
26 CCDEDIT_LIB=$(subst \,/,$(GPFLIBDIR)/$(TARGET)$(DEBUGDIR)/$(CCDEDIT_LIBNAME))
27 CC=cl.exe
28 INCLUDES=-I "$(CCDDIR)" -I "$(GPFINCDIR)"
29 DEFINES=$(PROSTCFLAGS) -DWIN32 -DCCD_SYMBOLS -DCCDDATA_LOAD -D_TOOLS_
30 CFLAGS=/nologo /c /W3 /Zp1 /Zl $(DEFINES) $(INCLUDES)
31 LINK=link.exe
32 MKLIB=lib.exe
33 LDFLAGS_LIB=/nologo /OUT:"$(CCDEDIT_LOCAL_LIB)"
34 OBJECTS = ccdedit.obj pdi.obj
35 OBJFILES=$(patsubst %.obj,$(OBJDIR)/%.obj,$(OBJECTS))
36 TARGET=WIN32
37 # Debug
38 ifeq ($(DEBUG), 1)
39 DEBUGDIR=/debug
40 CFLAGS += /Fr$(OBJDIR)/ /Z7 -D _MT -D _DLL -D _DEBUG
41 else
42 DEBUGDIR=
43 CFLAGS += -D _MT -D _DLL
44 endif
45 OBJDIR=obj/ccdedit$(DEBUGDIR)
46
47 all: $(CCDEDIT_LOCAL_LIB)
48
49 export: $(CCDEDIT_LIB)
50
51 colib:
52 -cleartool co -nda -nc $(CCDEDIT_LIB)
53
54 cilib:
55 -cleartool ci -nc $(CCDEDIT_LIB)
56
57 $(CCDEDIT_LIB): $(CCDEDIT_LOCAL_LIB)
58 cp "$<" $@
59
60 $(CCDEDIT_LOCAL_LIB): $(OBJDIR) $(OBJECTS)
61 $(MKLIB) $(LDFLAGS_LIB) $(OBJFILES)
62
63 $(OBJDIR):
64 @gmkdir -p $(OBJDIR)
65
66 $(OBJECTS): %.obj: %.c
67 $(CC) $(CFLAGS) "$<" /Fo$(OBJDIR)/$@
68
69 clean:
70 rm -f $(OBJDIR)/ccdedit.* $(OBJDIR)/pdi.*
71
72 ccdedit.obj: ccdedit.c $(GPFINCDIR)/typedefs.h $(CCDDIR)/ccdtable.h \
73 $(CCDDIR)/ccddata.h $(GPFINCDIR)/ccdedit.h
74
75 pdi.obj: pdi.c $(GPFINCDIR)/typedefs.h $(CCDDIR)/ccdtable.h \
76 $(CCDDIR)/ccddata.h $(GPFINCDIR)/pdi.h $(GPFINCDIR)/CCDAPI.H