# 
# Default target
#

default:: exes

# Get the variables definition
include $(ZK_ROOT)/makefiles/Makefile.vars

# Override and define new variables
ZK_ALL_SRCFILES := \
	bzip2.c \
	$(END_OF_LIST)

ZK_COBJS   := $(ZK_ALL_SRCFILES:.c=.o)

ZK_CPUBEXES = \
	bzip2 \
	$(END_OF_LIST)

# Get the target rules
include $(ZK_ROOT)/makefiles/Makefile.targs

# Add new targets or complement default target using :: rules
tests: $(addprefix $(ZK_BUILDDIR_PUBBIN)/,$(ZK_CPUBEXES))
	@cat words1
	$(ZK_BUILDDIR_PUBBIN)/bzip2 -1 < sample1.ref > sample1.rb2
	$(ZK_BUILDDIR_PUBBIN)/bzip2 -2 < sample2.ref > sample2.rb2
	$(ZK_BUILDDIR_PUBBIN)/bzip2 -3 < sample3.ref > sample3.rb2
	$(ZK_BUILDDIR_PUBBIN)/bzip2 -d < sample1.bz2 > sample1.tst
	$(ZK_BUILDDIR_PUBBIN)/bzip2 -d < sample2.bz2 > sample2.tst
	$(ZK_BUILDDIR_PUBBIN)/bzip2 -d < sample3.bz2 > sample3.tst
	cmp sample1.bz2 sample1.rb2 
	cmp sample2.bz2 sample2.rb2
	cmp sample3.bz2 sample3.rb2
	cmp sample1.tst sample1.ref
	cmp sample2.tst sample2.ref
	cmp sample3.tst sample3.ref
	@cat words3

# Specify dependencies
$(addprefix $(ZK_BUILDDIR_PUBBIN)/,$(ZK_CPUBEXES)): $(ZK_FULLCOBJS) -lbz2



