PROGS     = utelnetd

INSTDIR   = $(prefix)/bin/
INSTMODE  = 0755
INSTOWNER = root
INSTGROUP = root

include ../../Rules.mak
#CC = mips-uclibc-gcc 
CC = $(CROSS)gcc 
OBJS = utelnetd.o

all: $(PROGS)

CFLAGS   += -DSHELLPATH=\"$(run_prefix)/bin/login\"

ifneq ("","$(DEBUG)")
CFLAGS   += -DDEBUG
endif

$(PROGS): $(OBJS)
	$(CC) $(LDFLAGS) $^ $(LDLIBS) -Os -s -o $@

.PHONY: install
install: $(PROGS)
	cp utelnetd ../../target/usr/sbin

.PHONY: clean
clean:
	rm -f $(PROGS) *.o core
