-
Notifications
You must be signed in to change notification settings - Fork 4
/
tuntap.cabal
45 lines (38 loc) · 1.25 KB
/
tuntap.cabal
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
36
37
38
39
40
41
42
43
44
45
Name: tuntap
Synopsis: Interface to TUN/TAP drivers.
Description: TUN/TAP is a virtual network adapter supported by serveral
operating systems.
Version: 0.0.2.1
License: BSD3
License-File: LICENSE
Author: John Van Enk <[email protected]>
Maintainer: John Van Enk <[email protected]>
Stability: experimental
Category: Network
Cabal-Version: >= 1.6
Build-Type: Simple
Package-URL: http://github.com/sw17ch/tuntap
Extra-Source-Files: cbits/help.h
Library
Build-Depends: base >= 4 && < 5,
bytestring >= 0.9.1.4 && < 0.10
Exposed-Modules:
Network.TUNTAP
ghc-options: -Wall
cc-options: -Wall
hs-source-dirs: src
if os(mingw32)
c-sources: cbits/help-win.c
extra-libraries: Iphlpapi, ws2_32
cc-options: -D MINGW32
cpp-options: -DCALLCONV=stdcall
if os(linux)
build-depends: unix >= 2.3.0.0
c-sources: cbits/help-linux.c
cc-options: -D LINUX
cpp-options: -DCALLCONV=ccall
if os(darwin) || os(freebsd)
build-depends: unix >= 2.3.0.0
c-sources: cbits/help-bsd.c
cc-options: -D BSD
cpp-options: -DCALLCONV=ccall