annotate Makefile.gen @ 123:e0880165f379

Use generic build stuff from thlibs Makefile.inc.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 09 Mar 2016 14:03:33 +0200
parents 9fb96c170bbc
children 18f61c69733d
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 += -W -Wall -Wextra -std=c11 -pedantic -I./ -D_XOPEN_SOURCE=500
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
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 CFLAGS += -O2
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
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 #
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 # Objects
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 #
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 THLIBS_A=$(OBJPATH)thlibs.a
85
4c0ecb078591 Rename various variables and functions and change relevant places to use the
Matti Hamalainen <ccr@tnsp.org>
parents: 84
diff changeset
11 THLIBS_OBJ=th_util.o th_string.o th_ioctx.o th_args.o th_crypto.o
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12
70
4779bbec2f28 Split some functionality into sidlib.[ch].
Matti Hamalainen <ccr@tnsp.org>
parents: 68
diff changeset
13 SIDINFO_OBJ=sidlib.o sidinfo.o
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 SIDINFO_BIN=$(BINPATH)sidinfo$(EXEEXT)
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
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 $(SIDINFO_BIN): $(addprefix $(OBJPATH),$(SIDINFO_OBJ)) $(THLIBS_A) $(EXTRAOBJS)
122
9fb96c170bbc Make build process less noisy and also work with parallel make.
Matti Hamalainen <ccr@tnsp.org>
parents: 85
diff changeset
19 @echo " LINK $@"
9fb96c170bbc Make build process less noisy and also work with parallel make.
Matti Hamalainen <ccr@tnsp.org>
parents: 85
diff changeset
20 @$(CC) $(CFLAGS) -o $@ $+ $(LDFLAGS)
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21
123
e0880165f379 Use generic build stuff from thlibs Makefile.inc.
Matti Hamalainen <ccr@tnsp.org>
parents: 122
diff changeset
22 include $(THLIBS)/Makefile.inc