/[TIS-4000 Rel T60]/Tornado/stdMakefiles/Makefile
ViewVC logotype

Contents of /Tornado/stdMakefiles/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.11 - (show annotations)
Thu Mar 16 17:13:59 2000 UTC (23 years, 11 months ago) by tis4000
Branch: MAIN
CVS Tags: Duluth_baseline, LMC_baseline, HEAD
Changes since 1.10: +4 -4 lines
changed / to \ where dos did not understand the / - Steel

1 # Define the release root directory
2 TOP = ..\..\..
3
4 # Define the sed and awk directory
5 CYG_TOP = c:/tools/Cygnus
6
7 # Define the Tornado install directory and host type
8 ifeq ($(CPU),I80486)
9 WIND_BASE = C:\Tornadox86
10 # Uncomment for SSLeay -
11 ADDED_CFLAGS = -g -Ic:\tools/SSLeay/SSLeay-0.9.0b.vxWorks/include -Ic:\tools/spyrus_lynks -I$(SHR)\epicsH -I$(SRC) -I$(WIND_BASE)\target\h -I\tis\Tornado\Target\h -DBYTEORDER_0123 -DUSE_LYNKS_CARD -DSPEXLIB_DEBUG -I..
12 # Uncomment for SSLC -
13 # ADDED_CFLAGS = -g -Ic:\tools\SSLC10\vxworks\library\include -Ic:\tools/spyrus_lynks -I$(SHR)\epicsH -I$(SRC) -I$(WIND_BASE)\target\h -I\tis\Tornado\Target\h -DBYTEORDER_0123 -DUSE_LYNKS_CARD
14
15 WIND_HOST_TYPE = x86-win32
16
17 # The following section is only processed if a CPU specification has been made
18 ifneq ($(CPU),)
19
20 TOOL = gnu
21 SHR = $(TOP)\share
22 SRCRT = $(SHR)\src
23 BINRT = $(TOP)\Tornado
24 SRC = $(SRCRT)\$(CUR)
25 TISH = $(SHR)\epicsH
26
27 include $(WIND_BASE)\target\h\make\defs.bsp
28 include $(WIND_BASE)\target\h\make\make.$(CPU)$(TOOL)
29 include $(WIND_BASE)\target\h\make\defs.$(WIND_HOST_TYPE)
30 include $(WIND_BASE)\target\h\make\rules.bsp
31
32 # The following file defines the SRCS and OBJS in the project
33 include ../Makefile.config
34
35 # The following file defines the target for the project
36 include ../Makefile.target
37
38 # This is where we build dependenciesfor the target
39 # (we must add PRIV_AUDIT to get the SSL includes into the .depend where necessary)
40
41 depend :: Makefile.depend
42
43 Makefile.depend : ../buildVersion.h $(SRCS)
44 @ $(RM) Makefile.depend
45 $(CC) -DvxWorks -DV5_vxWorks -M $(CFLAGS) $(X486INX) -DPRIV_AUDIT $(SRCS) > Makefile.depend
46
47 # the following file includes the dependencies for the components in the project
48 include Makefile.depend
49
50 # End of if dependencies section
51 #
52 # Generic compile for alternate SRC directory
53 #
54
55 %.o : $(SRC)/%.c
56 @ $(RM) $@
57 $(CC) -DvxWorks -DV5_vxWorks -c $(CFLAGS) $(X486INX) -o $@ $<
58
59 # buildVersion.h file maker - defines where, what and when built
60 ../buildVersion.h :: $(SRCS) ../Makefile.target ../../stdMakefiles/Makefile
61 $(CYG_TOP)/pwd > work0.tmp
62 $(CYG_TOP)/sed -f ../../stdMakefiles/vrsscript.sed work0.tmp > xxx.txt
63 ..\..\stdMakefiles\getverdefs.bat xxx.txt > work1.tmp
64 $(CYG_TOP)/sed '/define/!d' work1.tmp > ../buildVersion.h
65 ..\..\stdMakefiles\getdate.bat > work2.tmp
66 $(CYG_TOP)/sed '/date/d' work2.tmp >> ../buildVersion.h
67 $(RM) work0.tmp work1.tmp work2.tmp xxx.txt
68 endif
69 else
70 WIND_BASE = C:\Tornado
71 ADDED_CFLAGS = -g -I$(SHR)\epicsH -I$(SRC) -I$(WIND_BASE)\target\h -I\tis\Tornado\Target\h -I..
72
73 WIND_HOST_TYPE = x86-win32
74
75 # The following section is only processed if a CPU specification has been made
76 ifneq ($(CPU),)
77
78 TOOL = gnu
79 SHR = $(TOP)\share
80 SRCRT = $(SHR)\src
81 BINRT = $(TOP)\Tornado
82 SRC = $(SRCRT)\$(CUR)
83 TISH = $(SHR)\epicsH
84
85 include $(WIND_BASE)\target\h\make\defs.bsp
86 include $(WIND_BASE)\target\h\make\make.$(CPU)$(TOOL)
87 include $(WIND_BASE)\target\h\make\defs.$(WIND_HOST_TYPE)
88 include $(WIND_BASE)\target\h\make\rules.bsp
89
90 # The following file defines the SRCS and OBJS in the project
91 include ../Makefile.config
92
93 # The following file defines the target for the project
94 include ../Makefile.target
95
96 # This is where we build dependencies for the target
97 depend :: Makefile.depend
98
99 Makefile.depend : ../buildVersion.h $(SRCS)
100 @ $(RM) Makefile.depend
101 $(CC) -DvxWorks -DV5_vxWorks -M $(CFLAGS) $(M30INX) $(SRCS) > Makefile.depend
102
103 # the following file includes the dependencies for the components in the project
104 include Makefile.depend
105
106 # End of if dependencies section
107 #
108 # Generic compile for alternate SRC directory
109 #
110
111 %.o : $(SRC)/%.c
112 @ $(RM) $@
113 $(CC) -DvxWorks -DV5_vxWorks -c $(CFLAGS) $(M30INX) -o $@ $<
114
115 # buildVersion.h file maker - defines where, what and when built
116 ../buildVersion.h :: $(SRCS) ../Makefile.target ../../stdMakefiles/Makefile
117 $(CYG_TOP)/pwd > work0.tmp
118 $(CYG_TOP)/sed -f ../../stdMakefiles/vrsscript.sed work0.tmp > xxx.txt
119 ..\..\stdMakefiles\getverdefs.bat xxx.txt > work1.tmp
120 $(CYG_TOP)/sed '/define/!d' work1.tmp > ../buildVersion.h
121 ..\..\stdMakefiles\getdate.bat > work2.tmp
122 $(CYG_TOP)/sed '/date/d' work2.tmp >> ../buildVersion.h
123 $(RM) work0.tmp work1.tmp work2.tmp xxx.txt
124
125 endif
126 endif
127 # End of if CPU is defined section
128
129

  ViewVC Help
Powered by ViewVC 1.1.30