home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume1 / 8709 / 5 / Makefile < prev    next >
Encoding:
Makefile  |  1987-09-11  |  534 b   |  33 lines

  1. PGM    = suntops
  2. SRCS    = error.c main.c suntops.c
  3. HDRS    = suntops.h
  4. OBJS    = error.o main.o suntops.o
  5. MAN    = suntops.1
  6.  
  7. CFLAGS    = -O
  8. LDFLAGS    =
  9. LIBS    =
  10. BINDIR    = /usr/local/bin
  11. BINMODE    = 755
  12. MANDIR    = /usr/local/man/man1
  13. MANMODE    = 444
  14. LINTFLAGS = -chapb
  15.  
  16. $(PGM): $(OBJS)
  17.     $(CC) $(LDFLAGS) -o $(PGM) $(OBJS) $(LIBS)
  18.  
  19. install: $(PGM) $(MAN)
  20.     strip $(PGM)
  21.     mv $(PGM) $(BINDIR)
  22.     chmod $(BINMODE) $(BINDIR)/$(PGM)
  23.     cp $(MAN) $(MANDIR)
  24.     chmod $(MANMODE) $(MANDIR)/$(MAN)
  25.  
  26. clean:
  27.     rm -f $(PGM) $(OBJS)
  28.  
  29. lint:
  30.     lint $(LINTFLAGS) $(SRCS)
  31.  
  32. $(OBJS): $(HDRS)
  33.