BINNAME1 = channel
BINNAME2 = compdec
BINNAME3 = showdec
BINNAME4 = showhex

BINS = $(BINNAME1) $(BINNAME2) $(BINNAME3) $(BINNAME4)

INCDIR = -I../../include
CFLAGS = -Wall -pedantic -ggdb

all: $(BINS)

$(BINNAME1): channel.c rand32.c
	gcc $(CFLAGS) $(INCDIR) -o $(BINNAME1) channel.c rand32.c -lm

$(BINNAME2):
	gcc -o $(BINNAME2) compdec.c

$(BINNAME3):
	gcc -o $(BINNAME3) showdec.c

$(BINNAME4):
	gcc -o $(BINNAME4) showhex.c

clean:
	rm *~ *.o $(BINS)
