home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume27 / conv123 / part01 / Makefile < prev    next >
Encoding:
Makefile  |  1993-09-05  |  760 b   |  40 lines

  1. BINDIR = /usr/local/bin
  2. MANDIR = /usr/local/man/man1
  3. OBJECTS1 = conv123.o int2s.o s2int.o
  4. OBJECTS2 = grph123.o int2s.o s2int.o
  5. CFLAGS = -O
  6. LDFLAGS =
  7.  
  8. all:    c123 g123
  9.  
  10. c123: $(OBJECTS1)
  11.     cc $(CFLAGS) $(OBJECTS1) -o conv123 $(LDFLAGS)
  12.     chmod 755 ./conv123
  13.  
  14. g123: $(OBJECTS2)
  15.     cc $(CFLAGS) $(OBJECTS2) -o grph123 $(LDFLAGS)
  16.     chmod 755 ./grph123
  17.  
  18. clean:
  19.     rm -f ./conv123.o
  20.     rm -f ./grph123.o
  21.     rm -f ./int2s.o
  22.     rm -f ./s2int.o
  23.     rm -f ./conv123
  24.     rm -f ./grph123
  25.  
  26. install:
  27.     cp ./conv123 $(BINDIR)
  28.     cp ./grph123 $(BINDIR)
  29.     cp ./conv123.1 $(MANDIR)
  30.     cp ./grph123.1 $(MANDIR)
  31.  
  32. uninstall:
  33.     rm -f $(BINDIR)/conv123
  34.     rm -f $(BINDIR)/grph123
  35.     rm -f $(MANDIR)/conv123.1
  36.     rm -f $(MANDIR)/grph123.1
  37.  
  38. $(OBJECTS1): conv123.c int2s.c s2int.c
  39. $(OBJECTS2): grph123.c int2s.c s2int.c
  40.