2
0

Makefile.sun 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $XConsortium: Makefile.sun /main/2 1996/05/13 11:46:10 drk $
  2. ##########################################################################
  3. #
  4. # Makefile for dtdnddemo
  5. #
  6. # SUN Platform
  7. #
  8. # (c) Copyright 1993, 1994 Hewlett-Packard Company
  9. # (c) Copyright 1993, 1994 International Business Machines Corp.
  10. # (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  11. # (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of
  12. # Novell, Inc.
  13. ##########################################################################
  14. PROGRAM = dtdnddemo
  15. SOURCES = demo.c icon.c text.c file.c buff.c
  16. OBJECTS = demo.o icon.o text.o file.o buff.o
  17. APPDEFAULTS = Dtdnddemo
  18. DEFINES =
  19. CDEBUGFLAGS = -O
  20. CFLAGS = -Xa $(DEFINES) $(CDEBUGFLAGS)
  21. DTINCLUDE = -I/usr/dt/include
  22. X11INCLUDE = -I/usr/openwin/include
  23. INCLUDES = $(DTINCLUDE) $(X11INCLUDE)
  24. DTLIBS = -L/usr/dt/lib -lDtSvc -ltt -lXm
  25. X11LIBS = -L/usr/openwin/lib -lXt -lX11
  26. SYSLIBS = -ldl -lw -lgen
  27. LIBRARIES = $(DTLIBS) $(X11LIBS) $(SYSLIBS)
  28. LDFLAGS = -R/usr/dt/lib:/usr/openwin/lib
  29. .c.o:
  30. ${CC} -c $(CFLAGS) $(INCLUDES) $<
  31. all:: $(PROGRAM)
  32. $(PROGRAM):: $(OBJECTS) $(APPDEFAULTS)
  33. ${CC} -o $(PROGRAM) $(LDFLAGS) $(OBJECTS) $(LIBRARIES)
  34. clean::
  35. ${RM} $(PROGRAM) $(OBJECTS)