-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
71 lines (64 loc) · 1.77 KB
/
Makefile.am
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
ACLOCAL_AMFLAGS = -I m4
# cli program
bin_PROGRAMS = texpackr
texpackr_CFLAGS = -Wall \
-std=c99 \
-O2 \
-pedantic \
-I./include
texpackr_LDFLAGS = -lhashmap_c \
-lpng \
-lz \
-lm
texpackr_SOURCES = src/lib.c \
src/cli.c \
src/meta.c \
src/png_util.c \
src/sprite.c \
src/treetrv.c
EXTRA_DIST = README.md LICENSE autogen.sh
# lib
lib_LTLIBRARIES = libtexpackr.la
libtexpackr_la_CFLAGS = -Wall \
-std=c99 \
-O2 \
-pedantic \
-I./include
libtexpackr_la_LDFLAGS = -no-defined -version-info 0:1:0 \
-lhashmap_c \
-lpng \
-lz \
-lm
libtexpackr_la_SOURCES = src/lib.c \
src/meta.c \
src/png_util.c \
src/sprite.c \
src/treetrv.c
libtexpackrdir=$(includedir)/texpackr
libtexpackr_HEADERS = include/texpackr/internal.h \
include/texpackr/log.h \
include/texpackr/meta.h \
include/texpackr/png_util.h \
include/texpackr/sprite.h \
include/texpackr/texpackr.h \
include/texpackr/types.h
# tests program
test_common_cflags = -Wall \
-std=c99 \
-O2 \
-pedantic \
-I. \
-I./include
test_common_ldflags = -ltexpackr \
-lhashmap_c \
-lpng \
-lz \
-lm
check_PROGRAMS = test/test test/test_readfrommem
TESTS = $(check_PROGRAMS)
test_test_SOURCES = test/test.c
test_test_CFLAGS = $(test_common_cflags)
test_test_LDFLAGS = $(test_common_ldflags)
test_test_readfrommem_SOURCES = test/test_readfrommem.c
test_test_readfrommem_CFLAGS = $(test_common_cflags)
test_test_readfrommem_LDFLAGS = $(test_common_ldflags)