aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-04 11:38:03 +0200
committerMattias Andrée <maandree@kth.se>2021-09-04 11:38:03 +0200
commitf467f59897f330d2a493e919108e62dffaa1f736 (patch)
treea93237eb61591401b481e47b2aaa9dc92042be1a /Makefile
parentm (diff)
downloadeditasroot-f467f59897f330d2a493e919108e62dffaa1f736.tar.gz
editasroot-f467f59897f330d2a493e919108e62dffaa1f736.tar.bz2
editasroot-f467f59897f330d2a493e919108e62dffaa1f736.tar.xz
Communicate whether file transfers were completed
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index eff2603..74bce68 100644
--- a/Makefile
+++ b/Makefile
@@ -5,19 +5,23 @@ include $(CONFIGFILE)
OBJ =\
editasroot.o\
+ common.o\
copier.o
+HDR =\
+ common.h
+
all: editasroot copier
-$(OBJ): $(@:.o=.c)
+$(OBJ): $(HDR)
.c.o:
$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
-editasroot: editasroot.o
- $(CC) -o $@ $@.o $(LDFLAGS)
+editasroot: editasroot.o common.o
+ $(CC) -o $@ $@.o common.o $(LDFLAGS)
-copier: copier.o
- $(CC) -o $@ $@.o $(LDFLAGS)
+copier: copier.o common.o
+ $(CC) -o $@ $@.o common.o $(LDFLAGS)
install: editasroot copier
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"