annotate Makefile.gen @ 313:b3d46806787d

Move a number of more or less generic helper functions into a separate sidutil.[ch] module.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 11 Jan 2020 18:30:10 +0200
parents 6212051334e7
children b6f88c150573
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
122
9fb96c170bbc Make build process less noisy and also work with parallel make.
Matti Hamalainen <ccr@tnsp.org>
parents: 85
diff changeset
1 CFLAGS += -g
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 CFLAGS += -O2
286
6212051334e7 As we advertise C99 in README, use it instead of -std=c11
Matti Hamalainen <ccr@tnsp.org>
parents: 275
diff changeset
3 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
4 THLIBS = th-libs/
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6
275
04917c170c23 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
7 ###
04917c170c23 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
8 ### Objects and targets
04917c170c23 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
9 ###
178
fe42ad960bc8 Oops, forgot to add the necessary th-libs module th_datastruct.o to
Matti Hamalainen <ccr@tnsp.org>
parents: 175
diff changeset
10 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
11 th_file.o th_args.o th_crypto.o th_datastruct.o
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12
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
13 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
14 SIDINFO_BIN=$(BINPATH)sidinfo$(BINEXT)
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15
68
8dda5f225083 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
16 TARGETS += $(SIDINFO_BIN)
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17
275
04917c170c23 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
18
04917c170c23 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
19 ###
04917c170c23 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
20 ### Rules
04917c170c23 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
21 ###
137
18f61c69733d Buildsystem fix.
Matti Hamalainen <ccr@tnsp.org>
parents: 123
diff changeset
22 include $(THLIBS)/Makefile.inc
18f61c69733d Buildsystem fix.
Matti Hamalainen <ccr@tnsp.org>
parents: 123
diff changeset
23
275
04917c170c23 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
24
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 $(SIDINFO_BIN): $(addprefix $(OBJPATH),$(SIDINFO_OBJ)) $(THLIBS_A) $(EXTRAOBJS)
175
3d578c0043ae Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 137
diff changeset
26 $(LINK_BIN)
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27