# Makefile for crcmodel, a reference implimentation for generating a CRC checksum.
#   Invoke using "gmake"
# Mahlon R. Smith, The Software Samurai
# Tools: GCC 4.8.3 for Linux
# Note: We use the GNU C11 standard for compilation. Only a few string functions 
#       require this, otherwise -std=c99 would be sufficient.
# 
# 

# This variable is defined for technical reasons
# (see 'make' documentation for more information)
.RECIPEPREFIX = >

COMPILE = gcc -x c -std=gnu11 -Wall -c

#** Build the temporary test application **
crcmodel: crcmodel.o crctable.o
> gcc -o crcmodel crcmodel.o crctable.o

crcmodel.o: crcmodel.c crcmodel.h
> $(COMPILE) crcmodel.c

crctable.o: crctable.c crcmodel.h
> $(COMPILE) crctable.c

