home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / rcs / sources / makefile.tc < prev    next >
Makefile  |  1991-09-29  |  1KB  |  45 lines

  1. # Makefile for GNU DIFF with Turbo C 2.0 under DOS
  2. # produces real-mode-only versions
  3.  
  4. # change this as needed to find wildargs.obj
  5. LIBDIR  = c:\tc\lib
  6.  
  7. # be careful when changing anything below
  8. CC      = tcc
  9. DEFS    = -DMSDOS -DUSG -DPROTO -D__STDC__=0
  10. CFLAGS  = -mc -A- -w- -a- -K -1 -N- -Ipc-files -I. $(DEFS)
  11. LD      = tlink
  12. LDFLAGS = /e /c
  13. AS    = masm
  14. AFLAGS    = -T -Ml
  15.  
  16. OBJ1 =    diff.obj analyze.obj io.obj context.obj ed.obj normal.obj
  17. OBJ2 =    util.obj dir.obj ifdef.obj version.obj getopt.obj getopt1.obj
  18. OBJ3 =  pc-files\regex.obj pc-files\merged.obj pc-files\pipe.obj
  19. OBJ =    diff3.obj version.obj getopt.obj getopt1.obj pc-files\pipe.obj
  20. OBJA =    alloca.obj
  21. OTHER = $(LIBDIR)\wildargs.obj
  22.  
  23. .c.obj:
  24.         $(CC) $(CFLAGS) -o$*.obj -c $<
  25.  
  26. all: diff.exe diff3.exe
  27.  
  28. diff.exe: $(OBJ1) $(OBJ2) $(OBJ3) $(OBJA)
  29.         $(LD) $(LDFLAGS) @pc-files\tdiff.lnk
  30.  
  31. diff3.exe: $(OBJ) $(OBJA)
  32.         $(LD) $(LDFLAGS) @pc-files\tdiff3.lnk
  33.  
  34. $(OBJ1) $(OBJ2) $(OBJ3): diff.h
  35.  
  36. diff3.obj: diff3.c
  37.     $(CC) $(CFLAGS) -c -DDIFF_PROGRAM="diff.exe" $*.c
  38.  
  39. alloca.obj: pc-files\alloca.asm
  40.     $(AS) $(AFLAGS) pc-files\alloca.asm;
  41.  
  42. clean:
  43.     del *.obj
  44.         del pc-files\*.obj
  45.