# Makefile for brik
# ::[[ @(#) makefile.nix 1.2 89/07/08 10:41:32 ]]::

# Please see brik.h for configuration options.

# Make sure this file is called "makefile" (rename it if necessary).  Then
# type one of the following.
#
# "make bsd", "make sys_v", "make ultrix", "make uport"
#                   -- makes brik in current directory
# "make install"    -- makes brik, then moves it into DESTDIR defined below
# "make clean"      -- deletes "core", objects, and executable

#### Start of system configuration section. ####

srcdir = @srcdir@
VPATH = @srcdir@

# Common prefix for machine-independent installed files.
prefix = @prefix@

# Common prefix for machine-dependent installed files.
exec_prefix = @exec_prefix@

bindir = $(exec_prefix)/bin

INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@

CC = @CC@

CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@

#### End system configuration section ####

OBJS =		brik.o initcrc.o addbfcrc.o

brik:		$(OBJS)
		$(CC) $(LDFLAGS) -o brik $(OBJS)

brik.o:		brik.c brik.h assert.h

initcrc.o:	initcrc.c brik.h

install:	brik
		$(INSTALL) brik $(bindir)/brik

clean:
		rm -f $(OBJS) core brik
