Makefile

Upload User: acmefrp
Upload Date: 2010-03-06
Package Size: 23768k
Code Size: 1k
Category: OS Develop
Development Platform: C/C++
  1. #
  2. # @(#)Makefile 1.1 92/07/30 Copyright(c) Sun Microsystems, Inc.
  3. #
  4. .DEFAULT:
  5. sccs get -G$@ $@
  6. include ../../include/Makefile.macros
  7. DBX=-O
  8. # specify DBX=-g for dbx version
  9. DESTDIR =
  10. PROGRAM = sunbuttons
  11. INCDIR = ../../include
  12. INCLUDES= buttons.h button_icon.h off_off_icon.h off_on_icon.h 
  13.   on_off_icon.h on_on_icon.h $(INCDIR)/sdrtns.h
  14.   $(ONLINEINC)/libonline.h
  15. LIBS = -lsuntool -lsunwindow -lpixrect
  16. SOURCES = sunbuttons.c
  17. OBJECTS = $(SOURCES:.c=.o)
  18. LINTFILES = $(SOURCES:.c=.ln)
  19. CFLAGS = $(DBX) -D`arch` -I$(INCDIR)
  20. LDFLAGS = $(DBX)
  21. LINTFLAGS= -D`arch` -I$(INCDIR)
  22. .KEEP_STATE:
  23. ##### beginning of dependency lines #####
  24. all: $(INCLUDES) $(PROGRAM)
  25. $(PROGRAM): $(OBJECTS)
  26. cc $(LDFLAGS) -o $@ $(OBJECTS) $(SDLIBS) $(LIBS)
  27. install: all FRC
  28. @if [ $(DESTDIR) ]; then 
  29.   set -x; 
  30.   install -s $(PROGRAM) $(DESTDIR); 
  31. else 
  32.   set -x; 
  33.   install $(PROGRAM) ../../bin; 
  34. fi
  35. clean: FRC
  36. rm -f $(PROGRAM) $(OBJECTS) $(LINTFILES) core
  37. lint: $(LINTFILES)
  38. lint $(LINTFLAGS) $(LINTFILES) $(LIBS)
  39. info: FRC
  40. sccs info
  41. include ../../include/Makefile.end