home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnufind.zip / Makefile.os2 < prev    next >
Makefile  |  1996-01-01  |  1KB  |  41 lines

  1. # Master Makefile for GNU find, xargs, and locate.
  2. # Copyright (C) 1987, 1990, 1991 Free Software Foundation, Inc.
  3.  
  4. release:
  5.     $(MAKE) -f Makefile.os2 dll find xargs locate \
  6.     CC="gcc -O -Zomf" AR="emxomfar" RANLIB="emxomfar s" O=".obj" A=".lib" \
  7.     LFLAGS="-s -Zcrtdll -Zstack 512" LIBS="../lib/find.lib ../lib/regex.lib"
  8.  
  9. debug:
  10.     $(MAKE) -f Makefile.os2 lib find xargs locate \
  11.     CC="gcc -g" AR="ar" RANLIB="ar s" O=".o" A=".a" \
  12.     LFLAGS="" LIBS="../lib/find.a"
  13.  
  14. DEFS = -DOS2 -DHAVE_CONFIG_H
  15.  
  16. CFLAGS = -I.. -I../lib $(DEFS)
  17. DFLAGS = -Zdll -Zcrtdll
  18.  
  19. # Arguments to pass to subdirectory makes.
  20. MDEFINES = CC="$(CC)" AR="$(AR)" RANLIB="$(RANLIB)" O="$O" A="$A" \
  21. CFLAGS="$(CFLAGS)" LFLAGS="$(LFLAGS)" DFLAGS="$(DFLAGS)" LIBS="$(LIBS)"
  22.  
  23. .PHONY: lib dll find xargs locate
  24.  
  25. lib:
  26.     cd lib & $(MAKE) -f Makefile.os2 $(MDEFINES) $@
  27. dll:
  28.     cd lib & $(MAKE) -f Makefile.os2 $(MDEFINES) $@
  29. find:
  30.     cd find & $(MAKE) -f Makefile.os2 $(MDEFINES) all
  31. xargs:
  32.     cd xargs & $(MAKE) -f Makefile.os2 $(MDEFINES) all
  33. locate:
  34.     cd locate & $(MAKE) -f Makefile.os2 $(MDEFINES) all
  35. clean:
  36.     cd lib & $(MAKE) -f Makefile.os2 clean
  37.     cd find & $(MAKE) -f Makefile.os2 clean
  38.     cd xargs & $(MAKE) -f Makefile.os2 clean
  39.     cd locate & $(MAKE) -f Makefile.os2 clean
  40.  
  41.