# $Header: /home/amb/xbomb/RCS/Makefile 1.13 1996/01/20 21:02:46 amb Exp $ # # XBomb - 'Minesweeper' game - Version 2 # # Makefile. # # Written by Andrew M. Bishop # # This file Copyright 1994 1995 Andrew M. Bishop # It may be distributed under the GNU Public License, version 2, or # any higher version. See section COPYING of the GNU Public license # for conditions under which this file may be redistributed. # #CC=gcc CFLAGS+= -I${X11BASE}/include -DX11BASE=\"${X11BASE}\" LIB= XLIB=-L${X11BASE}/lib -lXaw -lXmu -lXt -lX11 -lcompat XLIB+= -Wl,-rpath,${X11BASE}/lib LINK=$(CC) OBJ=xbomb.o xwindow.o hiscore.o INSTDIR=${PREFIX} ######## all: xbomb xbomb : $(OBJ) $(LINK) $(OBJ) -o $@ $(LIB) $(XLIB) ######## xbomb.o : xbomb.c xbomb.h xwindow.o : xwindow.c xbomb.h icon.h hiscore.o : hiscore.c xbomb.h ######## clean : -rm -f *.o *~ core ######## install : # strip xbomb # install -d $(INSTDIR)/bin # install -d $(INSTDIR)/man/man6 # install -d $(INSTDIR)/lib/app-defaults ${BSD_INSTALL_PROGRAM} xbomb $(INSTDIR)/bin ${BSD_INSTALL_MAN} xbomb.6 $(INSTDIR)/man/man6 ${BSD_INSTALL_DATA} xbomb.ad $(INSTDIR)/lib/X11/app-defaults/XBomb