aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: db8718cb953fe77cf86c1581a654a9151f0c6dcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

TARGETS = mtu
CFLAGS ?= -g

prefix = /usr
BINDIR = $(prefix)/bin
DESTDIR ?=

INSTALL = install
INSTALLDIR = $(INSTALL) -d

pingu_OBJS = \
	log.o \
	pingu.o \
	xlib.o

mtu_OBJS = \
	mtu.o \
	netlink.o \
	icmp.o

ALL_OBJS= $(pingu_OBJS) $(mtu_OBJS)

all: $(TARGETS)

pingu: $(pingu_OBJS)

mtu: $(mtu_OBJS)

install: $(TARGETS)
	$(INSTALLDIR) $(DESTDIR)/$(BINDIR)
	$(INSTALL) $(TARGETS) $(DESTDIR)/$(BINDIR)
	
clean:
	rm -f $(TARGETS) $(ALL_OBJS)