# $Id: makefile.os2.icc.mk 51 2003-04-07 01:30:32Z bird $ # # OS/2 VAC++ v3.08 bootstrap makefile. # # Copyright (c) 2003 knut st. osmundsen # # # This file is part of kBuild. # # kBuild is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # kBuild is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with kBuild; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # misc variables MAKEFILE = makefile.os2.icc.mk POSTFIX = !ifdef DEBUG POSTFIX = .dbg !endif !ifdef PROFILE POSTFIX = .prf !endif OBJDIR = ..\obj\os2-icc-kmk$(POSTFIX) # paths PATH_KLIB = g:\ktaskmgr\tree # PATH_TOOLKIT, PATH_VAC308,.. is defined in the environment. # compiler setup CC = icc.exe !ifdef DEBUG CFLAGS_1 = /O- -DDEBUG !endif !ifdef PROFILE CFLAGS_1 = /O+ /Gh !endif CFLAGS = /Q /Ti+ /Gm /Ge /Gl /W3 -DOS2 -D__i386__ -DKMK \ -I$(PATH_KLIB)\Generic\include \ -I$(PATH_KLIB)\Generic\include\kLibCRT \ -I$(PATH_TOOLKIT)\h \ -I$(PATH_VAC308)\include \ $(CFLAGS_1) CFLAGS_KMK = -IkMk\include -IkMk -DUSE_KLIB $(CFLAGS) -UDEBUG -DMACHINE=\"ibmos2\" -DMACHINE_ARCH=\"x86\" -DMACHINE_CPU=\"386\" \ # linker setup LD = ilink.exe STRIP = !ifdef DEBUG LDFLAGS_1 = /NOEXEPACK !endif !ifdef PROFILE LDFLAGS_1 = !endif !ifndef LDFLAGS_1 #releas LDFLAGS_1 = /Packcode /Packdata STRIP = lxlite.exe !endif LDFLAGS = /NoLogo /NoExtDictionary /Optfunc /Base:0x10000 /Map /Linenumbers /Debug /PmType:vio $(LDFLAGS_1) # inference rules. {.}.c{$(OBJDIR)}.obj: $(CC) -c $(CFLAGS) -Fo$(OBJDIR)\$(@F) $(MAKEDIR)\$(