home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / caribbeanstud / xmakefile < prev    next >
Makefile  |  1997-01-31  |  3KB  |  139 lines

  1. # Explicit setting of SHELL - beware since this gets inherited
  2. # by commands invoked by Make
  3. SHELL=/bin/sh
  4.  
  5. UILFLAGS=-I/usr/include/uil
  6. MRMLIBS=
  7.  
  8. ## everything is in /usr/include or /usr/lib
  9. #XINCLUDES=
  10. #XLIBS=
  11. #LDLIBS=
  12. ###
  13.  
  14. ## sg irix
  15. #XINCLUDES=-I/usr/include/X11
  16. #XLIBS=
  17. #LDLIBS=
  18. #CCC=CC
  19. ###
  20.  
  21. ## ibm aix
  22. #XINCLUDES=
  23. #XLIBS=
  24. #LDLIBS=
  25. #CCC=xlC -+
  26. ###
  27.  
  28. ## dec osf1
  29. #XINCLUDES=
  30. #XLIBS=-L/usr/shlib
  31. #LDLIBS=
  32. #CCC=cxx
  33. ###
  34.  
  35. ## ncr sysv4
  36. #XINCLUDES=
  37. #XLIBS=
  38. #LDLIBS=-lnsl -lsocket -lgen -lresolv
  39. ###
  40.  
  41. ## nec sysv4
  42. #XINCLUDES=
  43. #XLIBS=
  44. #LDLIBS=-lnsl -lsocket -lgen -lresolv
  45. ###
  46.  
  47. ## novell sysv4
  48. #XINCLUDES=-I/usr/X/include -I/usr/X/include/X11
  49. #XLIBS=-L/usr/X/lib -L/usr/ccs/lib
  50. #LDLIBS=-lXimp -lnsl -lsocket -lgen -lresolv
  51. ###
  52.  
  53. # solaris 2.x
  54. XINCLUDES=-I/opt/SUNWmotif/include -I/usr/dt/include -I/usr/openwin/include -I/usr/openwin/include/X11
  55. XLIBS=-L/opt/SUNWmotif/lib -L/usr/dt/lib -L/usr/openwin/lib 
  56. LDLIBS=-lgen
  57. CCC=CC
  58. #MRMLIBS=-L/usr/dt/lib -lMrm
  59. MRMLIBS=
  60. UILFLAGS=-I/usr/include/uil -I/usr/dt/include/uil -I/opt/SUNWmotif/share/include/uil
  61. ##
  62.  
  63. ## sco sysv3.4
  64. ## -lmalloc may also be required on LDLIBS line
  65. #XINCLUDES=
  66. #XLIBS=
  67. #LDLIBS=-lXext -lXmu -lrpc -lsocket -lintl
  68. ###
  69.  
  70. ## hp-ux 9.x
  71. ## -Wp,-H900000 recommended if too many cpp defines.
  72. #CPPFLAGS=-Wp,-H900000
  73. #XINCLUDES=-I/usr/include/X11R5 -I/usr/include/Motif1.2
  74. #XLIBS=-L/usr/lib/X11R5 -L/usr/lib/Motif1.2
  75. #LDLIBS=
  76. #CCC=CC
  77. #UILFLAGS=-I/usr/include/uil -I/usr/include/Motif1.2/uil
  78. ###
  79.  
  80. #LDLIBS = -lPW
  81. # Program configuration
  82. # ---------------------
  83.  
  84. LDFLAGS = ${XLIBS} $(MRMLIBS)
  85. MOTIFLIBS = -lXm -lXmu -lXt -lX11
  86.  
  87. CFLAGS= -g -I. ${XINCLUDES} $(UILFLAGS)
  88. CCFLAGS=${CFLAGS} 
  89.  
  90. UIL=uil
  91.  
  92. #MOTIFLIBS = -lXm -lXt -lX11 -lPW
  93.  
  94. HEADERS = Bitmaps.h \
  95.    Card.h        \
  96.    Dealer.h   \
  97.    Deck.h        \
  98.    Hands.h       \
  99.    Player.h     \
  100.    Seat.h       \
  101.    Table.h
  102.  
  103. SRCS = CaribbeanStud.cpp \
  104.    Card.cpp        \
  105.    Dealer.cpp   \
  106.    Deck.cpp        \
  107.    Hands.cpp       \
  108.    Player.cpp     \
  109.    Seat.cpp       \
  110.    Table.cpp
  111.  
  112. OBJS = Card.o      \
  113.    Dealer.o  \
  114.    Deck.o       \
  115.    Hands.o      \
  116.    Player.o    \
  117.    Seat.o      \
  118.    Table.o     \
  119.    CaribbeanStud.o
  120.  
  121. all:: CaribbeanStud
  122.  
  123. CaribbeanStud:  $(OBJS)
  124.     rm -f $@
  125.     $(CCC) $(CCFLAGS) -o $@  $(OBJS) $(LDFLAGS)  $(LDLIBS)  $(MOTIFLIBS)
  126.  
  127. depend:: $(SRCS) $(HEADERS)
  128.     makedepend $(CFLAGS) $(CPPFLAGS) -- $(ALLDEFINES) -- $(SRCS)
  129. dependlocal:: $(SRCS) $(HEADERS)
  130.     makedepend $(CFLAGS) $(CPPFLAGS) -- $(ALLDEFINES) -- $(SRCS)
  131. clean::
  132.     $(RM) CaribbeanStud
  133.     rm -f $(OBJS) core
  134.  
  135. .SUFFIXES:  .cpp $(SUFFIXES)
  136. .cpp.o:
  137.     $(COMPILE.cc) $(OUTPUT_OPTION) $<
  138.  
  139.