summaryrefslogtreecommitdiff
path: root/src/GNUmakefile
blob: f333dc3071be9159818135c36fb7de166dd36d9a (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
89
90
91
92
93
94
95
96
97
98
99
100
101
TOPDIR = ..

SUBDIRS =

-include $(TOPDIR)/makefiles/gmake/platform.mk

INCLUDE_DIRS = -I$(TOPDIR)/include/wolf -I.

BINS =

ifeq "$(ENABLE_THREADS)" "1"
THREADING_OBJS = \
	threads/mutex.o \
	threads/threads.o
else
THREADING_OBJS =
endif

PORT_OBJS = \
	port/string.o \
	port/unistd.o \
	port/stdio.o \
	port/stdlib.o \
	port/time.o \
	port/netdb.o

ifeq "$(ENABLE_NLS)" "1"
PORT_OBJS += \
	port/gettext.o
endif

LOG_OBJS = \
	log/log.o

DAEMON_OBJS = \
	daemon/signals.o \
	daemon/pidfile.o \
	daemon/daemon.o

SERVICE_OBJS = \
	service/service.o

NETWORK_OBJS = \
	network/network_unix.o

LIBRARY_OBJS = \
	library/loader.o

OBJS = \
	errors.o \
	$(THREADING_OBJS) \
	$(PORT_OBJS) \
	$(LOG_OBJS) \
	$(DAEMON_OBJS) \
	$(NETWORK_OBJS) \
	$(LIBRARY_OBJS)

CATALOG_NAME = libwolf

GETTEXT_LANGUAGES = de

GETTEXT_FILES = $(OBJS:.o=.c) $(SERVICE_OBJS:.o=.c)

GETTEXT_TRIGGERS = _ gettext_noop gettext

STATIC_LIB = libwolf.a

DYNAMIC_LIB = libwolf.so
DYNAMIC_LIB_MAJOR = 0
DYNAMIC_LIB_MINOR = 0
DYNAMIC_LIB_PATCH = 0

-include $(TOPDIR)/makefiles/gmake/sub.mk

local_all:

local_clean:
	-@rm -f port/*.bak
	-@rm -f port/*~
	-@rm -f port/*.d
	-@rm -f log/*.bak
	-@rm -f log/*~
	-@rm -f log/*.d
	-@rm -f daemon/*.bak
	-@rm -f daemon/*~
	-@rm -f daemon/*.d
ifeq "$(ENABLE_THREADS)" "1"
	-@rm -f threads/*.bak
endif
	-@rm -f threads/*~
	-@rm -f threads/*.d
	-@rm -f library/*.bak
	-@rm -f library/*~
	-@rm -f library/*.d
	-@rm -f network/*.bak
	-@rm -f network/*~
	-@rm -f network/*.d

local_distclean:

local_install: