Makefile.am 2.84 KB
Newer Older
thomas's avatar
thomas committed
1
2
3
4
5
6
7
#
# automake template
# added by tim blechmann
# added by Thomas Grill
#

# static libraries
thomas's avatar
thomas committed
8
#lib_LIBRARIES = 
thomas's avatar
thomas committed
9
# shared libraries
thomas's avatar
thomas committed
10
lib_LTLIBRARIES = libflext-@SYSTEM@_s.la libflext-@SYSTEM@_sd.la libflext-@SYSTEM@_t.la libflext-@SYSTEM@_td.la libflext-@SYSTEM@.la libflext-@SYSTEM@_d.la 
thomas's avatar
thomas committed
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

SRCS_FLEXT = \
	flbase.cpp \
	flext.cpp \
	flbuf.cpp \
	fldsp.cpp \
	fllib.cpp \
	flxlet.cpp \
	flattr.cpp \
	flattr_ed.cpp \
	flsupport.cpp \
	flutil.cpp \
	flthr.cpp \
	fltimer.cpp \
	flsimd.cpp \
	flout.cpp \
	flatom.cpp \
	flatom_pr.cpp \
	flatom_part.cpp \
	flitem.cpp \
	flmeth.cpp \
	flmsg.cpp \
	flproxy.cpp \
	flqueue.cpp \
	flbind.cpp \
	flmap.cpp

nobase_pkginclude_HEADERS = \
	flprefix.h \
	flstdc.h \
	flbase.h \
	flclass.h \
	flext.h \
	flsupport.h \
	flmap.h \
	fldsp.h \
thomas's avatar
thomas committed
47
	flmspbuffer.h \
thomas's avatar
thomas committed
48
49
	flinternal.h \
	flcontainers.h \
thomas's avatar
thomas committed
50
51
	flpushns.h \
	flpopns.h \
thomas's avatar
thomas committed
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
	fldefs.h \
	fldefs_hdr.h \
	fldefs_setup.h \
	fldefs_methcb.h \
	fldefs_meththr.h \
	fldefs_methadd.h \
	fldefs_methbind.h \
	fldefs_methcall.h \
	fldefs_attrcb.h \
	fldefs_attrvar.h \
	fldefs_attradd.h \
	lockfree/prefix.hpp \
	lockfree/branch_hints.hpp \
	lockfree/cas.hpp \
	lockfree/atomic_int.hpp \
	lockfree/atomic_ptr.hpp \
	lockfree/fifo.hpp \
69
70
	lockfree/stack.hpp \
	$(SRCS_FLEXT)
thomas's avatar
thomas committed
71
72
73
74
75



# handling for stk / sndobj
SRCS_STK = flstk.cpp
76
HDRS_STK = flstk.h
thomas's avatar
thomas committed
77
78

SRCS_SNDOBJ = flsndobj.cpp
79
HDRS_SNDOBJ = flsndobj.h
thomas's avatar
thomas committed
80
81
82
83

if SNDOBJ
SRCS_FLEXT         += $(SRCS_SNDOBJ)
nobase_pkginclude_HEADERS += $(HDRS_SNDOBJ)
84
LIB_SNDOBJ         = sndobj
thomas's avatar
thomas committed
85
86
87
88
89
endif

if STK
SRCS_FLEXT         += $(SRCS_STK)
nobase_pkginclude_HEADERS += $(HDRS_STK)
90
LIB_STK            =  stk
thomas's avatar
thomas committed
91
92
endif

thomas's avatar
thomas committed
93
94
95
96
libflext_@SYSTEM@_s_la_SOURCES    = $(SRCS_FLEXT)
libflext_@SYSTEM@_sd_la_SOURCES  = $(SRCS_FLEXT)
libflext_@SYSTEM@_t_la_SOURCES  = $(SRCS_FLEXT)
libflext_@SYSTEM@_td_la_SOURCES = $(SRCS_FLEXT)
thomas's avatar
thomas committed
97
98
99
libflext_@SYSTEM@_la_SOURCES = $(SRCS_FLEXT)
libflext_@SYSTEM@_d_la_SOURCES = $(SRCS_FLEXT)

thomas's avatar
thomas committed
100
101
102
103
libflext_@SYSTEM@_s_la_CXXFLAGS    = @OPT_FLAGS@ -static $(patsubst %,-I%,@INCLUDEDIRS@)
libflext_@SYSTEM@_sd_la_CXXFLAGS  = @DBG_FLAGS@ -static $(patsubst %,-I%,@INCLUDEDIRS@)
libflext_@SYSTEM@_t_la_CXXFLAGS  = @OPT_FLAGS@ -static $(patsubst %,-I%,@INCLUDEDIRS@) -DFLEXT_THREADS 
libflext_@SYSTEM@_td_la_CXXFLAGS = @DBG_FLAGS@ -static $(patsubst %,-I%,@INCLUDEDIRS@) -DFLEXT_THREADS 
104
105
libflext_@SYSTEM@_la_CXXFLAGS    = @OPT_FLAGS@ $(patsubst %,-I%,@INCLUDEDIRS@) -DFLEXT_SHARED -DFLEXT_EXPORTS
libflext_@SYSTEM@_d_la_CXXFLAGS  = @DBG_FLAGS@ $(patsubst %,-I%,@INCLUDEDIRS@) -DFLEXT_SHARED -DFLEXT_EXPORTS
thomas's avatar
thomas committed
106

thomas's avatar
thomas committed
107
108
libflext_@SYSTEM@_la_LDFLAGS  = @LD_FLAGS@ $(patsubst %,-L%,@LIBDIRS@) $(patsubst %,-l%,@libs@ $(LIB_SNDOBJ) $(LIB_STK)) $(patsubst %,-framework %,@FRAMEWORKS@)
libflext_@SYSTEM@_d_la_LDFLAGS  = @LD_FLAGS@ $(patsubst %,-L%,@LIBDIRS@) $(patsubst %,-l%,@libs@ $(LIB_SNDOBJ) $(LIB_STK)) $(patsubst %,-framework %,@FRAMEWORKS@) 
109
110
111

#libflext_@SYSTEM@_la_LIBADD = @libs@ 
#libflext_@SYSTEM@_d_la_LIBADD = @libs@