home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-12-14 | 1.6 KB | 68 lines |
- # Makefile for feedpipe
- # Written by D'Arcy J.M. Cain
- #
-
- # If you put getline and friends in your local library as I do then replace
- # cain below with the library name. If not then remove the comment character
- # in the OBJECTS list to include xgetline.o there.
- LDLIBS = -lcain
- OBJECTS = feedpipe.o readcfg.o # xgetline.o
-
- NAME = feedpipe
- CFLAGS= -O -Wall -ansi -pedantic -Wcast-qual -Wid-clash-31 \
- -Wshadow -Wpointer-arith -Wwrite-strings -g
- BIN = /usr/lbin
- DIST = README feedpipe.1 feedpipe.c readcfg.c getline.c Makefile feedpipe.h
- feedpipe: $(OBJECTS)
-
- clean:
- rm -f *.o *.obj core test
-
- clobber: clean
- rm -f feedpipe $(NAME).0? $(NAME).gen
-
- link:
- ln $(LBINS) .
-
- install: feedpipe
- rm -f $(BIN)/feedpipe
- chmod 711 feedpipe
- ln feedpipe $(BIN)
-
- dist: gen shar
-
- # gen stuff needs my genfiles package
- gen: $(NAME).gen
-
- $(NAME).gen: $(DIST)
- mkscript $^ > $(NAME).gen
-
- shar: $(NAME).01
-
- $(NAME).01: $(DIST)
- shar -vxfL 40 -o $(NAME) $^
- chmod 644 $(NAME).01
- rm -f /usr/spool/uucppublic/pub/distrib/$(NAME).shar
- ln $(NAME).01 /usr/spool/uucppublic/pub/distrib/$(NAME).shar
-
- strip: feedpipe
- strip feedpipe
-
- mcs: feedpipe
- mcs -d feedpipe
-
- # The following is to get the getline source into this directory for
- # distribution purposes since it is in my standard library and not
- # actually needed for building.
-
- getline.c: ../library/getline.c
- ln ../library/getline.c .
-
- xgetline.o: getline.c
- $(CC) $(CFLAGS) -DXGETLINE_VERSION -c getline.c -o xgetline.o
-
- # not needed in feedpipe but it's available in getline anyway
- wgetline.o: getline.c
- $(CC) $(CFLAGS) -DCURSES_VERSION -c getline.c -o wgetline.o
-
-