summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: b32f5b85e8a7ddaa3f2afdf4bd3d8c8d1935f689 (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Copyright (C) 2009, 2010 Free Software Foundation, Inc.
# 
# This file is part of nsmux.
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
# 
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


noinst_LIBRARIES =
MOSTLYCLEANFILES =


AM_CPPFLAGS =
AM_CFLAGS =

bin_PROGRAMS =


AM_CPPFLAGS += \
  -include config.h

AM_CFLAGS += \
  -Wall


# MIG Setup.

# MIGCOM.
MIGCOM = $(MIG) -n -cc cat - /dev/null

# Makerules.mig: how to do some MIG-related things.
include Makerules.mig.am


bin_PROGRAMS += \
  nsmux


nsmux_SOURCES = \
  nsmux.c \
  node.c \
  lnode.c \
  ncache.c \
  options.c \
  lib.c \
  magic.c \
  trans.c


# Helper, awaiting a proper solution.
%.server.defs.c:
	rm -f $@
	echo \
	  > $@ \
	  '#include <$*.defs>' 

# Server stubs.
nodist_lib_dep_tr_for_defs_a_SOURCES += \
	mach/notify.server.defs.c
nodist_nsmux_SOURCES = \
	mach/notify.server.h \
	mach/notify.server.c \
	mach/notify.server.msgids


nsmux_CPPFLAGS = \
  -DDEBUG \
  $(AM_CPPFLAGS)

nsmux_LDADD = \
  -lnetfs \
  -lfshelp \
  -liohelp \
  -lpthread \
  -lports \
  -lihash \
  -lshouldbeinlibc