
# Gnu make cheat sheet ;-)
# --------------------
# $@ = name of target
# $< = name of first dependency
# $^ = names of all dependencies, separated by spaces

CC = bcc
CFLAGS = -ansi
LD = bcc

all:	testrijndael

testrijndael:	testrijndael.o rijndael_asm.o
	$(LD) -o $@ $^

%.o:	%.c
	$(CC) $(CFLAGS) -c -o $@ $<

%.o:	%.s
	nasm -f as86 $< -o $@

testrijndael.o:	testrijndael.c
rijndael_asm.o:	rijndael_asm.s

clean:
	rm -f *.o testrijndael
