CROSS_COMPILE=arm-none-linux-gnueabi-

CC=$(CROSS_COMPILE)gcc
STRIP=$(CROSS_COMPILE)strip
NAME1=tcps2
NAME2=tcpsp

all: release debug

clean:
	rm -f $(NAME1)-release $(NAME1)-debug
	rm -f $(NAME2)-release $(NAME2)-debug

release:	$(NAME1).c $(NAME2).c
	$(CC) -o $(NAME1)-release $(NAME1).c
	$(STRIP) -s $(NAME1)-release
	$(CC) -o $(NAME2)-release $(NAME2).c
	$(STRIP) -s $(NAME2)-release

debug:		$(NAME1).c $(NAME2).c
	$(CC) -ggdb -o $(NAME1)-debug $(NAME1).c
	$(CC) -ggdb -o $(NAME2)-debug $(NAME2).c
