home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lpathext.zip / makefile < prev   
Makefile  |  2001-12-10  |  948b  |  34 lines

  1. # Makefile to build libray of LIBPATH extension routines using EMX+GCC.
  2. # This makefile is expected to be run using dmake, not gmake or nmake!
  3.  
  4. # Some nifty options for EMX+GCC
  5. CFLAGS=-c -O3 -D__ST_MT_ERRNO__
  6. LIBFLAGS=/nologo /noignorecase /pagesize:1024
  7. ARFLAGS=-rs
  8.  
  9. all: lpathext.lib lpathext.a lpathext.inf
  10.  
  11. lpathext.obj: lpathext.c lpathext.h
  12.     gcc $(CFLAGS) -Zomf -o lpathext.obj lpathext.c
  13.  
  14. lpathext.lib: lpathext.obj
  15. # Use IBM's library manager for the OMF object module
  16.     lib lpathext.lib $(LIBFLAGS) -+lpathext.obj,,
  17.     +del lpathext.bak
  18.  
  19. lpathext.o: lpathext.c lpathext.h
  20.     gcc $(CFLAGS) -o lpathext.o lpathext.c
  21.  
  22. lpathext.a: lpathext.o
  23.     ar $(ARFLAGS) lpathext.a lpathext.o
  24.  
  25. lpathext.inf: lpathext.ipf
  26. # Use IBM's help/info compiler on the documentation
  27.     ipfc -i -c:850 lpathext.ipf
  28.  
  29. clean:
  30. # These lines are executed by the shell, with errors ignored
  31.     -+del lpathext.o
  32.     -+del lpathext.obj
  33.     -+del lpathext.bak
  34.