aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-04 14:10:26 +0200
committerMattias Andrée <maandree@kth.se>2021-04-04 14:10:26 +0200
commit6321be300b804894c8c150fac8749741b13dfb2d (patch)
treedefa3c9145ecdf6e3f74c4fcf09b20a50a81983f /Makefile
parentm + move common code from get-contact-birthday.c and list-birthdays.c to common-birthday.c (diff)
downloadcontacts-6321be300b804894c8c150fac8749741b13dfb2d.tar.gz
contacts-6321be300b804894c8c150fac8749741b13dfb2d.tar.bz2
contacts-6321be300b804894c8c150fac8749741b13dfb2d.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b2b1f21..0bbc52e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,11 @@
.POSIX:
CONFIGFILE = config.mk
-include $(CONFIGFILE)
CALLTYPE = multicall-hardlinks
# multicall-hardlinks = multiple hardlinks of the same multicall binary is installed
# multicall-symlinks = multiple links to a multicall binary named $(PREFIX)/bin/contacts are installed
# singlecall = separate binaries are install for each command (greatly wastes space when statically linked)
-include $(CALLTYPE).mk
BIN =\
@@ -64,6 +62,10 @@ OBJ = $(BIN:=.o) common-birthday.o
BOBJ = $(OBJ:.o=.bo)
+include $(CONFIGFILE)
+include $(CALLTYPE).mk
+
+
$(OBJ): $(@:.o=.c) $(HDR)
$(BOBJ): $(@:.bo=.c) $(HDR)