home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / text / misc / cvt / source / makefile < prev    next >
Makefile  |  1994-06-03  |  1KB  |  81 lines

  1. # CV Makefile for the GNU C/C++ Compiler on unix systems
  2. # (c)Copyright 1991-93 by Tobias Ferber,  All Rights Reserved
  3.  
  4. SHELL= /bin/sh
  5. RM= rm -f
  6.  
  7. CC=gcc
  8. DEFINES= -DDEBUG
  9. CFLAGS= -O2 -Wall $(DEFINES)
  10.  
  11. # *** / ALL / ***
  12.  
  13. .PHONY: all
  14.  
  15. all: cvt
  16.  
  17.  
  18. # *** / CVT / ***
  19.  
  20. CVT_OBJS=\
  21.     main.o args.o flist.o rules.o cvtparse.o cvt.o \
  22.     echo.o numdigits.o tfname.o filecopy.o
  23.  
  24. cvt: $(CVT_OBJS)
  25.     $(CC) $(CFLAGS) -o $@ $(CVT_OBJS)
  26.  
  27. main.o: main.c
  28.     $(CC) $(CFLAGS) -c -o $@ $<
  29.  
  30. args.o: args.c
  31.     $(CC) $(CFLAGS) -c -o $@ $<
  32.  
  33. flist.o: flist.c
  34.     $(CC) $(CFLAGS) -c -o $@ $<
  35.  
  36. rules.o: rules.c
  37.     $(CC) $(CFLAGS) -c -o $@ $<
  38.  
  39. cvtparse.o: cvtparse.c
  40.     $(CC) $(CFLAGS) -c -o $@ $<
  41.  
  42. cvt.o: cvt.c
  43.     $(CC) $(CFLAGS) -c -o $@ $<
  44.  
  45. echo.o: echo.c
  46.     $(CC) $(CFLAGS) -c -o $@ $<
  47.  
  48. numdigits.o: numdigits.c
  49.     $(CC) $(CFLAGS) -c -o $@ $<
  50.  
  51. tfname.o: tfname.c
  52.     $(CC) $(CFLAGS) -c -o $@ $<
  53.  
  54. filecopy.o: filecopy.c
  55.     $(CC) $(CFLAGS) -c -o $@ $<
  56.  
  57.  
  58. # *** / CLEAN / ***
  59.  
  60. .PHONY: clean
  61.  
  62. clean:
  63.     ifneq ($(strip $(wildcard *.o cvt)),)
  64.       $(RM) $(wildcard *.o cvt)
  65.     endif
  66.  
  67.  
  68. # *** / DEPEND / ***
  69.  
  70. .PHONY: depend
  71.  
  72. depend:
  73.     $(CC) $(CFLAGS) -MM *.c > .depend
  74.  
  75.  
  76. # include the dependency file (if it exists)
  77.  
  78. ifeq (.depend,$(wildcard .depend))
  79. include .depend
  80. endif
  81.