# # Makefile for Borland C++ 3.1 for kernel.sys # # $Id$ # !include "..\mkfiles\generic.mak" RELEASE = 1.00 # Compiler and Options INCLUDE=..\hdr LIB= $(COMPILERBASE)\lib LIBPATH = . #AFLAGS = /Mx /DSTANDALONE=1 /I..\HDR LIBS =..\LIB\DEVICE.LIB ..\LIB\LIBM.LIB #INITCFLAGS =$(ALLCFLAGS) -zAINIT -zCINIT_TEXT -zDIB -zRID -zTID -zPIGROUP -zBIB \ #-zGIGROUP -zSIGROUP #CFLAGS =$(ALLCFLAGS) -zAHMA -zCHMA_TEXT HDR=../hdr/ # *Implicit Rules* # 'standard' compiles .c.obj : $(CC) $(CFLAGS) -c $< $(STDPATCH) $*.obj # *List Macros* EXE_dependencies = \ apisupt.obj \ asmsupt.obj \ blockio.obj \ break.obj \ chario.obj \ config.obj \ console.obj \ dosidle.obj \ dosfns.obj \ dosnames.obj \ dsk.obj \ initdisk.obj \ entry.obj \ error.obj \ execrh.obj \ fatdir.obj \ fatfs.obj \ fattab.obj \ fcbfns.obj \ initoem.obj \ int2f.obj \ inthndlr.obj \ io.obj \ intr.obj \ ioctl.obj \ irqstack.obj \ kernel.obj \ lfnapi.obj \ main.obj \ memmgr.obj \ misc.obj \ newstuff.obj \ network.obj \ nls.obj \ nls_hc.obj \ nlssupt.obj \ prf.obj \ iprf.obj \ printer.obj \ procsupt.obj \ serial.obj \ strings.obj \ sysclk.obj \ syspack.obj \ systime.obj \ task.obj \ inithma.obj \ dyninit.obj # *Explicit Rules* production: ..\bin\kernel.sys ..\bin\kernel.sys: kernel.sys copy kernel.sys ..\bin copy kernel.sys ..\bin\$(THETARGET).sys copy kernel.map ..\bin\$(THETARGET).map kernel.sys: kernel.exe ..\utils\exeflat.exe $(XUPX) kernel.exe ..\utils\exeflat kernel.exe kernel.sys 0x60 -S0x10 -S0x8B $(UPXOPT) clobber: clean -$(RM) kernel.exe kernel.sys status.me clean: -$(RM) *.obj *.bak *.crf *.xrf *.map *.lst *.cod *.err # XXX: This is a very ugly way of linking the kernel, forced upon us by the # inability of Turbo `make' 2.0 to perform command line redirection. -- ror4 kernel.exe: $(EXE_dependencies) $(LIBS) -$(RM) kernel.res ..\utils\echoto kernel.res kernel.obj iprf.obj+ ..\utils\echoto kernel.res entry.obj io.obj blockio.obj chario.obj dosfns.obj console.obj+ ..\utils\echoto kernel.res printer.obj serial.obj dsk.obj initdisk.obj error.obj fatdir.obj fatfs.obj+ ..\utils\echoto kernel.res fattab.obj fcbfns.obj initoem.obj initHMA.obj inthndlr.obj ioctl.obj nls_hc.obj+ ..\utils\echoto kernel.res main.obj config.obj memmgr.obj misc.obj newstuff.obj nls.obj intr.obj+ ..\utils\echoto kernel.res dosnames.obj prf.obj strings.obj network.obj sysclk.obj syspack.obj+ ..\utils\echoto kernel.res systime.obj task.obj int2f.obj irqstack.obj apisupt.obj+ ..\utils\echoto kernel.res asmsupt.obj execrh.obj nlssupt.obj procsupt.obj break.obj+ ..\utils\echoto kernel.res dosidle.obj dyninit.obj lfnapi.obj ..\utils\echoto kernel.res kernel.exe ..\utils\echoto kernel.res kernel.map ..\utils\echoto kernel.res ..\lib\libm.lib ..\lib\device.lib $(LINK) @kernel.res; -$(RM) kernel.res # *Individual File Dependencies* kernel.obj: kernel.asm segs.inc ludivmul.inc console.obj: console.asm io.inc printer.obj: printer.asm io.inc serial.obj: serial.asm io.inc entry.obj: entry.asm segs.inc $(HDR)stacks.inc apisupt.obj: apisupt.asm segs.inc execrh.obj: execrh.asm segs.inc int2f.obj: int2f.asm segs.inc intr.obj: intr.asm segs.inc intr.h io.obj: io.asm segs.inc irqstack.obj: irqstack.asm nls_hc.obj: nls_hc.asm segs.inc nlssupt.obj: nlssupt.asm segs.inc procsupt.obj: procsupt.asm segs.inc $(HDR)stacks.inc dosidle.obj: dosidle.asm segs.inc # XXX: Special handling for initialization modules -- this is required because # TC 2.01 cannot handle `#pragma option' like TC 3 can. -- ror4 INITHEADERS=init-mod.h init-dat.h CONFIGURATION = turboc.cfg makefile ..\mkfiles\generic.mak ..\mkfiles\$(COMPILER).MAK HEADERS=\ $(HDR)portab.h $(HDR)device.h $(HDR)mcb.h $(HDR)pcb.h \ $(HDR)fat.h $(HDR)fcb.h $(HDR)tail.h $(HDR)time.h $(HDR)process.h \ $(HDR)dcb.h $(HDR)sft.h $(HDR)cds.h $(HDR)exe.h $(HDR)fnode.h \ $(HDR)dirmatch.h $(HDR)file.h $(HDR)clock.h $(HDR)kbd.h $(HDR)error.h \ $(HDR)version.h globals.h proto.h dyndata.h # XXX: I generated these using `gcc -MM' and `sed', so they may not be # completely correct... -- ror4 #blockio.obj: blockio.c $(HEADERS) $(CONFIGURATION) #break.obj: break.c $(HEADERS) $(CONFIGURATION) #chario.obj: chario.c $(HEADERS) $(CONFIGURATION) #dosfns.obj: dosfns.c $(HEADERS) $(CONFIGURATION) #dosnames.obj: dosnames.c $(HEADERS) $(CONFIGURATION) #dsk.obj: dsk.c $(HEADERS) $(CONFIGURATION) #error.obj: error.c $(HEADERS) $(CONFIGURATION) #fatdir.obj: fatdir.c $(HEADERS) $(CONFIGURATION) #fatfs.obj: fatfs.c $(HEADERS) $(CONFIGURATION) #fattab.obj: fattab.c $(HEADERS) $(CONFIGURATION) #fcbfns.obj: fcbfns.c $(HEADERS) $(CONFIGURATION) #inthndlr.obj: inthndlr.c $(HEADERS) $(CONFIGURATION) #ioctl.obj: ioctl.c $(HEADERS) $(CONFIGURATION) #memmgr.obj: memmgr.c $(HEADERS) $(CONFIGURATION) #misc.obj: misc.c $(HEADERS) $(CONFIGURATION) #lfnapi.obj: lfnapi.c $(HEADERS) $(CONFIGURATION) #newstuff.obj: newstuff.c $(HEADERS) $(CONFIGURATION) #network.obj: network.c $(HEADERS) $(CONFIGURATION) #nls.obj: nls.c $(HEADERS) $(CONFIGURATION) # \ # 001-437.nls prf.obj: prf.c $(HDR)\portab.h $(CONFIGURATION) strings.obj: strings.c $(CONFIGURATION) sysclk.obj: sysclk.c $(HEADERS) $(CONFIGURATION) syspack.obj: syspack.c $(HEADERS) $(CONFIGURATION) systime.obj: systime.c $(HEADERS) $(CONFIGURATION) task.obj: task.c $(HEADERS) $(CONFIGURATION) # now the funny stuff :-) # Files in the INIT segment # $(CC) $(INITCFLAGS) -c $*.c # patchobj $*.obj $(INITPATCH) config.obj: config.c $(INITHEADERS) $(HEADERS) $(CONFIGURATION) $(CC) $(INITCFLAGS) -c $*.c $(INITPATCH) $*.obj initoem.obj: initoem.c $(INITHEADERS) $(HEADERS) $(CONFIGURATION) $(CC) $(INITCFLAGS) -c $*.c $(INITPATCH) $*.obj main.obj: main.c $(INITHEADERS) $(HEADERS) $(CONFIGURATION) $(CC) $(INITCFLAGS) -c $*.c $(INITPATCH) $*.obj inithma.obj: inithma.c $(INITHEADERS) $(HEADERS) $(CONFIGURATION) $(CC) $(INITCFLAGS) -c $*.c $(INITPATCH) $*.obj dyninit.obj: dyninit.c $(INITHEADERS) $(HEADERS) $(CONFIGURATION) $(CC) $(INITCFLAGS) -c $*.c $(INITPATCH) $*.obj initdisk.obj: initdisk.c $(INITHEADERS) $(HEADERS) $(CONFIGURATION) $(CC) $(INITCFLAGS) -c $*.c $(INITPATCH) $*.obj #the printf for INIT_TEXT - yet another special case, this file includes prf.c iprf.obj: iprf.c prf.c $(HDR)\portab.h $(CONFIGURATION) $(CC) $(INITCFLAGS) -c $*.c $(INITPATCH) $*.obj # Log: makefile,v # # Revision 1.14 2000/03/31 05:40:09 jtabor # Added Eric W. Biederman Patches # # Revision 1.13 2000/03/17 22:59:04 kernel # Steffen Kaiser's NLS changes # # Revision 1.12 2000/03/09 06:07:11 kernel # 2017f updates by James Tabor # # Revision 1.11 1999/09/23 04:40:47 jprice # *** empty log message *** # # Revision 1.8 1999/09/13 20:41:41 jprice # Some clean up. # # Revision 1.7 1999/08/25 03:18:09 jprice # ror4 patches to allow TC 2.01 compile. # # Revision 1.6 1999/08/10 17:57:13 jprice # ror4 2011-02 patch # # Revision 1.5 1999/04/23 04:25:15 jprice # no message # # Revision 1.4 1999/04/23 03:45:11 jprice # Improved by jprice # # Revision 1.3 1999/04/16 12:21:22 jprice # Steffen c-break handler changes # # Revision 1.2 1999/04/13 15:48:21 jprice # no message # # Revision 1.1.1.1 1999/03/29 15:41:15 jprice # New version without IPL.SYS # # Revision 1.7 1999/03/01 06:04:37 jprice # Fixed so it'll work with config.mak # # Revision 1.6 1999/03/01 05:46:43 jprice # Turned off DEBUG define. # # Revision 1.5 1999/02/09 04:49:43 jprice # Make makefile use common config.mak file # # Revision 1.4 1999/02/08 05:55:57 jprice # Added Pat's 1937 kernel patches # # Revision 1.3 1999/02/04 03:09:59 jprice # Added option to share constants (-d). # # Revision 1.2 1999/01/22 04:13:26 jprice # Formating # # Revision 1.1.1.1 1999/01/20 05:51:01 jprice # Imported sources # # # Rev 1.8.1 10 Jan 1999 SRM #Took out "/P-" from TLINK #Changed "bcc" to "tcc" # # Rev 1.9 06 Dec 1998 8:45:40 patv #Added new files for I/O subsystem. # # Rev 1.8 22 Jan 1998 14:50:06 patv #Outdated stacks.asm. # # Rev 1.6 03 Jan 1998 8:36:50 patv #Converted data area to SDA format # # Rev 1.5 30 Jan 1997 7:55:54 patv #Added TSC flag for trace support. # # Rev 1.4 16 Jan 1997 12:46:42 patv #pre-Release 0.92 feature additions # # Rev 1.3 29 Aug 1996 13:07:34 patv #Bug fixes for v0.91b # # Rev 1.2 29 May 1996 21:03:32 patv #bug fixes for v0.91a # # Rev 1.1 19 Feb 1996 3:35:38 patv #Added NLS, int2f and config.sys processing # # Rev 1.0 02 Jul 1995 8:30:22 patv #Initial revision. # # EndLog #