summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 5d64631..191e8b0 100644
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,7 @@ LIBS+= \
endif
SRC=\
+ src/file.cpp \
src/recode.cpp \
src/validate.cpp \
src/test-unicode.cpp
@@ -68,13 +69,13 @@ all: src/recode src/test-unicode src/validate
test: src/test-unicode
src/test-unicode
-src/recode: src/recode.o dep
- $(CXX) $(LDFLAGS) $< $(LDLIBS) $(LIBS) -o $@
+src/recode: src/recode.o src/file.o dep
+ $(CXX) $(LDFLAGS) src/recode.o src/file.o $(LDLIBS) $(LIBS) -o $@
-src/validate: src/validate.o dep
- $(CXX) $(LDFLAGS) $< $(LDLIBS) $(LIBS) -o $@
+src/validate: src/validate.o src/file.o dep
+ $(CXX) $(LDFLAGS) src/validate.o src/file.o $(LDLIBS) $(LIBS) -o $@
-src/test-unicode: src/test-unicode.o dep
+src/test-unicode: src/test-unicode.o src/file.o dep
$(CXX) $(LDFLAGS) $< $(LDLIBS) $(LIBS) -o $@
dep: $(SRC:.cpp=.d)
@@ -93,6 +94,9 @@ clean:
install:
mkdir -p $(DESTDIR)/usr/include
cp include/unicode.h $(DESTDIR)/usr/include
+ mkdir -p $(DESTDIR)/usr/bin
+ cp src/recode $(DESTDIR)/usr/bin/unicode-recode
+ cp src/validate $(DESTDIR)/usr/bin/unicode-validate
deb:
# build binary deb package