Changed Makefiles, made output cleaner and eliminated double defined symbol
[netsniff-ng.git] / src / lib / Makefile
blob53be9dd4070ebbc537a9fe86e54fb123dc70be2a
2 # Makefile for netsniff-ng lib
5 CC = echo "CC $<"; \
6 gcc $(ARGS)
7 LIBS = -lpthread -lrt
8 INCLUDE = -I../include
9 CFLAGS = -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -fno-delete-null-pointer-checks
10 CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration \
11 -Wno-format-security -Wcomments -Wendif-labels
12 CFLAGSDBG = -g -Q -fdump-translation-unit
13 MAKEFLAGS += --no-print-directory
14 OBJECTS = bpf.o misc.o print.o config.o rx_ring.o system.o dump.o hash.o netdev.o tx_ring.o \
15 bootstrap.o replay.o ringbuff.o
17 all: lib
19 lib: $(OBJECTS)
21 %.o: %.c
22 @$(CC) -c $(CFLAGS) $(INCLUDE) $<
24 clean:
25 @rm *.o *.tu *.nccout Code.map 2&>0 0>/dev/null || true