home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnusrvr2.zip / makefile < prev    next >
Makefile  |  1997-05-14  |  2KB  |  66 lines

  1. CC =      gcc
  2. DEFINES= -DOS2_EMX
  3. RELEASE=  gnuserv-2.1alpha
  4.  
  5. # Add a -I flag pointing make at the directory where it can get your 
  6. # emacs' config.h file (usually "src" underneath the top of your emacs tree)
  7.  
  8. # If you don't have access to your emacs source tree, edit config.h.proto
  9. # appropriately, and rename it to config.h in the current directory
  10.  
  11. INCLUDES = -I.
  12.  
  13. # If you don't want xauth(1X11)-style authentication compiled in, remove
  14. # the define of AUTH_MAGIC_COOKIE from gnuserv.h, and comment out the 
  15. # definitions of X11_INCLUDE, X11_LIBRARY and AUTHLIBS below...
  16.  
  17. # You may need to edit X11_INCLUDE AND X11_LIBRARY so that the
  18. # compiler can find the X11/Xauth.h include file and the libXau.a library
  19.  
  20. X11_INCLUDE=  
  21. X11_LIBRARY= 
  22. AUTHLIBS=     -lsocket
  23.  
  24. CFLAGS=       -g $(DEFINES) $(INCLUDES) $(X11_INCLUDE)
  25. DEST=         /usr/local/bin
  26.  
  27.  
  28. # You shouldn't need to change anything below this point.
  29.  
  30. OBJS=  gnuclient.o gnudoit.o gnuserv.o gnuslib.o
  31. ALL=   gnuclient.exe gnudoit.exe gnuserv.exe
  32.  
  33. all:        $(ALL)
  34.  
  35. gnuclient.exe:    gnuclient.o gnuslib.o gnuserv.h 
  36.         $(CC) $(CFLAGS) -o gnuclient.exe gnuclient.o gnuslib.o $(AUTHLIBS)
  37.  
  38. gnudoit.exe:    gnudoit.o gnuslib.o gnuserv.h 
  39.         $(CC) $(CFLAGS) -o gnudoit.exe gnudoit.o gnuslib.o $(AUTHLIBS)
  40.  
  41. gnuserv.exe:    gnuserv.o gnuslib.o gnuserv.h
  42.         $(CC) $(CFLAGS) -o gnuserv.exe gnuserv.o gnuslib.o $(AUTHLIBS)
  43.  
  44. install:        $(ALL)
  45.         mv $(ALL) $(DEST)
  46.  
  47. clean:
  48.         /bin/rm -f $(ALL) *.o *~
  49.  
  50. tarchive:    clean
  51.         - mkdir /tmp/$(RELEASE)
  52.         - /bin/rm -rf /tmp/$(RELEASE)/*
  53.         tar cf - * | (cd /tmp/$(RELEASE) ; tar xf - )
  54.         /bin/rm -rf /tmp/$(RELEASE)/{RCS,config.h,*.orig}
  55.         (cd /tmp; tar cf /tmp/$(RELEASE).tar $(RELEASE))
  56.         gzip /tmp/$(RELEASE).tar
  57.         /bin/rm -rf /tmp/$(RELEASE)
  58.         mv -i /tmp/$(RELEASE).tar.gz /home/ftp/pub
  59.  
  60. # DO NOT DELETE THIS LINE -- make depend depends on it.
  61.  
  62. gnuclient.o: gnuserv.h  
  63. gnudoit.o: gnuserv.h 
  64. gnuserv.o: gnuserv.h
  65. gnuslib.o: gnuserv.h 
  66.