]> rtime.felk.cvut.cz Git - can-usb1.git/blob - ulan/host/libs4c/ulut/Makefile.omk
Initializing repo
[can-usb1.git] / ulan / host / libs4c / ulut / Makefile.omk
1 default_CONFIG = CONFIG_OC_ULUT=y 
2 default_CONFIG += CONFIG_OC_ULUTRTL=n 
3 default_CONFIG += CONFIG_OC_SOLIBS=x
4
5 ifeq ($(CONFIG_OC_ULUT),y)
6
7 include_HEADERS  = ul_dbuff.h ul_evcbase.h ul_gavl.h ul_gavlcust.h \
8                ul_gavlflesint.h ul_gavlrepcust.h ul_gsa.h ul_gsacust.h \
9                ul_hptree.h ul_htimdefs.h ul_htimer.h ul_itbase.h \
10                ul_list.h ul_listbase.h ul_utdefs.h ul_utmalloc.h \
11                ul_uniqid.h ul_dbufflog.h ul_log.h ul_logbase.h \
12                ul_logreg.h ul_cbuff.h
13
14 lib_LIBRARIES = ulut
15
16 ifeq ($(CONFIG_OC_SOLIBS),y)
17 shared_LIBRARIES = ulut
18 endif
19
20 ulut_SOURCES = ul_dbufbase.c ul_dbufmore.c ul_gsa.c ul_gsacust.c \
21                ul_gavlprim.c ul_gavl.c ul_hptree.c \
22                ul_htimer.c ul_htimbase.c ul_htimmstime.c \
23                ul_evcbase.c ul_uniqid.c ul_dbufflog.c ul_logbase.c \
24                ul_logreg.c ul_cbuff.c
25
26 lib_LOADLIBES = ulut
27
28 ifneq ($(TARGET_OS),win32)
29 utils_PROGRAMS = ul_gavlchk ul_gsachk ul_htimchk
30 endif
31
32 ul_gavlchk_SOURCES = ul_gavlchk.c
33 ul_gsachk_SOURCES = ul_gsachk.c
34 ul_htimchk_SOURCES = ul_htimchk.c
35
36 endif
37
38 # RT-Linux version of build
39
40 ifeq ($(CONFIG_OC_ULUTRLT),y)
41
42 rtlinux_INCLUDES = -DUL_WITH_RTL_MALLOC
43
44 rtlinux_LIBRARIES = ulutrtl
45
46 rtlinux_with_malloc_HEADERS  = ul_dbuff.h ul_evcbase.h \
47                ul_gsa.h ul_gsacust.h ul_hptree.h ul_utmalloc.h
48
49 rtlinux_HEADERS = ul_gavl.h ul_gavlcust.h \
50                ul_gavlflesint.h ul_gavlrepcust.h \
51                ul_htimdefs.h ul_htimer.h ul_itbase.h \
52                ul_list.h ul_listbase.h ul_utdefs.h \
53                $(rtlinux_with_malloc_HEADERS)
54
55 ulutrtl_with_malloc_SOURCES = ul_dbufbase.c ul_dbufmore.c ul_gavl.c ul_hptree.c \
56                ul_evcbase.c ul_gsa.c ul_gsacust.c
57
58 ulutrtl_SOURCES = ul_gavlprim.c ul_htimer.c ul_htimbase.c \
59                $(ulutrtl_with_malloc_SOURCES)
60                
61 rtlinux_LOADLIBES = ulutrtl
62
63 rtlinux_MODULES = ul_rtlchk ul_gsachk
64
65 ul_rtlchk_SOURCES = ul_rtlchk.c
66
67 # Linux-kernel version of build
68
69 kernel_LIBRARIES = ulutkern
70
71 kernel_HEADERS = ul_gavl.h ul_gavlcust.h \
72                ul_gavlflesint.h ul_gavlrepcust.h \
73                ul_htimdefs.h ul_htimer.h ul_itbase.h \
74                ul_list.h ul_listbase.h ul_utdefs.h \
75                $(rtlinux_with_malloc_HEADERS)
76
77 ulutkern_SOURCES = ul_gavlprim.c ul_htimer.c ul_htimbase.c
78
79 endif