summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 2814636f13a394e0db7bd9d57b5e74b94f9ea3e2 (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
lib_LTLIBRARIES = libicclient.la
libicclient_la_SOURCES = \
			 request.h \
			 request.c \
			 product.c \
			 catalog.c \
			 client.c
if !WASM
libicclient_la_SOURCES += \
			 ord.c \
			 login.h \
			 login.c \
			 member.c \
			 admin.c
endif
libicclient_la_CPPFLAGS = -I${prefix}/include $(DEPS_CFLAGS)
if WASM
libicclient_la_LDFLAGS = -static
else
libicclient_la_LDFLAGS = $(DEPS_LIBS) -lcurl
endif
if IOS
libicclient_la_LDFLAGS += -static
endif
pkginclude_HEADERS = \
		  icclient/typedefs.h \
		  icclient/product.h \
		  icclient/catalog.h \
		  icclient/client.h
if !WASM
pkginclude_HEADERS += \
		  icclient/ord.h \
		  icclient/member.h \
		  icclient/admin.h
endif

#if !WASM
#bin_PROGRAMS = testicclient
#testicclient_SOURCES = main.c client.c catalog.c product.c request.c
#testicclient_CPPFLAGS = -I${prefix}/include $(DEPS_CFLAGS)
#testicclient_LDFLAGS = $(DEPS_LIBS) -lcurl
#endif