##########################################################################
##																		##
##  Copyright (C) 2010 Garz & Fricke GmbH								##
##																		##
##		No use or disclosure of this information in any form without	##
##		the written permission of the author							##
##																		##
##########################################################################

TARGET=bit


top_srcdir	?= $(SYSROOT)/usr

CFLAGS+=    -I$(top_srcdir)/include -Wall -Werror
LOADLIBES+= -L$(top_srcdir)/lib
LDFLAGS+=   -lpthread -lncurses

SRCS=$(TARGET).c


all: $(TARGET)

$(TARGET): $(SRCS)
	@mkdir -p ../bin
	@$(CC) $(CFLAGS) $< $(LDFLAGS) $(LOADLIBES) -o ../bin/$@

clean:
	rm -f $(TARGET) *.o *.bak *~
