Makefile.simple 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # $XConsortium: Makefile.simple /main/2 1996/05/13 11:45:52 drk $
  2. ##########################################################################
  3. #
  4. # Makefile for dtdnddemo
  5. #
  6. # SUN Platform (debug/purify/sentinel support)
  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. DTHOME = /usr/dt
  22. DTINCLUDE = -I$(DTHOME)/include
  23. X11INCLUDE = -I/usr/openwin/include
  24. INCLUDES = $(DTINCLUDE) $(X11INCLUDE)
  25. DTLIBS = -L$(DTHOME)/lib -lDtSvc -ltt -lXm
  26. X11LIBS = -L/usr/openwin/lib -lXt -lX11
  27. SYSLIBS = -ldl -lw -lgen
  28. LIBRARIES = $(DTLIBS) $(X11LIBS) $(SYSLIBS)
  29. LDFLAGS = -R$(DTHOME)/lib:/usr/openwin/lib
  30. LINKCC = ${CC}
  31. .c.o:
  32. ${CC} -c $(CFLAGS) $(INCLUDES) $<
  33. all:: $(PROGRAM)
  34. $(PROGRAM):: $(OBJECTS) $(APPDEFAULTS)
  35. ${LINKCC} -o $(PROGRAM) $(LDFLAGS) $(OBJECTS) $(LIBRARIES)
  36. clean::
  37. ${RM} $(PROGRAM) $(OBJECTS)
  38. debug: ${PROGRAM}
  39. debug := CDEBUGFLAGS = -g
  40. debug := DEFINES += -DDEBUG
  41. purify: debug
  42. purify := PURIFY = ${PURIFYHOME}/purify
  43. purify := LINKCC = ${PURIFY} ${CC}
  44. sentinel: debug
  45. sentinel := SENTINEL = ${SE_HOME}/sentinel
  46. sentinel := LINKCC = ${SENTINEL} ${CC}
  47. tags: ${SOURCES} ${HEADERS}
  48. ctags -tw ${SOURCES} ${HEADERS}
  49. .KEEP_STATE: