Makefile.sun 1016 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $XConsortium: Makefile.sun /main/2 1996/05/13 11:44:41 drk $
  2. ##########################################################################
  3. #
  4. # Makefile for dtcalendar examples (SUN)
  5. #
  6. # (c) Copyright 1993, 1994 Hewlett-Packard Company
  7. # (c) Copyright 1993, 1994 International Business Machines Corp.
  8. # (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  9. # (c) Copyright 1993, 1994 Novell, Inc.
  10. #
  11. ##########################################################################
  12. CC = cc
  13. RM = rm -f
  14. PROGRAM = attributes
  15. SOURCES = attributes.c
  16. OBJECTS = attributes.o
  17. DEFINES =
  18. CDEBUGFLAGS = -O
  19. CFLAGS = $(DEFINES) $(CDEBUGFLAGS)
  20. DTINCLUDE = -I/usr/dt/include
  21. X11INCLUDE =
  22. INCLUDES = $(DTINCLUDE) $(X11INCLUDE)
  23. DTLIBS = -L/usr/dt/lib -lcsa
  24. X11LIBS =
  25. SYSLIBS =
  26. LIBRARIES = $(DTLIBS) $(X11LIBS) $(SYSLIBS)
  27. LDFLAGS = -R/usr/dt/lib
  28. .c.o:
  29. $(CC) -c $(CFLAGS) $(INCLUDES) $<
  30. all:: $(PROGRAM)
  31. $(PROGRAM):: $(OBJECTS)
  32. $(CC) -o $(PROGRAM) $(LDFLAGS) $(OBJECTS) $(LIBRARIES)
  33. clean::
  34. $(RM) $(PROGRAM) $(OBJECTS)