VirtualBox

source: kBuild/trunk/src/makefile.os2.icc.mk@ 48

Last change on this file since 48 was 48, checked in by bird, 22 years ago

Initial stuff.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1# $Id: makefile.os2.icc.mk 48 2003-04-05 03:22:01Z bird $
2#
3# OS/2 VAC++ v3.08 bootstrap makefile.
4#
5# Copyright (c) 2003 knut st. osmundsen <[email protected]>
6#
7#
8# This file is part of kBuild.
9#
10# kBuild is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
12# the Free Software Foundation; either version 2 of the License, or
13# (at your option) any later version.
14#
15# kBuild is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
21# along with kBuild; if not, write to the Free Software
22# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23#
24
25
26# misc variables
27MAKEFILE = makefile.os2.icc.mk
28POSTFIX =
29!ifdef DEBUG
30POSTFIX = .dbg
31!endif
32!ifdef PROFILE
33POSTFIX = .prf
34!endif
35OBJDIR = ..\obj\os2-icc-kmk.$(POSTFIX)
36
37# paths
38PATH_KLIB = g:\ktaskmgr\tree
39# PATH_TOOLKIT, PATH_VAC308,.. is defined in the environment.
40
41# compiler setup
42!ifdef DEBUG
43CFLAGS_1 = /O- -DDEBUG
44!endif
45!ifdef PROFILE
46CFLAGS_1 = /O+ /Gh
47!endif
48CFLAGS = /Q /Ti+ /Gm /Ge /Gl -DOS2 -D__i386__ -DKMK -I$(PATH_KLIB)\Generic\include -I$(PATH_TOOLKIT)\h -I$(PATH_VAC308)\include $(CFLAGS_1)
49CFLAGS_KMK = /IkMk\include $(CFLAGS)
50
51# linker setup
52!ifdef DEBUG
53LDFLAGS_1 = /NOEXEPACK
54!endif
55!ifdef PROFILE
56LDFLAGS_1 =
57!endif
58!ifndef LDFLAGS_1 #releas
59LDFLAGS_1 = /EXEPACK:2 /Packcode /Packdata
60!endif
61LDFLAGS = /NoLogo /NoExtDictionary /Optfunc /Base:0x10000 /Map /Linenumbers /Debug /PmType:vio $(LDFLAGS_1)
62
63
64# inference rules.
65{.}.c{$(OBJDIR)}.obj:
66 $(CC) -c $(CFLAGS) -Fo$(OBJDIR)\$(@F) $(MAKEDIR)\$(<F)
67
68{.\kShell}.c{$(OBJDIR)}.obj:
69 $(CC) -c $(CFLAGS) -Fo$(OBJDIR)\$(@F) $(MAKEDIR)\kShell\$(<F)
70
71{.\kMk}.c{$(OBJDIR)}.obj:
72 $(CC) -c $(CFLAGS_KMK) -Fo$(OBJDIR)\$(@F) $(MAKEDIR)\kMk\$(<F)
73
74{.\kMk\lst.lib}.c{$(OBJDIR)}.obj:
75 $(CC) -c $(CFLAGS_KMK) -Fo$(OBJDIR)\$(@F) $(MAKEDIR)\kMk\lst.lib$(<F)
76
77
78# object files
79OBJS_KSHELL = \
80$(OBJDIR)\kShell.obj
81
82OBJS_KMK = \
83#$(OBJDIR)\arch.obj\
84$(OBJDIR)\buf.obj\
85$(OBJDIR)\compat.obj\
86$(OBJDIR)\cond.obj\
87$(OBJDIR)\dir.obj\
88$(OBJDIR)\for.obj\
89$(OBJDIR)\hash.obj\
90$(OBJDIR)\job.obj\
91$(OBJDIR)\main.obj\
92$(OBJDIR)\make.obj\
93$(OBJDIR)\parse.obj\
94$(OBJDIR)\str.obj\
95$(OBJDIR)\suff.obj\
96$(OBJDIR)\targ.obj\
97$(OBJDIR)\var.obj\
98$(OBJDIR)\util.obj\
99$(OBJDIR)\helpers.obj\
100\
101$(OBJDIR)\lstAppend.obj \
102$(OBJDIR)\lstAtEnd.obj \
103$(OBJDIR)\lstAtFront.obj \
104$(OBJDIR)\lstClose.obj \
105$(OBJDIR)\lstConcat.obj \
106$(OBJDIR)\lstDatum.obj \
107$(OBJDIR)\lstDeQueue.obj \
108$(OBJDIR)\lstDestroy.obj \
109$(OBJDIR)\lstDupl.obj \
110$(OBJDIR)\lstEnQueue.obj \
111$(OBJDIR)\lstFind.obj \
112$(OBJDIR)\lstFindFrom.obj \
113$(OBJDIR)\lstFirst.obj \
114$(OBJDIR)\lstForEach.obj \
115$(OBJDIR)\lstForEachFrom.obj \
116$(OBJDIR)\lstInit.obj \
117$(OBJDIR)\lstInsert.obj \
118$(OBJDIR)\lstIsAtEnd.obj \
119$(OBJDIR)\lstIsEmpty.obj \
120$(OBJDIR)\lstLast.obj \
121$(OBJDIR)\lstMember.obj \
122$(OBJDIR)\lstNext.obj \
123$(OBJDIR)\lstOpen.obj \
124$(OBJDIR)\lstRemove.obj \
125$(OBJDIR)\lstReplace.obj \
126$(OBJDIR)\lstSucc.obj
127
128OBJS_KDEPEND = \
129$(OBJDIR)\fastdep.obj
130
131# sum objs.
132OBJS = $(OBJDIR)\mainmain.obj $(OBJS_KSHELL) $(OBJS_KMK) #$(OBJS_KDEPEND)
133
134
135# libs
136LIBS = \
137!ifdef DEBUG
138$(PATH_KLIB)\lib\debug\kLib.lib \
139!else
140$(PATH_KLIB)\lib\debug\kLib.lib \
141!ifdef PROFILE
142$(PATH_KLIB)\lib\debug\kProfile.lib \
143!endif
144!endif
145$(PATH_TOOLKIT)\os2386.lib \
146$(VAC308_TOOLKIT)\cppom30.lib \
147
148
149# the rules
150all: $(OBJDIR) $(OBJDIR)\kMk.exe
151
152
153$(OBJDIR):
154 -mkdir ..\obj
155 -mkdir $(OBJDIR)
156
157$(OBJDIR)\kMk.exe: $(OBJS)
158 $(LD) $(LDFLAGS) @<<$(OBJDIR)\$(@F).lnk
159/OUT:$(OBJDIR)\$(@F).exe
160/MAP:$(OBJDIR)\$(@F).map
161$(OBJS)
162$(LIBS)
163<<KEEP
164
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette