home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-05-19 | 2.2 KB | 99 lines |
- #
- # This file forms part of "TKERN" - "Troy's Kernel for Windows".
- #
- # Copyright (C) 1994 Troy Rollo <troy@cbme.unsw.EDU.AU>
- #
- # This library is free software; you can redistribute it and/or
- # modify it under the terms of the GNU Library General Public
- # License as published by the Free Software Foundation; either
- # version 2 of the License, or (at your option) any later version.
- #
- # This library 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
- # Library General Public License for more details.
- #
- # You should have received a copy of the GNU Library General Public
- # License along with this library; if not, write to the Free
- # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- #
-
- .AUTODEPEND
-
- CC = bcc
-
- GENFLAGS = -DSTRICT -w! -ml -v -c -I..\INCLUDE
- CFLAGS = -W $(GENFLAGS)
- DLLFLAGS = -WD $(GENFLAGS)
-
- CCMD = $(CC) $(CFLAGS)
- DLLCMD = $(CC) $(DLLFLAGS)
-
- .c.obj:
- $(DLLCMD) $*.c
-
- default: tkern.lib tklib.lib tkfmangr.exe
-
- install: default
- copy tkern.dll c:\windows\system
- copy tkfmangr.exe c:\windows\system
-
-
- # The stuff for the kernel dll first
-
- tkern.lib: tkern.dll
- implib tkern.lib tkern.dll
- copy tkern.lib ..\lib
-
- tkern.dll: tkern.obj formattr.obj misc.obj io.obj process.obj
- tlink /v /s /c /C /Twd @&&!
- c0dl $**,tkern,tkern,cwl cl mathwl import,tkern
- !
-
-
-
- # Then the stuff for tkfmangr
-
- window.obj: window.c
- $(CCMD) $*.c
-
- tfile.obj: tfile.c
- $(CCMD) $*.c
-
- tpipe.obj: tpipe.c
- $(CCMD) $*.c
-
- tdevice.obj: tdevice.c
- $(CCMD) $*.c
-
- tkfmangr.obj : tkfmangr.c
- $(CCMD) $*.c
-
- tkfmangr.exe: tkfmangr.obj tdevice.obj window.obj tfile.obj tpipe.obj
- tlink /v /c /C /s /n /Twe @&&!
- c0wl.obj $**,tkfmangr.exe,,tkern cwl import
- !
-
-
-
-
- # Then tklib.lib, the objs that need to be linked into the apps.
-
- stdio.obj: stdio.c
- $(CCMD) $*.c
-
- links.obj: links.c
- $(CCMD) $*.c
-
- putenv.obj: putenv.c
- $(CCMD) $*.c
-
- setupio.obj: setupio.c
- $(CCMD) -zACODE -zPCODE -zC_TEXT $*.c
-
-
- tklib.lib: links.obj putenv.obj stdio.obj setupio.obj
- del tklib.lib
- tlib tklib.lib /C /E +links.obj +putenv.obj +stdio.obj +setupio.obj
- copy tklib.lib ..\lib