1 include ..
/..
/..
/support
/include.mk
3 CFLAGS
+= -I
$(ERL_C_INCLUDE_DIR
) -I..
/..
/..
/support
5 TUN_DRV_SO
= ..
/priv
/tun_drv.so
6 TUNCTL
= ..
/priv
/tunctl
8 all: $(TUN_DRV_SO
) $(TUNCTL
)
10 $(TUN_DRV_SO
): tun_drv.c
11 $(CC
) $(CFLAGS
) -o
$@
-shared
-fpic
$(ERL_INCLUDE
) $<
14 $(CC
) $(CFLAGS
) -o
$@
$<
17 -rm $(TUN_DRV_SO
) $(TUNCTL
)
19 .INTERMEDIATE
: tun_drv.o