Merge branch 'pu'
[jungerl.git] / lib / tuntap / c_src / Makefile
blob1131b634e1d9e7313ac539a445b972f3e4fcc3d9
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) $<
13 $(TUNCTL): tunctl.c
14 $(CC) $(CFLAGS) -o $@ $<
16 clean:
17 -rm $(TUN_DRV_SO) $(TUNCTL)
19 .INTERMEDIATE: tun_drv.o