home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / rcs567s.zip / diff / Makefile < prev    next >
Makefile  |  1994-06-25  |  1KB  |  49 lines

  1. # Makefile for GNU DIFF with emx+gcc under OS/2 2.x or DOS
  2.  
  3. os2:
  4.     $(MAKE) diff.exe diff3.exe gnuregex.dll \
  5.     CC="gcc -Zomf -Zmtd -O -s" O=.obj REGEX=regex.lib
  6. dos:
  7.     $(MAKE) diff.exe CC="gcc -O -s" O=.o REGEX=regex.o
  8.  
  9. CFLAGS= -I. -DUSG -DOS2 -DHAVE_CONFIG_H -DHAVE_SYS_WAIT_H
  10.  
  11. DIFF =    diff$O analyze$O io$O context$O ed$O normal$O util$O dir$O \
  12.     fnmatch$O ifdef$O side$O cmpbuf$O getopt$O getopt1$O version$O
  13. DIFF3 =    diff3$O getopt$O getopt1$O version$O
  14. SDIFF =    sdiff$O getopt$O getopt1$O version$O
  15. CMP =    cmp$O error$O xmalloc$O cmpbuf$O getopt$O getopt1$O version$O
  16. DLL =    regex$O
  17.  
  18. .SUFFIXES: .c $O
  19.  
  20. .c$O:
  21.     $(CC) $(CFLAGS) -c $<
  22.  
  23. all: $(DYNLIB) diff.exe diff3.exe sdiff.exe cmp.exe
  24.  
  25. diff.exe: $(DIFF) $(REGEX)
  26.     $(CC) $(DIFF) $(REGEX) -o $@ diff.def
  27.  
  28. diff3.exe: $(DIFF3)
  29.     $(CC) $(DIFF3) -o $@ diff.def
  30.  
  31. sdiff.exe: $(SDIFF) 
  32.     $(CC) $(SDIFF) -o $@ diff.def
  33.  
  34. cmp.exe: $(CMP) 
  35.     $(CC) $(CMP) -o $@ diff.def
  36.  
  37. gnuregex.dll: gnuregex.def $(DLL)
  38.     $(CC) -Zdll $(DLL) -o $@ gnuregex.def
  39.  
  40. regex.lib: gnuregex.def
  41.     emximp -o $@ gnuregex.def
  42.  
  43. $(DIFF): diff.h
  44.  
  45. context$O diff$O: regex.h
  46.  
  47. clean:
  48.     rm -f *.o *.obj *.lib
  49.