home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume27 / distributed-c-2.1 / part01 / dckill / Makefile
Makefile  |  1993-12-22  |  3KB  |  72 lines

  1. #***************************************************************************
  2. #*                                                                         *
  3. #* @@@@  @@@ @@@@@ @@@@@ @@@@@ @@@ @@@@  @   @ @@@@@ @@@@@ @@@@       @@@  *
  4. #* @   @  @  @       @   @   @  @  @   @ @   @   @   @     @   @     @   @ *
  5. #* @   @  @  @@@@@   @   @@@@@  @  @@@@@ @   @   @   @@@@@ @   @     @     *
  6. #* @   @  @      @   @   @ @    @  @   @ @   @   @   @     @   @     @   @ *
  7. #* @@@@  @@@ @@@@@   @   @  @  @@@ @@@@  @@@@@   @   @@@@@ @@@@       @@@  *
  8. #*                                                                         *
  9. #*              A compiler for distributed programming with C              *
  10. #*                                                                         *
  11. #*                             M a k e f i l e                             *
  12. #*                                                                         *
  13. #*                 Version 1.0      CreationDate: 19.10.90                 *
  14. #*                                    LastUpDate: 19.10.90                 *
  15. #*                                                                         *
  16. #*          The makefile to generate the process killer process.           *
  17. #*                                                                         *
  18. #*        Copyright (C) 1990 by Franz Distler and Christoph Pleier.        *
  19. #*                          All rights reserved!                           *
  20. #***************************************************************************/
  21.  
  22. #.SILENT
  23.  
  24. # Some utility programs
  25.   SHELL = /bin/sh
  26.    MAKE = make
  27.  
  28. # The path of the include files
  29. INCLUDEDIR = ../include
  30.  
  31. # Include target system specific macros
  32. include ../macros
  33.  
  34. # Set appropriate macros
  35.      CC = $(CC_DCK)
  36.  CFLAGS = $(CFLAGS_DCK) -I$(INCLUDEDIR)
  37.      LD = $(LD_DCK)
  38. LDFLAGS = $(LDFLAGS_DCK)
  39.    LIBS = $(LIBS_DCK)
  40.  
  41. # The name of the administration process
  42. KILLERNAME = dckill
  43.  
  44. # All source files needed to build the administration process
  45. SRCS =     dckill.c
  46.  
  47. # All object files needed to build the administration process
  48. OBJS = $(SRCS:.c=.o)
  49.  
  50. # All include files needed to build the administration process
  51. INCLFILES = $(INCLUDEDIR)/config.h $(INCLUDEDIR)/extern.h \
  52.         $(INCLUDEDIR)/version.h
  53.  
  54. .c.o:
  55.     @echo "***** Compiling $<"
  56.     $(CC) $(CFLAGS) -c $<
  57.  
  58. all:
  59.     @echo ""
  60.     @echo "BUILDING THE PROCESS KILLER PROCESS..."
  61.     $(MAKE) $(KILLERNAME)
  62.     @echo DONE!
  63.  
  64. $(KILLERNAME): $(INCLFILES) dckill.c
  65.     $(CC) $(CFLAGS) -c dckill.c
  66.     $(LD) -o $(KILLERNAME) $(LDFLAGS) dckill.o $(LIB)
  67.  
  68. clean:
  69.     @echo "Cleaning the directory..."
  70.     -\rm -f *.o $(KILLERNAME)
  71.     @echo done!
  72.