aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-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"