AXIS_USABLE_LIBS = UCLIBC GLIBC
include $(AXIS_TOP_DIR)/tools/build/Rules.axis

PROGS     = tty_cgi

OBJS      = lib_tty.o main.o

INSTDIR = $(prefix)/usr/bin

all: $(PROGS)
$(PROGS): $(OBJS)
	$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
	$(STRIP) $@

install: $(PROGS)
	$(INSTALL) -p -o root -g root -m 0777 $(PROGS) $(INSTDIR)

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