Makefile.ibm 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # $XConsortium: Makefile.ibm /main/2 1996/05/13 11:53:53 drk $
  2. ##########################################################################
  3. #
  4. # Makefile for dtwidget examples (IBM)
  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. PROGRAM1 = occupy
  15. SOURCES1 = occupy.c
  16. OBJECTS1 = occupy.o
  17. PROGRAM2 = wsinfo
  18. SOURCES2 = wsinfo.c
  19. OBJECTS2 = wsinfo.o
  20. DEFINES =
  21. CDEBUGFLAGS = -O
  22. CFLAGS = $(DEFINES) $(CDEBUGFLAGS)
  23. DTINCLUDE = -I/usr/dt/include
  24. X11INCLUDE = -I/usr/include
  25. INCLUDES = $(DTINCLUDE) $(X11INCLUDE)
  26. DTLIBS = -L/usr/dt/lib -lDtSvc -ltt -lXm
  27. X11LIBS = -L/usr/lib -lXt -lX11
  28. SYSLIBS =
  29. LIBRARIES = $(DTLIBS) $(X11LIBS) $(SYSLIBS)
  30. LDFLAGS =
  31. .c.o:
  32. $(CC) -c $(CFLAGS) $(INCLUDES) $<
  33. all:: $(PROGRAM1) $(PROGRAM2)
  34. $(PROGRAM1):: $(OBJECTS1)
  35. $(CC) -o $(PROGRAM1) $(LDFLAGS) $(OBJECTS1) $(LIBRARIES)
  36. $(PROGRAM2):: $(OBJECTS2)
  37. $(CC) -o $(PROGRAM2) $(LDFLAGS) $(OBJECTS2) $(LIBRARIES)
  38. clean::
  39. $(RM) $(PROGRAM1) $(OBJECTS1)
  40. $(RM) $(PROGRAM2) $(OBJECTS2)