home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume27 / distributed-c-2.1 / part01 / examples / travel / Makefile < prev    next >
Encoding:
Makefile  |  1993-12-22  |  2.3 KB  |  58 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: 27.07.91                 *
  14. #*                                    LastUpDate: 31.07.91                 *
  15. #*                                                                         *
  16. #*                     The traveling salesman problem.                     *
  17. #*                 The makefile to build the executables.                  *
  18. #*                                                                         *
  19. #*                Copyright (C) 1991 by Christoph Pleier.                  *
  20. #*                          All rights reserved!                           *
  21. #***************************************************************************/
  22.  
  23.    MAKE = make
  24.    ECHO = @echo
  25.      CC = dcinstall
  26.  CFLAGS = $(TARGETS)
  27.      LD = dcinstall
  28.  LFLAGS = $(TARGETS)
  29.    LIBS =
  30.  
  31. TARGETS = -target local 
  32.  
  33. germany: travel.mf
  34.     cp germany.c data.c
  35.     $(CC) $(CFLAGS) -c config.h data.c
  36.     touch $@
  37.     $(MAKE) -f travel.mf
  38.  
  39. demo: incl
  40.     cp demo.c data.c
  41.     $(CC) $(CFLAGS) -c config.h data.c
  42.     touch $@
  43.     $(MAKE) -f travel.mf
  44.  
  45. travel.mf: travel.dc config.h
  46.     $(ECHO) ""
  47.     $(ECHO) "***** Compiling 'travel.dc' to standard code"
  48.     dcc -L "data.o" -C "$(TARGETS)" travel.dc
  49.  
  50. new:
  51.     @touch travel.dc
  52.     $(MAKE) travel.mf clean
  53.     $(MAKE) travel
  54.  
  55. clean:
  56.     -find . -name travel.mf -exec make -f {} clean \;
  57.     -\rm -f *.o travel data.c dcc.debug dcadmin.debug germany demo incl
  58.