diff options
Diffstat (limited to 'hangman/Makefile')
-rw-r--r-- | hangman/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/hangman/Makefile b/hangman/Makefile index 357bc8fd..0205e266 100644 --- a/hangman/Makefile +++ b/hangman/Makefile @@ -5,10 +5,18 @@ PROG= hangman SRCS= endgame.c extern.c getguess.c getword.c main.c playgame.c \ prdata.c prman.c prword.c setup.c MAN= hangman.6 -DPADD= ${LIBCURSES} ${LIBTERMINFO} -LDADD= -lcurses -lterminfo -HIDEGAME=hidegame -.include <bsd.prog.mk> +all: $(PROG) +$(PROG): $(SRCS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw + $(STRIP) $(PROG) +install: $(PROG) $(MAN) + $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/usr/games/$(PROG) + $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/usr/share/man/man6/$(MAN) + +clean: + rm -f $(CLEANFILES) $(PROG) + +.PHONY: all clean install |