home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / CMDS / file.lzh / makefile.unix < prev    next >
Makefile  |  1995-04-27  |  1KB  |  70 lines

  1. # Makefile for myfile
  2. # Last Modified: Tue Dec 21 10:32:21 1993
  3. # Filename: /tmp_mnt/home/bear/smcgee/c/file/makefile
  4. # This makefile creates a Binary named "myfile"
  5.  
  6. .SUFFIXES:
  7.  
  8. # Macros
  9. CC     = cc
  10. OUTPUT    = $(HOME)/usr/bin/$(MACHINE)/myfile
  11. INPUT    = file.c readmagic.c strtoul.o istar.c help.c
  12. ICDIR    = RELS/$(MACHINE)
  13. RELS    = $(ICDIR)/file.o $(ICDIR)/readmagic.o $(ICDIR)/strtoul.o \
  14.           $(ICDIR)/istar.o $(ICDIR)/help.o
  15. COPTS    = -I. -g
  16. LOPTS    = -g
  17.  
  18. # LINK Command
  19. $(OUTPUT) : $(RELS)
  20.     echo Linking myfile
  21.     $(CC) $(LOPTS) $(RELS) -o $(OUTPUT)
  22.  
  23. # Compile Commands
  24.  
  25. # file - file.c
  26. DEPENDS_file = file.h
  27. $(ICDIR)/file.o : file.c $(DEPENDS_file)
  28.     echo Compiling file
  29.     $(CC) $(COPTS) file.c -c -o $(ICDIR)/file.o
  30.  
  31. # readmagic - readmagic.c
  32. DEPENDS_readmagic = file.h
  33. $(ICDIR)/readmagic.o : readmagic.c $(DEPENDS_readmagic)
  34.     echo Compiling readmagic
  35.     $(CC) $(COPTS) readmagic.c -c -o $(ICDIR)/readmagic.o
  36.  
  37. # strtoul - strtoul.c
  38. $(ICDIR)/strtoul.o : strtoul.c
  39.     echo Compiling strtoul
  40.     $(CC) $(COPTS) strtoul.c -c -o $(ICDIR)/strtoul.o
  41.  
  42. $(ICDIR)/istar.o : istar.c file.h
  43.     echo Compiling istar
  44.     $(CC) $(COPTS) istar.c -c -o $(ICDIR)/istar.o
  45.  
  46. $(ICDIR)/help.o : help.c file.h
  47.     echo Compiling help
  48.     $(CC) $(COPTS) help.c -c -o $(ICDIR)/help.o
  49.  
  50.  
  51. .SILENT:
  52.  
  53. clean :
  54.     echo rm RELS/$(MACHINE)/*
  55.     rm RELS/$(MACHINE)/*
  56.  
  57. cleanall :
  58.     echo rm RELS/*/*
  59.     rm RELS/*/*
  60.