home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / c / cl5sr386.zip / GO32 / MAKEFILE < prev    next >
Text File  |  1992-08-19  |  3KB  |  116 lines

  1. # History:25,17
  2.  
  3. AFLAGS = /mx
  4. CFLAGS = -ms -M
  5.  
  6. .c.obj:
  7.     tcc $(CFLAGS) -DDEBUGGER=1 -DTOPLINEINFO=1 -DSOURCE_LIST -c $*
  8.     mv $*.obj d$*.obj
  9.     tcc $(CFLAGS) -DDEBUGGER=0 -DTOPLINEINFO=0 -c $*
  10.  
  11. .asm.obj:
  12.     tasm $(AFLAGS) /DDEBUGGER=1 /DTOPLINEINFO=1 $*;
  13.     mv $*.obj d$*.obj
  14.     tasm $(AFLAGS) /DDEBUGGER=0 /DTOPLINEINFO=0 $*;
  15.  
  16. OBJS =\
  17.     control.obj\
  18.     dalloc.obj\
  19.     debug.obj\
  20.     doutils.obj\
  21.     event.obj\
  22.     evintr.obj\
  23.     exphdlr.obj\
  24.     graphics.obj\
  25.     grprot.obj\
  26.     mono.obj\
  27.     mswitch.obj\
  28.     npx.obj\
  29.     paging.obj\
  30.     syms.obj\
  31.     tables.obj\
  32.     unassmbl.obj\
  33.     utils.obj\
  34.     valloc.obj\
  35.     vga.obj\
  36.     wild.obj\
  37.     xms.obj\
  38.     vcpi.obj
  39.  
  40. all : go32.exe go32t.exe stub.exe aout2exe.exe exe2aout.exe
  41.  
  42. clean scratch:
  43.     del *.exe
  44.     del *.obj
  45.     del *.map
  46.  
  47. stub.exe: stub.c
  48.     tcc stub.c
  49.     tdstrip stub
  50.  
  51. go32.exe: go32t.exe
  52.     copy go32t.exe go32.exe
  53.     tdstrip go32
  54.  
  55. # Note: some tlinks require /3 here, some barf if you supply it.
  56. go32t.exe : $(OBJS) go32.lnk
  57.     tlink /c /v /s /m /3 @go32.lnk
  58.     tlink /c /v /s /m /3 @debug32.lnk
  59.  
  60. bin2byte.exe : bin2byte.c
  61.     tcc bin2byte.c
  62.     -tdstrip bin2byte
  63.  
  64. stubbyte.h : bin2byte.exe stub.exe
  65.     bin2byte stub.exe stub_bytes stubbyte.h
  66.  
  67. aout2exe.exe : aout2exe.c stubbyte.h
  68.     tcc aout2exe
  69.     -tdstrip aout2exe
  70.  
  71. exe2aout.exe : exe2aout.c
  72.     tcc exe2aout
  73.     -tdstrip exe2aout
  74.  
  75. # DEPENDENCIES
  76.  
  77. debug.obj : build.h types.h gdt.h tss.h utils.h unassmbl.h syms.h paging.h npx.h mono.h
  78.  
  79. exphdlr.obj : build.h types.h gdt.h idt.h tss.h utils.h paging.h npx.h mono.h vcpi.h
  80.  
  81. control.obj : build.h types.h gdt.h idt.h tss.h valloc.h utils.h syms.h graphics.h mono.h vcpi.h
  82.  
  83. graphics.obj : build.h types.h paging.h graphics.h tss.h gdt.h
  84.  
  85. paging.obj : build.h types.h paging.h graphics.h tss.h gdt.h valloc.h dalloc.h utils.h aout.h mono.h vcpi.h
  86.  
  87. syms.obj : build.h types.h syms.h tss.h stab.h stab.def aout.h utils.h
  88.  
  89. unassmbl.obj : build.h types.h gdt.h idt.h tss.h utils.h unassmbl.h syms.h mono.h
  90.  
  91. utils.obj : build.h types.h tss.h gdt.h utils.h npx.h
  92.  
  93. valloc.obj : build.h types.h valloc.h xms.h mono.h vcpi.h
  94.  
  95. xms.obj : xms.h
  96.  
  97. dalloc.obj : build.h types.h valloc.h dalloc.h mono.h
  98.  
  99. mono.obj : mono.h
  100.  
  101. doutils.obj : build.inc segdefs.inc tss.inc gdt.inc idt.inc
  102.  
  103. mswitch.obj : build.inc segdefs.inc tss.inc gdt.inc idt.inc vcpi.inc
  104.  
  105. tables.obj : build.inc segdefs.inc tss.inc gdt.inc idt.inc
  106.  
  107. vga.obj : segdefs.inc
  108.  
  109. grprot.obj : build.inc segdefs.inc tss.inc gdt.inc idt.inc
  110.  
  111. npx.obj : build.inc segdefs.inc tss.inc gdt.inc idt.inc
  112.  
  113. vcpi.obj: build.inc segdefs.inc vcpi.inc
  114.  
  115. event.obj: eventque.h
  116.