diff --git a/Makefile b/Makefile index 2bb5b8d..31c7676 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ OBJECTS=$(SHSOURCES:.S=.o) $(CSOURCES:.c=.o) $(CXXSOURCES:.cpp=.o) LIBRARY=./libserial.a LIBDIR:=$(shell $(CC) -print-file-name=.) +INCDIR:=$(LIBDIR)/include all: $(SOURCES) $(LIBRARY) @@ -33,8 +34,11 @@ clean: rm -f $(OBJECTS) $(LIBRARY) install: - @ echo "Installing in $(LIBDIR)" + @ echo "Installing library in $(LIBDIR)" + @ echo "Installing include in $(INCDIR)" cp $(LIBRARY) $(LIBDIR) + cp include/serial.h $(INCDIR) uninstall: rm -f $(LIBDIR)/$(LIBRARY) + rm -f $(INCDIR)/serial.h