home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: SysTools / SysTools.zip / cimon096.zip / Makefile < prev    next >
Makefile  |  2002-04-05  |  816b  |  37 lines

  1. # -----------------------------------------------------------------------
  2. #  cimon - a UNIX command line client for the fli4l imon daemon. 
  3. #   
  4. #  Public domain, 2001-2002, Rene Herman <rene.herman@mail.com>
  5. # -----------------------------------------------------------------------
  6.  
  7. CC      = gcc
  8. ifdef   DEBUG
  9. CFLAGS  = -g
  10. STRIP   = echo >/dev/null
  11. else
  12. CFLAGS  = -O2 -fomit-frame-pointer
  13. STRIP   = strip
  14. endif
  15.  
  16. CFLAGS += -W -Wall -pipe
  17.  
  18. cimon: util.o exit.o imon.o main.o
  19.     $(CC) $(LDFLAGS) -o $@ $^
  20.     $(STRIP) $@
  21.  
  22. clean:
  23.     rm -f *~ *.o cimon core
  24.  
  25. dist: cimon
  26.     echo cimon-`./cimon -V` >DIST
  27.     -rm -rf `cat DIST`
  28.     mkdir `cat DIST`
  29.     ln `cat MANIFEST` `cat DIST`
  30.     tar cvzf `cat DIST`.tar.gz `cat DIST`
  31.     rm -rf `cat DIST` DIST
  32.  
  33. util.o: cimon.h util.c
  34. exit.o: cimon.h exit.c
  35. imon.o: cimon.h imon.c
  36. main.o: cimon.h main.c
  37.