# # 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 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 \ 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} tags: ${SRCS} ctags ${SRCS}