GNUmakefile 443 Bytes
Newer Older
Mike Hibler's avatar
Mike Hibler committed
1
2
3
4
5
6
#
# EMULAB-COPYRIGHT
# Copyright (c) 2006 University of Utah and the Flux Group.
# All rights reserved.
#

7
8
9
SYSTEM :=	$(shell uname -s)

# I like using -pedantic, but it gives us some trouble with function pointers
Robert Ricci's avatar
Robert Ricci committed
10
CFLAGS=-Wall -Werror -std=c99
11
12
13
14
15
16
17

ifeq ($(SYSTEM),Linux)
    LD_FLAGS=-ldl
else
    LD_FLAGS=
endif

18
all: libnetmon.so netmond netmonup
19
20
21
22
23

%.so: %.c %.h
	$(CC) $(CFLAGS) $(LD_FLAGS) -shared -o $@ $<

clean:
24
	-rm *.so netmond netmonup