Rewrite the main loop to use a timer.

XXX not finished yet, lots of debug information and bugs left.
This commit is contained in:
Matthieu Herrb 2012-07-30 20:49:29 +02:00
parent 13437c1076
commit ca410bd75a
2 changed files with 129 additions and 33 deletions

View file

@ -5,10 +5,12 @@ SRCS= echoc.c
OBJS= $(SRCS:%.c=%.o)
LIBS= -lrt
all: $(PROG)
$(PROG): $(OBJS)
$(CC) -o $@ $(OBJS)
$(CC) -o $@ $(OBJS) $(LIBS)
.c.o:
$(CC) -c $(CFLAGS) -o $@ $<