include ../../Rules_trunk.mak
PROGS     = utelnetd

INSTDIR   = $(prefix)/bin/
INSTMODE  = 0755
INSTOWNER = root
INSTGROUP = root
#CC = mipsel-uclibc-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 $(INSTALLDIR)/usr/sbin

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