home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lzo100.zip / lzo-1.00 / minilzo / Makefile.mfx < prev    next >
Makefile  |  1997-07-13  |  884b  |  55 lines

  1. #
  2. # a very simple Makefile for miniLZO
  3. #
  4. # Copyright (C) 1996, 1997 Markus F.X.J. Oberhumer
  5. #
  6.  
  7. SOURCES = testmini.c minilzo.c
  8.  
  9. default all:
  10.     @echo "Please choose one of the following targets:"
  11.     @echo "    gcc gcc-i386 gcc-rs6000"
  12.     @echo "    visualc watcomc watcomc16"
  13.     @echo "    hpux"
  14.  
  15.  
  16. #
  17. # gcc
  18. #
  19. gcc:
  20.     gcc -I. -Wall -O2 -s -o testmini $(SOURCES)
  21.  
  22. gcc-i386:
  23.     gcc -I. -Wall -O2 -fomit-frame-pointer -fno-strength-reduce -s -o testmini $(SOURCES)
  24.  
  25. gcc-rs6000:
  26.     gcc -I. -Wall -O2 -fno-schedule-insns -fno-schedule-insns2 -o testmini $(SOURCES)
  27.  
  28.  
  29. #
  30. # Windows
  31. #
  32. visualc:
  33.     cl -nologo -ML -I. -W3 -Ox -Gf -Gy $(SOURCES)
  34.  
  35. watcomc:
  36.     wcl386 -zq -mf -5r -I. -zc -wx -oneatx $(SOURCES)
  37.  
  38. watcomc16:
  39.     wcl -zq -ml -5 -I. -zc -wx -oneatx $(SOURCES)
  40.  
  41.  
  42. #
  43. # UNIX
  44. #
  45. hpux:
  46.     cc -Aa -D_HPUX_SOURCE -I. -o testmini $(SOURCES)
  47.  
  48.  
  49. #
  50. # other targets
  51. #
  52. clean:
  53.     rm -f testmini testmini.exe *.err *.o *.obj core
  54.  
  55.