home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 January / dppcpro0199a.iso / January / Fp98 / SDK / WebBot / votebot / server / makefile next >
Encoding:
Makefile  |  1997-09-18  |  2.5 KB  |  95 lines

  1. #
  2. # Copyright (c) 1997 Microsoft Corp.  All Rights Reserved
  3. #
  4. # File: votebot/server/UNIX Makefile
  5. # FrontPage VoteBot Sample Component: UNIX Makefile
  6. #
  7. # Generates votebot.exe and votesrvr.so (equivalent of Win32 votesrvr.dll)
  8. #
  9. # Uncomment the section which corresponds to the platform on which
  10. # you are compiling.  The non-SGI UNIX section is the currently selected
  11. # platform, and it generates release code.
  12. #
  13. # Note:  In order for these files to work on UNIX, you may have to convert
  14. # to UNIX format by removing the CR (^M) characters at the end of each line.
  15. #
  16.  
  17. #
  18. #################################################################
  19. # If you are compiling for use on a non-SGI Unix platform, uncomment 
  20. # the following lines
  21. #
  22. CC = gcc
  23. CFLAGS = -c -Wall -DUNIX -DNDEBUG -fPIC $(COPT)
  24. COUT = -o $@
  25. LD_DLL_FLAGS = -nostdlib -shared
  26. LDBINOUT = -o $@
  27. CHMOD =
  28. EXE_LINK_FLAGS = -lstdc++ -lm
  29. #
  30. # Then, uncomment one set:
  31. #
  32. COPT = -O2    # Release
  33. BIN  = Release
  34. #
  35. # COPT = -g     # Debug
  36. # BIN  = Debug
  37.  
  38.  
  39. #################################################################
  40. # If you are compiling for SGI, uncomment the following lines
  41. #
  42. # CC = gcc
  43. # CFLAGS = -c -Wall -DUNIX -DNDEBUG -DSGI -fPIC $(COPT)
  44. # COUT = -o $@
  45. # LD_DLL_FLAGS = -nostdlib -shared -Xlinker -update_registry -Xlinker \
  46. #           /tmp/so_locations
  47. # LDBINOUT = -o $@
  48. # CHMOD = chmod 777 /tmp/so_locations
  49. # EXE_LINK_FLAGS = -lstdc++ -lm
  50. #
  51. # Then, uncomment one set:
  52. #
  53. # COPT = -O2    # Release
  54. # BIN  = Release
  55. # COPT = -g     # Debug
  56. # BIN  = Debug
  57.  
  58. # endif
  59. #
  60. #################################################################
  61. # You should not have to change the rest of the makefile
  62. #
  63.  
  64. VOTESRV_OBJS = $(BIN)/votesrv.obj $(BIN)/votefile.obj
  65. VOTECOUNT_OBJS  = $(BIN)/votecount.obj  $(BIN)/votefile.obj 
  66.                 
  67.  
  68. all: $(BIN) $(BIN)/votebot.exe   $(BIN)/votesrvr.so 
  69.  
  70. $(BIN):
  71.     mkdir $(BIN)
  72.  
  73. $(BIN)/votesrvr.so: $(VOTESRV_OBJS)
  74.     $(CC) $(LD_DLL_FLAGS) $(VOTESRV_OBJS) $(LDBINOUT)
  75.     $(CHMOD)
  76.  
  77. $(BIN)/votebot.exe: $(VOTECOUNT_OBJS)
  78.     $(CC) $(VOTECOUNT_OBJS) $(LDBINOUT) $(EXE_LINK_FLAGS)
  79.  
  80. $(BIN)/votesrv.obj: votesrv.cpp votecount.h votefile.h ../../webbot.h
  81.     $(CC) $(CFLAGS) votesrv.cpp $(COUT)
  82.  
  83. $(BIN)/votecount.obj: votecount.cpp votecount.h votefile.h 
  84.     $(CC) $(CFLAGS) votecount.cpp $(COUT)
  85.  
  86. $(BIN)/votefile.obj: votefile.cpp votefile.h
  87.     $(CC) $(CFLAGS) votefile.cpp $(COUT)
  88.  
  89. #votefile.cpp: votefile.h
  90. #    $(CC) $(CFLAGS) votefile.cpp $(COUT)
  91.  
  92. #votecount.cpp: votecount.h votefile.h
  93. #    $(CC) $(CFLAGS) votecount.cpp $(COUT)
  94.  
  95.