Mercurial > hg > sidinfo
annotate Makefile.common @ 409:5a27c0fbbf20 default tip
Added tag rel-1_0_1 for changeset f18129e65b6f
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 20 Dec 2023 08:08:38 +0200 |
parents | 964ae4f29138 |
children |
rev | line source |
---|---|
327
b6f88c150573
Use the newly added (in th-libs th_args module) option argument name field.
Matti Hamalainen <ccr@tnsp.org>
parents:
313
diff
changeset
|
1 CFLAGS += -W -Wall -Wextra -std=c99 -pedantic -I./ -D_XOPEN_SOURCE=500 |
122
9fb96c170bbc
Make build process less noisy and also work with parallel make.
Matti Hamalainen <ccr@tnsp.org>
parents:
85
diff
changeset
|
2 CFLAGS += -g |
327
b6f88c150573
Use the newly added (in th-libs th_args module) option argument name field.
Matti Hamalainen <ccr@tnsp.org>
parents:
313
diff
changeset
|
3 CFLAGS += -DTH_USE_OPT_ARG=1 |
122
9fb96c170bbc
Make build process less noisy and also work with parallel make.
Matti Hamalainen <ccr@tnsp.org>
parents:
85
diff
changeset
|
4 THLIBS = th-libs/ |
0 | 5 |
363
ab53c76f40d5
Add Makefile parameter ASAN to enable address sanitizer build (and disable -O and -flto when doing that.)
Matti Hamalainen <ccr@tnsp.org>
parents:
359
diff
changeset
|
6 ifneq ($(ASAN),) |
ab53c76f40d5
Add Makefile parameter ASAN to enable address sanitizer build (and disable -O and -flto when doing that.)
Matti Hamalainen <ccr@tnsp.org>
parents:
359
diff
changeset
|
7 CFLAGS += -fsanitize=address |
ab53c76f40d5
Add Makefile parameter ASAN to enable address sanitizer build (and disable -O and -flto when doing that.)
Matti Hamalainen <ccr@tnsp.org>
parents:
359
diff
changeset
|
8 LDFLAGS += -lasan |
ab53c76f40d5
Add Makefile parameter ASAN to enable address sanitizer build (and disable -O and -flto when doing that.)
Matti Hamalainen <ccr@tnsp.org>
parents:
359
diff
changeset
|
9 else |
ab53c76f40d5
Add Makefile parameter ASAN to enable address sanitizer build (and disable -O and -flto when doing that.)
Matti Hamalainen <ccr@tnsp.org>
parents:
359
diff
changeset
|
10 CFLAGS += -O2 |
ab53c76f40d5
Add Makefile parameter ASAN to enable address sanitizer build (and disable -O and -flto when doing that.)
Matti Hamalainen <ccr@tnsp.org>
parents:
359
diff
changeset
|
11 endif |
0 | 12 |
365 | 13 |
275 | 14 ### |
15 ### Objects and targets | |
16 ### | |
359
969f86b74bff
Add th_ioctx_stdio.o to th-libs objects.
Matti Hamalainen <ccr@tnsp.org>
parents:
346
diff
changeset
|
17 THLIBS_OBJ=th_util.o th_string.o th_file.o th_args.o \ |
969f86b74bff
Add th_ioctx_stdio.o to th-libs objects.
Matti Hamalainen <ccr@tnsp.org>
parents:
346
diff
changeset
|
18 th_crypto.o th_datastruct.o th_ioctx.o \ |
969f86b74bff
Add th_ioctx_stdio.o to th-libs objects.
Matti Hamalainen <ccr@tnsp.org>
parents:
346
diff
changeset
|
19 th_ioctx_stdio.o |
0 | 20 |
313
b3d46806787d
Move a number of more or less generic helper functions into a separate sidutil.[ch] module.
Matti Hamalainen <ccr@tnsp.org>
parents:
286
diff
changeset
|
21 SIDINFO_OBJ=sidlib.o sidutil.o sidinfo.o |
274
a5bc27d26174
Rename EXEEXT to BINEXT in the build system, as per changes in th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
191
diff
changeset
|
22 SIDINFO_BIN=$(BINPATH)sidinfo$(BINEXT) |
0 | 23 |
68 | 24 TARGETS += $(SIDINFO_BIN) |
0 | 25 |
275 | 26 |
27 ### | |
28 ### Rules | |
29 ### | |
137 | 30 include $(THLIBS)/Makefile.inc |
31 | |
275 | 32 |
0 | 33 $(SIDINFO_BIN): $(addprefix $(OBJPATH),$(SIDINFO_OBJ)) $(THLIBS_A) $(EXTRAOBJS) |
390 | 34 $(call LINK_C_BIN,) |
0 | 35 |