18 lines
253 B
Makefile
18 lines
253 B
Makefile
LIBTARGET = libnet.a
|
|
|
|
all: $(LIBTARGET)
|
|
|
|
CFILES = net.c netdata.c list.c mesg.c
|
|
|
|
OBJS = $(CFILES:.c=.o)
|
|
|
|
$(LIBTARGET): $(OBJS)
|
|
-rm -f $(LIBTARGET)
|
|
ar rv $(LIBTARGET) $(OBJS)
|
|
$(RANLIB) $(LIBTARGET)
|
|
|
|
clean:
|
|
-rm $(LIBTARGET) *.o
|
|
tags:
|
|
etags -t *.[ch]
|