Mercurial > hg > sidinfo
annotate Makefile.gen @ 339:923e63b9653b
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 13 Jan 2020 15:14:16 +0200 |
parents | b6f88c150573 |
children | 5fafd0735b18 |
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 |
0 | 3 CFLAGS += -O2 |
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
|
4 #CFLAGS += -flto |
b6f88c150573
Use the newly added (in th-libs th_args module) option argument name field.
Matti Hamalainen <ccr@tnsp.org>
parents:
313
diff
changeset
|
5 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
|
6 THLIBS = th-libs/ |
0 | 7 |
8 | |
275 | 9 ### |
10 ### Objects and targets | |
11 ### | |
178
fe42ad960bc8
Oops, forgot to add the necessary th-libs module th_datastruct.o to
Matti Hamalainen <ccr@tnsp.org>
parents:
175
diff
changeset
|
12 THLIBS_OBJ=th_util.o th_string.o th_ioctx.o \ |
191
d26bc1adfd14
Add internal directory reading and filename matching, plus optional
Matti Hamalainen <ccr@tnsp.org>
parents:
178
diff
changeset
|
13 th_file.o th_args.o th_crypto.o th_datastruct.o |
0 | 14 |
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
|
15 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
|
16 SIDINFO_BIN=$(BINPATH)sidinfo$(BINEXT) |
0 | 17 |
68 | 18 TARGETS += $(SIDINFO_BIN) |
0 | 19 |
275 | 20 |
21 ### | |
22 ### Rules | |
23 ### | |
137 | 24 include $(THLIBS)/Makefile.inc |
25 | |
275 | 26 |
0 | 27 $(SIDINFO_BIN): $(addprefix $(OBJPATH),$(SIDINFO_OBJ)) $(THLIBS_A) $(EXTRAOBJS) |
175 | 28 $(LINK_BIN) |
0 | 29 |