PROG = nc

CFLAGS = -Wall -I. -g
LDFLAGS =
LOADLIBS = -lfstrcmp

all: $(PROG)

$(PROG): natural_cmd.o hardcoded.o
	$(LINK.c) $^ $(LOADLIBS) $(LDLIBS) -o $@


clean:
	-rm -f *.o *~

proper: clean
	-rm -f $(PROG)

test: $(PROG) $(PROG).test
	./$(PROG) < ./$(PROG).test