BSD 4_4 release
[unix-history] / usr / src / games / trek / Makefile
index 9b8aeba..0bfaf5b 100644 (file)
@@ -1,63 +1,17 @@
-#
-# Copyright (c) 1987 Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.6 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-LIBS=  -lm
+#      @(#)Makefile    8.1 (Berkeley) 5/31/93
+
+PROG=  trek
 SRCS=  abandon.c attack.c autover.c capture.c check_out.c checkcond.c \
        compkl.c computer.c damage.c damaged.c dcrept.c destruct.c \
        dock.c dumpgame.c dumpme.c dumpssradio.c events.c externs.c \
        getcodi.c getpar.c help.c impulse.c initquad.c kill.c klmove.c \
        lose.c lrscan.c main.c move.c nova.c out.c phaser.c play.c ram.c \
 SRCS=  abandon.c attack.c autover.c capture.c check_out.c checkcond.c \
        compkl.c computer.c damage.c damaged.c dcrept.c destruct.c \
        dock.c dumpgame.c dumpme.c dumpssradio.c events.c externs.c \
        getcodi.c getpar.c help.c impulse.c initquad.c kill.c klmove.c \
        lose.c lrscan.c main.c move.c nova.c out.c phaser.c play.c ram.c \
-       ranf.c rest.c schedule.c score.c setup.c setwarp.c shell.c \
+       ranf.c rest.c schedule.c score.c setup.c setwarp.c \
        shield.c snova.c srscan.c systemname.c torped.c utility.c \
        visual.c warp.c win.c cgetc.c
        shield.c snova.c srscan.c systemname.c torped.c utility.c \
        visual.c warp.c win.c cgetc.c
-OBJS=  abandon.o attack.o autover.o capture.o check_out.o checkcond.o \
-       compkl.o computer.o damage.o damaged.o dcrept.o destruct.o \
-       dock.o dumpgame.o dumpme.o dumpssradio.o events.o externs.o \
-       getcodi.o getpar.o help.o impulse.o initquad.o kill.o klmove.o \
-       lose.o lrscan.o main.o move.o nova.o out.o phaser.o play.o ram.o \
-       ranf.o rest.o schedule.o score.o setup.o setwarp.o shell.o \
-       shield.o snova.o srscan.o systemname.o torped.o utility.o \
-       visual.o warp.o win.o cgetc.o
-MAN=   trek.0
-
-all: trek
-
-trek: ${OBJS} ${LIBC}
-       ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS}
-
-clean:
-       rm -f ${OBJS} core trek
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o games -g bin -m 700 trek ${DESTDIR}/usr/games/hide
-       (cd ${DESTDIR}/usr/games; rm -f trek; ln -s dm trek; chown games.bin trek)
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat6
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+MAN6=  trek.0
+DPADD= ${LIBM} ${LIBCOMPAT}
+LDADD= -lm -lcompat
+HIDEGAME=hidegame
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>