
The only reason to use clock_gettime() was to take a timestamp in the signal handler. This is not needed anymoire, so improve portability by sticking to gettimeofday() and setitimer().
19 lines
187 B
Makefile
19 lines
187 B
Makefile
#
|
|
|
|
PROG= echoc
|
|
SRCS= echoc.c
|
|
|
|
OBJS= $(SRCS:%.c=%.o)
|
|
|
|
LIBS=
|
|
|
|
all: $(PROG)
|
|
|
|
$(PROG): $(OBJS)
|
|
$(CC) -o $@ $(OBJS) $(LIBS)
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(PROG)
|
|
|
|
.c.o:
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|