home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / m / master12.zip / mastering / Newapp / Makefile < prev    next >
Makefile  |  1992-08-19  |  2KB  |  77 lines

  1. ##############################################################################
  2. #
  3. #                     Makefile for the "newapp" program.
  4. #
  5. ##############################################################################
  6. #  N O T E :
  7. #
  8. #  This Makefile is for HP 9000 Series 300 workstations running HP-UX 7.0
  9. #  or later.  You will likely have to modify some of the parameters in 
  10. #  this file to compile this program on another platform.
  11. #
  12. #  Newapp requires:  X Window System, Release 4 and OSF/Motif, Version 1.1
  13. ##############################################################################
  14.  
  15. # This variable contains the flags passed to cc.
  16.  
  17. CFLAGS = -Wc,-Nd4000 -Wc,-Ns4000 -Wc,-Nt50000 -DSYSV -D_NO_PROTO
  18.  
  19. # This variable points to the directory containing the X and Motif libraries.
  20.  
  21. LIBDIR = /usr
  22.  
  23. # This variable lists the subdirectories to search for include files.
  24.  
  25. INCLUDES = -I$(LIBDIR)/include/Motif1.1\
  26.     -I$(LIBDIR)/include/X11R4
  27.  
  28. # This variable lists the required libraries.
  29.  
  30. LIBS =     $(LIBDIR)/lib/Motif1.1/libXm.a\
  31.     $(LIBDIR)/lib/X11R4/libXt.a\
  32.     $(LIBDIR)/lib/X11R4/libX11.a\
  33.     -lPW\
  34.     -lm
  35.  
  36. # This variable lists the object files generated.
  37.  
  38. OBJS=    DialogCB.o\
  39.     ExitDialog.o\
  40.     Main.o\
  41.     Menu.o\
  42.     MenuCB.o\
  43.     PrintOpt.o\
  44.     Protocols.o
  45.  
  46. # This variable lists the C source files required.
  47.  
  48. SOURCES=DialogCB.c\
  49.     ExitDialog.c\
  50.     Main.c\
  51.     Menu.c\
  52.     MenuCB.c\
  53.     PrintOpt.c\
  54.     Protocols.c
  55.  
  56. # This rule generates the object files.
  57.  
  58. .c.o: 
  59.     cc $(INCLUDES) -c $(CFLAGS) $<
  60.  
  61. # This rule generates the executable using the object files and libraries.
  62.  
  63. newapp: $(OBJS)
  64.     cc $(CFLAGS) $(INCLUDES) -o newapp $(OBJS) $(LIBS)
  65.  
  66. # This rule sets up the default target ("make" is equivalent to "make newapp").
  67.  
  68. all:    newapp
  69.  
  70. # This rule cleans up the build directory (type "make clean").
  71.  
  72. clean:
  73.     rm -f *.o core
  74.  
  75.  
  76.  
  77.