1# 2# Copyright (c) 1987 Regents of the University of California. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms are permitted 6# provided that the above copyright notice and this paragraph are 7# duplicated in all such forms and that any documentation, 8# advertising materials, and other materials related to such 9# distribution and use acknowledge that the software was developed 10# by the University of California, Berkeley. The name of the 11# University may not be used to endorse or promote products derived 12# from this software without specific prior written permission. 13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16# 17# @(#)Makefile 5.9 (Berkeley) 07/30/89 18# 19CFLAGS= -O 20LIBC= /lib/libc.a 21SRCS= comp.c end.c extern.c init.c mille.c misc.c move.c print.c \ 22 roll.c save.c table.c types.c varpush.c 23MSRCS= comp.c end.c extern.c init.c mille.c misc.c move.c print.c \ 24 roll.c save.c types.c varpush.c 25MOBJS= comp.o end.o extern.o init.o mille.o misc.o move.o print.o \ 26 roll.o save.o types.o varpush.o 27TSRCS= table.c extern.c 28TOBJS= table.o extern.o 29MAN= mille.0 30 31all: mille 32 33mille: ${MOBJS} ${LIBC} 34 ${CC} ${CFLAGS} -o $@ ${MOBJS} -lcurses -ltermlib -lcompat 35 36table: ${TOBJS} ${LIBC} 37 ${CC} ${CFLAGS} -o $@ ${TOBJS} 38 39clean: 40 rm -f ${OBJS} ${TOBJS} ${MOBJS} core mille table 41 42cleandir: clean 43 rm -f ${MAN} tags .depend 44 45depend: ${SRCS} 46 mkdep ${CFLAGS} ${SRCS} 47 48install: ${MAN} 49 install -s -o games -g bin -m 700 mille ${DESTDIR}/usr/games/hide 50 (cd ${DESTDIR}/usr/games; rm -f mille; ln -s dm mille; chown games.bin mille) 51 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat6 52 53lint: ${SRCS} 54 lint ${CFLAGS} ${MSRCS} 55 lint ${CFLAGS} ${TSRCS} 56 57tags: ${SRCS} 58 ctags ${MSRCS} 59 ctags -a ${TSRCS} 60 sort -o tags tags 61