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.6 (Berkeley) 10/20/88 18# 19CFLAGS= -O 20LIBC= /lib/libc.a 21LIBS= -lm 22SRCS= abandon.c attack.c autover.c capture.c check_out.c checkcond.c \ 23 compkl.c computer.c damage.c damaged.c dcrept.c destruct.c \ 24 dock.c dumpgame.c dumpme.c dumpssradio.c events.c externs.c \ 25 getcodi.c getpar.c help.c impulse.c initquad.c kill.c klmove.c \ 26 lose.c lrscan.c main.c move.c nova.c out.c phaser.c play.c ram.c \ 27 ranf.c rest.c schedule.c score.c setup.c setwarp.c shell.c \ 28 shield.c snova.c srscan.c systemname.c torped.c utility.c \ 29 visual.c warp.c win.c cgetc.c 30OBJS= abandon.o attack.o autover.o capture.o check_out.o checkcond.o \ 31 compkl.o computer.o damage.o damaged.o dcrept.o destruct.o \ 32 dock.o dumpgame.o dumpme.o dumpssradio.o events.o externs.o \ 33 getcodi.o getpar.o help.o impulse.o initquad.o kill.o klmove.o \ 34 lose.o lrscan.o main.o move.o nova.o out.o phaser.o play.o ram.o \ 35 ranf.o rest.o schedule.o score.o setup.o setwarp.o shell.o \ 36 shield.o snova.o srscan.o systemname.o torped.o utility.o \ 37 visual.o warp.o win.o cgetc.o 38MAN= trek.0 39 40all: trek 41 42trek: ${OBJS} ${LIBC} 43 ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS} 44 45clean: 46 rm -f ${OBJS} core trek 47 48cleandir: clean 49 rm -f ${MAN} tags .depend 50 51depend: ${SRCS} 52 mkdep ${CFLAGS} ${SRCS} 53 54install: ${MAN} 55 install -s -o games -g bin -m 700 trek ${DESTDIR}/usr/games/hide 56 (cd ${DESTDIR}/usr/games; rm -f trek; ln -s dm trek; chown games.bin trek) 57 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat6 58 59lint: ${SRCS} 60 lint ${CFLAGS} ${SRCS} 61 62tags: ${SRCS} 63 ctags ${SRCS} 64