File: Makefile

package info (click to toggle)
uml-utilities 20070815-1.3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 740 kB
  • sloc: ansic: 3,390; perl: 1,277; makefile: 253; sh: 175; exp: 129
file content (25 lines) | stat: -rw-r--r-- 452 bytes parent folder | download | duplicates (8)
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
TUNTAP = $(shell [ -e /usr/include/linux/if_tun.h ] && echo -DTUNTAP)

BIN = uml_net
CFLAGS ?= -g -Wall
override CFLAGS += $(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)