File: Makefile

package info (click to toggle)
uml-utilities 20040406-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 704 kB
  • ctags: 398
  • sloc: ansic: 3,169; perl: 929; makefile: 203; exp: 129; sh: 92
file content (24 lines) | stat: -rw-r--r-- 432 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
TUNTAP = $(shell [ -e /usr/include/linux/if_tun.h ] && echo -DTUNTAP)

BIN = uml_net
CFLAGS = -g -Wall $(TUNTAP)

BIN_DIR ?= /usr/bin

OBJS = ethertap.o host.o output.o slip.o uml_net.o

ifneq ($(TUNTAP),)
	OBJS += tuntap.o
endif

all : $(BIN)

$(BIN) : $(OBJS)
	$(CC) $(CFLAGS) -o $(BIN) $(OBJS)

clean : 
	rm -f $(BIN) $(OBJS) *~

install : $(BIN)
	install -d $(DESTDIR)$(BIN_DIR)
	install -s -m 04755 $(BIN) $(DESTDIR)$(BIN_DIR)