
# Makefile for bwmon, Linux Network Bandwidth Monitor
# Created by Kimmo Nupponen

# NOTE:
# I used to provide a version for non-curses
# but I do not anymore

CC = gcc
RM = /bin/rm
INSTALL = install

CFLAGS = -I../include -Wall -D__THREADS
LDFLAGS = -lpthread -lncurses 

SRC = bwmon.c
OBJS = $(SRC:.c=.o)

all: bwmon

bwmon: $(OBJS)
	$(CC) $(LDFLAGS) -o ../$@ $(OBJS)

clean:
	@for i in $(OBJS) *~ core bwmon; do \
		if test -f $$i ; then \
			$(RM) $$i; \
		fi \
	done
